DUNE: Uniform Navigational Environment
2019.02.0
|
Classes | |
struct | ValuesIf |
Public Types | |
enum | Visibility { VISIBILITY_USER, VISIBILITY_DEVELOPER } |
enum | Scope { SCOPE_GLOBAL, SCOPE_IDLE, SCOPE_PLAN, SCOPE_MANEUVER } |
Public Member Functions | |
Parameter (const std::string ¶m_name, const std::string &type_name) | |
~Parameter (void) | |
void | reader (AbstractParameterParser *r) |
void | read (const std::string &val) |
bool | commit (void) |
std::string | name (void) const |
std::string | value (void) const |
std::string | defaultValue (void) const |
Parameter & | defaultValue (const std::string &val) |
Parameter & | valuesIf (const std::string &if_param, const std::string &if_value, const std::string &a_values) |
Units::Types | units (void) const |
Parameter & | units (Units::Types val) |
std::string | description (void) const |
Parameter & | description (const std::string &val) |
Parameter & | minimumValue (const std::string &min_value) |
Parameter & | maximumValue (const std::string &max_value) |
Parameter & | size (int size_value) |
Parameter & | minimumSize (unsigned min_size) |
Parameter & | maximumSize (unsigned max_size) |
Parameter & | values (const std::string &list) |
Parameter & | visibility (Visibility a_visibility) |
Parameter & | visibility (const std::string &a_visibility) |
Parameter & | scope (Scope a_scope) |
Parameter & | scope (const std::string a_scope) |
void | writeXML (std::ostream &os) const |
bool | changed (void) |
void | setChanged (bool enabled=true) |
Visibility | getVisibility (void) const |
Scope | getScope (void) const |
Static Public Member Functions | |
static Visibility | visibilityFromString (const std::string &v) |
static const char * | visibilityToString (Visibility v) |
static Scope | scopeFromString (const std::string &s) |
static const char * | scopeToString (Scope s) |
Protected Attributes | |
std::string | m_name |
std::string | m_type_name |
std::string | m_desc |
std::string | m_default |
Units::Types | m_units |
std::string | m_value |
std::string | m_values |
unsigned | m_min_size |
unsigned | m_max_size |
std::string | m_min_value |
std::string | m_max_value |
std::vector< ValuesIf * > | m_values_if |
AbstractParameterParser * | m_reader |
bool | m_changed |
Visibility | m_visibility |
Scope | m_scope |
Parameter scope.
Enumerator | |
---|---|
SCOPE_GLOBAL |
Parameter can be changed in all system states. |
SCOPE_IDLE |
Parameter can only be changed when the system is not performing plans/maneuvers. |
SCOPE_PLAN |
Parameter can be changed on a per plan basis. |
SCOPE_MANEUVER |
Parameter can be changed on a per maneuver basis. |
DUNE::Tasks::Parameter::Parameter | ( | const std::string & | param_name, |
const std::string & | type_name | ||
) |
Constructor.
DUNE::Tasks::Parameter::~Parameter | ( | void | ) |
Destructor.
References m_reader, and m_values_if.
|
inline |
References m_changed.
|
inline |
References DUNE::Tasks::AbstractParameterParser::commit(), and m_reader.
Referenced by DUNE::Tasks::ParameterTable::set().
|
inline |
References m_default.
Referenced by DUNE::Control::BasicAutopilot::BasicAutopilot(), DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Control::BasicRemoteOperation::BasicRemoteOperation(), DUNE::Tasks::Task::paramActive(), DUNE::Control::PathController::PathController(), DUNE::Control::ProxyPathController::ProxyPathController(), DUNE::Tasks::ParameterTable::set(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Transports::Fragments::Task::Task(), Sensors::GillWindObserverII::Task::Task(), Control::ASV::RemoteOperation::Task::Task(), Sensors::DataStore::Task::Task(), Simulators::UAVAutopilot::Task::Task(), Transports::Cache::Task::Task(), Sensors::XchangeSV::Task::Task(), Sensors::MiniSVS::Task::Task(), Supervisors::Reporter::Task::Task(), Transports::SerialOverTCP::Task::Task(), Autonomy::TextActions::Task::Task(), Transports::Discovery::Task::Task(), Control::Path::VectorField::Task::Task(), Vision::UAVCamera::Task::Task(), Supervisors::Entities::Task::Task(), Transports::LoggingDigest::Task::Task(), Vision::FrameGrabber::Task::Task(), Simulators::AcousticModem::Task::Task(), Control::UAV::LOS::Task::Task(), Sensors::CyclopsC7::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Control::Path::ILOS::Task::Task(), Control::ROV::Depth::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Autonomy::TREX::Task::Task(), Actuators::PWM::Task::Task(), Vision::PhotoTrigger::Task::Task(), Control::AUV::RemoteOperation::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Monitors::Emergency::Task::Task(), Sensors::AIS::Task::Task(), Control::AUV::LMI::Task::Task(), Monitors::Clock::Task::Task(), Sensors::SW100::Task::Task(), Maneuver::VehicleFormation::Test::Task::Task(), Autonomy::OnEvent::Task::Task(), Transports::Replay::Task::Task(), Supervisors::AUV::LostComms::Task::Task(), Sensors::DMS::Task::Task(), Control::ROV::HorizontalPlane::Task::Task(), Monitors::FuelLevel::Task::Task(), Monitors::Entities::Task::Task(), Navigation::General::ROV::Task::Task(), Sensors::MTi::Task::Task(), Sensors::SADC::Task::Task(), Supervisors::Vehicle::Task::Task(), Monitors::Medium::Task::Task(), Transports::Announce::Task::Task(), Power::CPMB::Task::Task(), Plan::DB::Task::Task(), Power::APD::Task::Task(), Supervisors::AUV::Assist::Task::Task(), Power::CPMBv2::Task::Task(), Power::BATMANv2::Task::Task(), Transports::UAN::Task::Task(), Control::AUV::Allocator::Task::Task(), Vision::UI2210MGL::Task::Task(), DUNE::Tasks::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Monitors::OperationalLimits::Task::Task(), Control::AUV::Speed::Task::Task(), Transports::UDP::Task::Task(), Sensors::OS4000::Task::Task(), Power::OPCON::Task::Task(), Power::LUEMB::Task::Task(), Simulators::UAV::Task::Task(), Actuators::LED4R::Task::Task(), Plan::Engine::Task::Task(), Sensors::OEMX::Task::Task(), Sensors::XR620CTD::Task::Task(), Transports::GSM::Task::Task(), Sensors::IFOG::Task::Task(), Transports::Radio::Task::Task(), Vision::Lumenera::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Control::AUV::Attitude::Task::Task(), Transports::Seatrac::Task::Task(), Sensors::MetrecX::Task::Task(), Sensors::MLBLTracker::Task::Task(), Vision::DFK51BG02H::Task::Task(), Control::UAV::PX4::Task::Task(), Maneuver::VehicleFormation::Coordinator::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Sensors::Imagenex881A::Task::Task(), Control::UAV::Ardupilot::Task::Task(), Actuators::MCD4R::Task::Task(), Sensors::MLBL::Task::Task(), and Maneuver::VehicleFormation::FormCollAvoid::Task::Task().
|
inline |
References m_default.
|
inline |
References m_desc.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Control::AntennaTracker::Task::Task(), Vision::UAVCamera::Task::Task(), Transports::CommManager::Task::Task(), Transports::Iridium::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Plan::Generator::Task::Task(), Monitors::Clock::Task::Task(), Sensors::DMS::Task::Task(), Transports::DataStore::Task::Task(), Transports::UDP::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Sensors::MetrecX::Task::Task(), Navigation::AUV::Navigation::Task::Task(), and Sensors::MLBL::Task::Task().
|
inline |
References m_visibility.
|
inline |
References m_max_size, m_reader, and DUNE::Tasks::AbstractParameterParser::maximumSize().
Referenced by size().
|
inline |
References m_max_value, m_reader, and DUNE::Tasks::AbstractParameterParser::maximumValue().
Referenced by Control::Path::VectorField::Task::Task(), Control::Path::ILOS::Task::Task(), Sensors::DMS::Task::Task(), Sensors::SADC::Task::Task(), Actuators::LED4R::Task::Task(), Control::UAV::PX4::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
|
inline |
References m_min_size, m_reader, and DUNE::Tasks::AbstractParameterParser::minimumSize().
Referenced by size().
|
inline |
References m_min_value, m_reader, and DUNE::Tasks::AbstractParameterParser::minimumValue().
Referenced by Control::Path::VectorField::Task::Task(), Control::Path::ILOS::Task::Task(), Sensors::DMS::Task::Task(), Sensors::SADC::Task::Task(), Monitors::OperationalLimits::Task::Task(), Actuators::LED4R::Task::Task(), Control::UAV::PX4::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
|
inline |
References m_name.
Referenced by writeXML().
void DUNE::Tasks::Parameter::read | ( | const std::string & | val | ) |
void DUNE::Tasks::Parameter::reader | ( | AbstractParameterParser * | r | ) |
References m_reader.
Referenced by DUNE::Tasks::ParameterTable::add().
References m_scope.
Referenced by DUNE::Tasks::Task::paramActive(), Vision::UAVCamera::Task::Task(), Control::UAV::LOS::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Actuators::LED4R::Task::Task(), Transports::Radio::Task::Task(), Vision::Lumenera::Task::Task(), Control::UAV::PX4::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
Parameter & DUNE::Tasks::Parameter::scope | ( | const std::string | a_scope | ) |
References m_scope, and scopeFromString().
|
static |
Referenced by scope().
|
static |
Referenced by DUNE::Tasks::Task::paramActive(), and writeXML().
|
inline |
References m_changed.
Referenced by DUNE::Tasks::ParameterTable::set().
|
inline |
|
inline |
References m_units.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Periodic::Periodic(), Control::UAV::RemoteOperation::Task::Task(), Navigation::AUV::Ranger::Task::Task(), Supervisors::Reporter::Task::Task(), Transports::Iridium::Task::Task(), Control::UAV::LOS::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Monitors::Emergency::Task::Task(), Monitors::Clock::Task::Task(), Monitors::Entities::Task::Task(), Monitors::Medium::Task::Task(), Transports::Announce::Task::Task(), Monitors::OperationalLimits::Task::Task(), Transports::UDP::Task::Task(), Simulators::UAV::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Transports::Radio::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Transports::Seatrac::Task::Task(), Sensors::MLBLTracker::Task::Task(), Control::UAV::PX4::Task::Task(), Actuators::MCD4R::Task::Task(), and Sensors::MLBL::Task::Task().
|
inline |
References m_units.
|
inline |
References m_value.
|
inline |
|
inline |
|
inline |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Task::paramActive(), Navigation::AUV::Ranger::Task::Task(), Supervisors::Reporter::Task::Task(), Vision::UAVCamera::Task::Task(), Control::UAV::LOS::Task::Task(), Sensors::CyclopsC7::Task::Task(), Control::Path::LOSnSMC::Task::Task(), Transports::IridiumSBD::Task::Task(), Monitors::Emergency::Task::Task(), Sensors::DMS::Task::Task(), Sensors::SADC::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Actuators::LED4R::Task::Task(), Transports::Radio::Task::Task(), Vision::Lumenera::Task::Task(), Control::UAV::PX4::Task::Task(), and Control::UAV::Ardupilot::Task::Task().
Parameter & DUNE::Tasks::Parameter::visibility | ( | const std::string & | a_visibility | ) |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility, and visibilityFromString().
|
static |
Referenced by visibility().
|
static |
Referenced by DUNE::Tasks::Task::paramActive(), and writeXML().
void DUNE::Tasks::Parameter::writeXML | ( | std::ostream & | os | ) | const |
|
protected |
True if the value of this parameter changed.
Referenced by changed(), and setChanged().
|
protected |
Default value.
Referenced by defaultValue(), and writeXML().
|
protected |
Description.
Referenced by description(), and writeXML().
|
protected |
Maximum size.
Referenced by maximumSize(), and writeXML().
|
protected |
Maximum value.
Referenced by maximumValue(), and writeXML().
|
protected |
Minimum size.
Referenced by minimumSize(), and writeXML().
|
protected |
Minimum value.
Referenced by minimumValue(), and writeXML().
|
protected |
Name.
Referenced by name(), read(), and writeXML().
|
protected |
String reader.
Referenced by commit(), maximumSize(), maximumValue(), minimumSize(), minimumValue(), read(), reader(), values(), and ~Parameter().
|
protected |
Parameter scope.
Referenced by getScope(), scope(), and writeXML().
|
protected |
Type name.
Referenced by writeXML().
|
protected |
Referenced by units(), and writeXML().
|
protected |
Current value.
Referenced by read(), value(), and writeXML().
|
protected |
Comma separated list of valid values.
Referenced by values(), and writeXML().
|
protected |
Conditional comma separated list of valid values.
Referenced by valuesIf(), writeXML(), and ~Parameter().
|
protected |
Parameter visibility.
Referenced by getVisibility(), visibility(), and writeXML().