Classes | |
| class | BindSubscriberImpl |
| class | DynamicParameters |
| struct | DynamicValue |
| class | ImplRoot |
| class | LatchedSubscriber |
| class | OptionalDiagnosedPublisher |
| class | ServiceServer |
| class | ServiceServerImpl |
| class | ServiceServerStatistics |
| class | StorageSubscriberImpl |
| class | Subscriber |
| class | SubscriberImpl |
| class | Timer |
| class | TimerImpl |
| class | TopicServiceClient |
| class | TopicServiceClientRaw |
| class | TopicServiceServer |
| class | TopicServiceServerImpl |
| struct | TrueType |
| struct | TypedParam |
| class | TypedServiceServerImpl |
| class | TypedSubscriberImpl |
| class | TypedTimerImpl |
Typedefs | |
| typedef TypedParam< bool > | BoolParam |
| typedef TypedParam< double > | DoubleParam |
| typedef TypedParam< float > | FloatParam |
| typedef TypedParam< int > | IntParam |
| typedef TypedParam< std::string > | StringParam |
Functions | |
| template<typename M > | |
| ros::Publisher | advertise (ros::NodeHandle &nh, const std::string name, uint32_t queue_size, bool latched=false) |
| int | comparePrefix (std::string const &string, std::string const &prefix) |
| static bool | getParam (const ros::NodeHandle &nh, const std::string &name, int &variable) |
| static bool | getParam (const ros::NodeHandle &nh, const std::string &name, double &variable) |
| static bool | getParam (const ros::NodeHandle &nh, const std::string &name, float &variable) |
| static bool | getParam (const ros::NodeHandle &nh, const std::string &name, std::string &variable) |
| static bool | getParam (const ros::NodeHandle &nh, const std::string &name, bool &variable) |
| static std::vector< std::string > | getUnusedParamKeys (ros::NodeHandle const &n) |
| bool | isPrefixOf (std::string const &string, std::string const &prefix) |
| static void | param (const ros::NodeHandle &nh, const std::string &name, int &variable, const int default_value) |
| static void | param (const ros::NodeHandle &nh, const std::string &name, double &variable, const double default_value) |
| static void | param (const ros::NodeHandle &nh, const std::string &name, float &variable, const float default_value) |
| static void | param (const ros::NodeHandle &nh, const std::string &name, std::string &variable, const std::string default_value) |
| static void | param (const ros::NodeHandle &nh, const std::string &name, bool &variable, const bool default_value) |
| int | prefixLessThan (std::string const &string, std::string const &prefix) |
| static void | warnUnusedParams (ros::NodeHandle const &n) |
Variables | |
| static std::set< std::string > | _used_params |
| typedef TypedParam<bool> swri::BoolParam |
Definition at line 115 of file dynamic_parameters.h.
| typedef TypedParam<double> swri::DoubleParam |
Definition at line 112 of file dynamic_parameters.h.
| typedef TypedParam<float> swri::FloatParam |
Definition at line 113 of file dynamic_parameters.h.
| typedef TypedParam<int> swri::IntParam |
Definition at line 114 of file dynamic_parameters.h.
| typedef TypedParam<std::string> swri::StringParam |
Definition at line 116 of file dynamic_parameters.h.
| ros::Publisher swri::advertise | ( | ros::NodeHandle & | nh, |
| const std::string | name, | ||
| uint32_t | queue_size, | ||
| bool | latched = false |
||
| ) |
Definition at line 37 of file publisher.h.
| int swri::comparePrefix | ( | std::string const & | string, |
| std::string const & | prefix | ||
| ) | [inline] |
Determines whether `prefix` is a prefix of `string`.
| string | The longer string to check, which may begin with the characters of `prefix`. |
| prefix | The shorter string, which may be a prefix of `string`. |
Definition at line 172 of file parameters.h.
| static bool swri::getParam | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| int & | variable | ||
| ) | [inline, static] |
Definition at line 22 of file parameters.h.
| static bool swri::getParam | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| double & | variable | ||
| ) | [inline, static] |
Definition at line 38 of file parameters.h.
| static bool swri::getParam | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| float & | variable | ||
| ) | [inline, static] |
Definition at line 54 of file parameters.h.
| static bool swri::getParam | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| std::string & | variable | ||
| ) | [inline, static] |
Definition at line 70 of file parameters.h.
| static bool swri::getParam | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| bool & | variable | ||
| ) | [inline, static] |
Definition at line 86 of file parameters.h.
| static std::vector<std::string> swri::getUnusedParamKeys | ( | ros::NodeHandle const & | n | ) | [inline, static] |
Gets the list of parameters on the parameter server in the namespace of NodeHandle n that have not yet been got using any of the swri::param() or swri::getParam() functions.
The parameter keys are filtered by prefix, so if there exists a parameter /foo/bar/baz and parameter /foo/bar has been got, then /foo/bar/baz will not be returned as an unused parameter.
Note that this function has no way of knowing about parameters got using the ros::param() and ros::getParam() functions.
| n | Nodehandle defining the namespace to restrict the list |
Definition at line 224 of file parameters.h.
| bool swri::isPrefixOf | ( | std::string const & | string, |
| std::string const & | prefix | ||
| ) | [inline] |
Boolean wrapper around comparePrefix.
| string | The longer string to check, which may begin with the characters of `prefix`. |
| prefix | The shorter string, which may be a prefix of `string`. |
Definition at line 186 of file parameters.h.
| static void swri::param | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| int & | variable, | ||
| const int | default_value | ||
| ) | [inline, static] |
Definition at line 102 of file parameters.h.
| static void swri::param | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| double & | variable, | ||
| const double | default_value | ||
| ) | [inline, static] |
Definition at line 114 of file parameters.h.
| static void swri::param | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| float & | variable, | ||
| const float | default_value | ||
| ) | [inline, static] |
Definition at line 126 of file parameters.h.
| static void swri::param | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| std::string & | variable, | ||
| const std::string | default_value | ||
| ) | [inline, static] |
Definition at line 139 of file parameters.h.
| static void swri::param | ( | const ros::NodeHandle & | nh, |
| const std::string & | name, | ||
| bool & | variable, | ||
| const bool | default_value | ||
| ) | [inline, static] |
Definition at line 151 of file parameters.h.
| int swri::prefixLessThan | ( | std::string const & | string, |
| std::string const & | prefix | ||
| ) | [inline] |
Less-than wrapper around comparePrefix, for algorithms that require a less-than comparator, such as sorting.
| string | The longer string to check, which may begin with the characters of `prefix`. |
| prefix | The shorter string, which may be a prefix of `string`. |
Definition at line 202 of file parameters.h.
| static void swri::warnUnusedParams | ( | ros::NodeHandle const & | n | ) | [inline, static] |
Wrapper around getUnusedParamKeys that emits a warning for every unused parameter
| n | Nodehandle defining the namespace to restrict the list |
Definition at line 267 of file parameters.h.
std::set<std::string> swri::_used_params [static] |
This set stores all of the parameters that have been got with this library It is used for the getUnusedParamKeys and WarnUnusedParams functions
Definition at line 19 of file parameters.h.