kitt_platform
 All Classes Files Functions Variables Pages
RosParamHelper.h
Go to the documentation of this file.
1 #ifndef KITT_TEENSY_ROS_NODE_ROS_PARAM_HELPER_H_
2 #define KITT_TEENSY_ROS_NODE_ROS_PARAM_HELPER_H_
3 
4 #include <ros.h>
5 
11 
12 public:
13  RosParamHelper(ros::NodeHandle nh);
14 
23  bool getParam(const char* name, int* param);
24 
35  bool getParam(const char* name, int* param, int defaultValue);
36 
47  int getParam(const char* name, int defaultValue);
48 
57  bool getParam(const char* name, float* param);
58 
69  bool getParam(const char* name, float* param, float defaultValue);
70 
81  float getParam(const char* name, float defaultValue);
82 
91  bool getParam(const char* name, char** param);
92 
103  bool getParam(const char* name, char** param, char* defaultValue);
104 
105 private:
106  ros::NodeHandle nh_;
107 };
108 
109 #endif
RosParamHelper(ros::NodeHandle nh)
Definition: RosParamHelper.cpp:3
ros::NodeHandle nh_
Definition: RosParamHelper.h:106
bool getParam(const char *name, int *param)
Retrieves int parameter from ros and sets it into the param.
Definition: RosParamHelper.cpp:7
Class to help simplify access to ros parameters.
Definition: RosParamHelper.h:10