1 #ifndef __RTT_ROSPARAM_ROSPARAM_H 2 #define __RTT_ROSPARAM_ROSPARAM_H 7 #define RTT_ROSPARAM_EIGEN_SUPPORT 8 #ifdef RTT_ROSPARAM_EIGEN_SUPPORT 10 #define eigen_matrix_xd Eigen::Matrix<double,Eigen::Dynamic,1> 11 #define eigen_matrix_xf Eigen::Matrix<float,Eigen::Dynamic,1> 14 #ifndef ADD_ROSPARAM_SERVICE_CONSTRUCTOR 15 #define ADD_ROSPARAM_SERVICE_CONSTRUCTOR(return_type_str) \ 16 ,get##return_type_str("get"#return_type_str) \ 17 ,set##return_type_str("set"#return_type_str) \ 18 ,get##return_type_str##Relative ("get"#return_type_str"Relative") \ 19 ,set##return_type_str##Relative ("set"#return_type_str"Relative") \ 20 ,get##return_type_str##Absolute ("get"#return_type_str"Absolute") \ 21 ,set##return_type_str##Absolute ("set"#return_type_str"Absolute") \ 22 ,get##return_type_str##Private ("get"#return_type_str"Private") \ 23 ,set##return_type_str##Private ("set"#return_type_str"Private") \ 24 ,get##return_type_str##ComponentPrivate ("get"#return_type_str"ComponentPrivate") \ 25 ,set##return_type_str##ComponentPrivate ("set"#return_type_str"ComponentPrivate") \ 26 ,get##return_type_str##ComponentRelative ("get"#return_type_str"ComponentRelative") \ 27 ,set##return_type_str##ComponentRelative ("set"#return_type_str"ComponentRelative") \ 28 ,get##return_type_str##ComponentAbsolute ("get"#return_type_str"ComponentAbsolute") \ 29 ,set##return_type_str##ComponentAbsolute ("set"#return_type_str"ComponentAbsolute") \ 30 ,addRosParamProperty##return_type_str ("addRosParamProperty"#return_type_str) \ 31 ,addRosParamProperty##return_type_str##Relative ("addRosParamProperty"#return_type_str"Relative") \ 32 ,addRosParamProperty##return_type_str##Absolute ("addRosParamProperty"#return_type_str"Absolute") \ 33 ,addRosParamProperty##return_type_str##Private ("addRosParamProperty"#return_type_str"Private") \ 34 ,addRosParamProperty##return_type_str##ComponentPrivate ("addRosParamProperty"#return_type_str"ComponentPrivate") \ 35 ,addRosParamProperty##return_type_str##ComponentRelative ("addRosParamProperty"#return_type_str"ComponentRelative") \ 36 ,addRosParamProperty##return_type_str##ComponentAbsolute ("addRosParamProperty"#return_type_str"ComponentAbsolute") 39 #ifndef ADD_ROSPARAM_OPERATION_CALLER 40 #define ADD_ROSPARAM_OPERATION_CALLER(return_type_str) \ 41 this->addOperationCaller(get##return_type_str); \ 42 this->addOperationCaller(set##return_type_str); \ 43 this->addOperationCaller(get##return_type_str##Relative); \ 44 this->addOperationCaller(set##return_type_str##Relative); \ 45 this->addOperationCaller(get##return_type_str##Absolute); \ 46 this->addOperationCaller(set##return_type_str##Absolute); \ 47 this->addOperationCaller(get##return_type_str##Private); \ 48 this->addOperationCaller(set##return_type_str##Private); \ 49 this->addOperationCaller(get##return_type_str##ComponentPrivate); \ 50 this->addOperationCaller(set##return_type_str##ComponentPrivate); \ 51 this->addOperationCaller(get##return_type_str##ComponentRelative); \ 52 this->addOperationCaller(set##return_type_str##ComponentRelative); \ 53 this->addOperationCaller(get##return_type_str##ComponentAbsolute); \ 54 this->addOperationCaller(set##return_type_str##ComponentAbsolute); \ 55 this->addOperationCaller(addRosParamProperty##return_type_str); \ 56 this->addOperationCaller(addRosParamProperty##return_type_str##Relative); \ 57 this->addOperationCaller(addRosParamProperty##return_type_str##Absolute); \ 58 this->addOperationCaller(addRosParamProperty##return_type_str##Private); \ 59 this->addOperationCaller(addRosParamProperty##return_type_str##ComponentPrivate); \ 60 this->addOperationCaller(addRosParamProperty##return_type_str##ComponentRelative); \ 61 this->addOperationCaller(addRosParamProperty##return_type_str##ComponentAbsolute); 64 #ifndef DECLARE_ROSPARAM_OPERATION_CALLER 65 #define DECLARE_ROSPARAM_OPERATION_CALLER(return_type_str, return_type) \ 66 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str; \ 67 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str; \ 68 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Relative; \ 69 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Relative; \ 70 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Absolute; \ 71 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Absolute; \ 72 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Private; \ 73 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Private; \ 74 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentPrivate; \ 75 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentPrivate; \ 76 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentRelative; \ 77 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentRelative; \ 78 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentAbsolute; \ 79 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentAbsolute; \ 80 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str; \ 81 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##Relative; \ 82 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##Absolute; \ 83 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##Private; \ 84 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##ComponentPrivate; \ 85 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##ComponentRelative; \ 86 RTT::OperationCaller<RTT::Property<return_type>&(const std::string &)> addRosParamProperty##return_type_str##ComponentAbsolute; 208 #ifdef RTT_ROSPARAM_EIGEN_SUPPORT 258 #ifdef RTT_ROSPARAM_EIGEN_SUPPORT 266 #endif // ifndef __RTT_ROSPARAM_ROSPARAM_H RTT::OperationCaller< bool(const std::string &)> getAbsolute
RTT::OperationCaller< bool(const std::string &)> getComponentPrivate
static const int PRIVATE
For backwards compatibility.
RTT::OperationCaller< bool(const std::string &)> setComponentAbsolute
RTT::OperationCaller< bool(const std::string &)> setRelative
RTT::OperationCaller< bool(const std::string &, const std::string &)> getParam
#define DECLARE_ROSPARAM_OPERATION_CALLER(return_type_str, return_type)
RTT::OperationCaller< bool(void)> setAllComponentRelative
Component resolution: "name" -> "COMPONENT_NAME/name".
RTT::OperationCaller< bool(void)> setAllAbsolute
RTT::OperationCaller< bool(void)> setAllComponentPrivate
RTT::OperationCaller< bool(const std::string &)> setAbsolute
Absolute resolution: "name" -> "/name".
static const int COMPONENT_ABSOLUTE
For backwards compatibility.
RTT::OperationCaller< bool(void)> setAll
RTT::OperationCaller< bool(void)> setAllComponentAbsolute
#define RTT_ROSPARAM_EIGEN_SUPPORT
ServiceRequester(const std::string &name, TaskContext *owner=0)
RTT::OperationCaller< bool(const std::string &, const std::string &)> setParam
RTT::OperationCaller< bool(const std::string &)> setComponentRelative
RTT::OperationCaller< bool(void)> getAllComponentPrivate
RTT::OperationCaller< bool(const std::string &)> getPrivate
RTT::OperationCaller< bool(void)> getAllAbsolute
RTT::OperationCaller< bool(void)> getAllComponentRelative
RTT::OperationCaller< bool(void)> getAllComponentAbsolute
RTT::OperationCaller< bool(void)> getAllPrivate
RTT::OperationCaller< bool(void)> getAll
RTT::OperationCaller< bool(const std::string &)> getComponentRelative
RTT::OperationCaller< bool(void)> setAllPrivate
static const int COMPONENT_PRIVATE
For backwards compatibility.
RTT::OperationCaller< bool(const std::string &)> setComponentPrivate
static const int COMPONENT_RELATIVE
For backwards compatibility.
RTT::OperationCaller< bool(void)> getAllRelative
RTT::OperationCaller< bool(const std::string &, const unsigned int)> set
static const int COMPONENT
For backwards compatibility.
Relative resolution: "name" -> "name".
RTT::OperationCaller< bool(const std::string &)> getComponentAbsolute
RTT::OperationCaller< bool(const std::string &)> getRelative
ROSParam(RTT::TaskContext *owner)
For backwards compatibility, component resolution: COMPONENT_PRIVATE.
Private resolution: "name" -> "~name".
RTT::OperationCaller< bool(const std::string &, const unsigned int)> get
static const int RELATIVE
#define ADD_ROSPARAM_SERVICE_CONSTRUCTOR(return_type_str)
static const int ABSOLUTE
For backwards compatibility.
Component resolution: "name" -> "~COMPONENT_NAME/name".
RTT::OperationCaller< bool(void)> setAllRelative
#define ADD_ROSPARAM_OPERATION_CALLER(return_type_str)
RTT::OperationCaller< bool(const std::string &)> setPrivate
Component resolution: "name" -> "/COMPONENT_NAME/name".
bool addOperationCaller(base::OperationCallerBaseInvoker &mbi)