DUNE: Uniform Navigational Environment
2.5.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::Tasks::ParameterTable::set(), DUNE::Tasks::SimpleTransport::SimpleTransport(), Transports::Fragments::Task::Task(), Sensors::PPS::Task::Task(), Monitors::CPU::Task::Task(), Sensors::GillWindObserverII::Task::Task(), Transports::Cache::Task::Task(), Sensors::MiniSVS::Task::Task(), Sensors::PTU300::Task::Task(), Sensors::XchangeSV::Task::Task(), Control::Path::Height::Task::Task(), Transports::SerialOverTCP::Task::Task(), Sensors::EmulatedGPS::Task::Task(), Transports::Discovery::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Control::Path::VectorField::Task::Task(), Sensors::DLV3::Task::Task(), Transports::LoggingDigest::Task::Task(), Vision::FrameGrabber::Task::Task(), Supervisors::Entities::Task::Task(), Transports::Noptilus::Task::Task(), Control::Path::Aerosonde::Task::Task(), Monitors::Emergency::Task::Task(), Control::ROV::RemoteOperation::Task::Task(), Vision::PhotoTrigger::Task::Task(), Control::Path::ILOS::Task::Task(), Control::ROV::Depth::Task::Task(), UserInterfaces::RCViaArdupilot::Task::Task(), Control::AUV::Allocator::Task::Task(), Autonomy::TREX::Task::Task(), Sensors::SW100::Task::Task(), Control::AUV::RemoteOperation::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Transports::IridiumSBD::Task::Task(), Sensors::AIS::Task::Task(), Control::AUV::LMI::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Monitors::Clock::Task::Task(), Sensors::WorkhorseNavigator::Task::Task(), Transports::UAN::Task::Task(), Monitors::Medium::Task::Task(), Transports::FlightGear::Task::Task(), Supervisors::AUV::LostComms::Task::Task(), Transports::Replay::Task::Task(), Control::ROV::HorizontalPlane::Task::Task(), Transports::GSM::Task::Task(), Monitors::Entities::Task::Task(), Navigation::General::ROV::Task::Task(), Sensors::MTi::Task::Task(), Supervisors::Vehicle::Task::Task(), Transports::Announce::Task::Task(), Plan::DB::Task::Task(), Simulators::UAV::Task::Task(), Transports::ArdupilotSITL::Task::Task(), Plan::Engine::Task::Task(), DUNE::Tasks::Task::Task(), Monitors::OperationalLimits::Task::Task(), Vision::Lumenera::Task::Task(), Control::AUV::Speed::Task::Task(), Sensors::OS4000::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Navigation::General::Alignment::Task::Task(), Transports::UDP::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Control::AUV::Attitude::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Monitors::FuelLevel::Task::Task(), Maneuver::VehicleFormation::FormCollAvoid::Task::Task(), Sensors::MLBLTracker::Task::Task(), Navigation::AUV::SGNavigation::Task::Task(), Control::UAV::Ardupilot::Task::Task(), Vision::DFK51BG02H::Task::Task(), Sensors::Imagenex881A::Task::Task(), Sensors::MLBL::Task::Task(), and Actuators::MCD4R::Task::Task().
|
inline |
References m_default.
|
inline |
References m_desc.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), Control::AntennaTracker::Task::Task(), Control::PTU::Task::Task(), Sensors::DLV3::Task::Task(), Transports::Noptilus::Task::Task(), Navigation::General::GPSNavigation::Task::Task(), Plan::Generator::Task::Task(), Monitors::Clock::Task::Task(), Vision::Lumenera::Task::Task(), Transports::UDP::Task::Task(), Monitors::FuelLevel::Task::Task(), Navigation::AUV::SGNavigation::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 |
|
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(), Monitors::OperationalLimits::Task::Task(), Actuators::LED4R::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().
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 |
References maximumSize(), and minimumSize().
Referenced by Sensors::AIM104MultiIO::Task::Task().
|
inline |
References m_units.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Periodic::Periodic(), Control::UAV::RemoteOperation::Task::Task(), Control::Path::Height::Task::Task(), Supervisors::UAV::LostComms::Task::Task(), Transports::Iridium::Task::Task(), Transports::Noptilus::Task::Task(), Control::Path::Aerosonde::Task::Task(), Monitors::Emergency::Task::Task(), Sensors::AIM104MultiIO::Task::Task(), Transports::IridiumSBD::Task::Task(), Navigation::AUV::Navigation::Task::Task(), Monitors::Clock::Task::Task(), Sensors::WorkhorseNavigator::Task::Task(), Transports::UAN::Task::Task(), Monitors::Medium::Task::Task(), Monitors::Entities::Task::Task(), Transports::Announce::Task::Task(), Simulators::UAV::Task::Task(), Monitors::OperationalLimits::Task::Task(), Sensors::Microstrain3DMGX1::Task::Task(), Navigation::General::Alignment::Task::Task(), Transports::UDP::Task::Task(), Actuators::LED4R::Task::Task(), Sensors::XR620CTD::Task::Task(), Sensors::IFOG::Task::Task(), Sensors::Microstrain3DMGX3::Task::Task(), Monitors::FuelLevel::Task::Task(), Sensors::MLBLTracker::Task::Task(), Sensors::MLBL::Task::Task(), and Actuators::MCD4R::Task::Task().
|
inline |
References m_units.
|
inline |
References m_value.
|
inline |
References m_reader, m_values, and DUNE::Tasks::AbstractParameterParser::values().
Referenced by Sensors::MLBL::Task::Task(), and writeXML().
|
inline |
|
inline |
Set parameter's visibility.
[in] | a_visibility | desired visibility. |
References m_visibility.
Referenced by DUNE::Navigation::BasicNavigation::BasicNavigation(), DUNE::Tasks::Task::paramActive(), Control::Path::Height::Task::Task(), Control::Path::Aerosonde::Task::Task(), Monitors::Emergency::Task::Task(), Transports::UAN::Task::Task(), Actuators::LED4R::Task::Task(), Control::UAV::Ardupilot::Task::Task(), and Sensors::MLBL::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().