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") 32 #ifndef ADD_ROSPARAM_OPERATION_CALLER 33 #define ADD_ROSPARAM_OPERATION_CALLER(return_type_str) \ 34 this->addOperationCaller(get##return_type_str); \ 35 this->addOperationCaller(set##return_type_str); \ 36 this->addOperationCaller(get##return_type_str##Relative); \ 37 this->addOperationCaller(set##return_type_str##Relative); \ 38 this->addOperationCaller(get##return_type_str##Absolute); \ 39 this->addOperationCaller(set##return_type_str##Absolute); \ 40 this->addOperationCaller(get##return_type_str##Private); \ 41 this->addOperationCaller(set##return_type_str##Private); \ 42 this->addOperationCaller(get##return_type_str##ComponentPrivate); \ 43 this->addOperationCaller(set##return_type_str##ComponentPrivate); \ 44 this->addOperationCaller(get##return_type_str##ComponentRelative); \ 45 this->addOperationCaller(set##return_type_str##ComponentRelative); \ 46 this->addOperationCaller(get##return_type_str##ComponentAbsolute); \ 47 this->addOperationCaller(set##return_type_str##ComponentAbsolute); 50 #ifndef DECLARE_ROSPARAM_OPERATION_CALLER 51 #define DECLARE_ROSPARAM_OPERATION_CALLER(return_type_str, return_type) \ 52 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str; \ 53 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str; \ 54 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Relative; \ 55 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Relative; \ 56 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Absolute; \ 57 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Absolute; \ 58 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##Private; \ 59 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##Private; \ 60 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentPrivate; \ 61 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentPrivate; \ 62 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentRelative; \ 63 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentRelative; \ 64 RTT::OperationCaller<bool(const std::string &, return_type &)> get##return_type_str##ComponentAbsolute; \ 65 RTT::OperationCaller<void(const std::string &, const return_type &)> set##return_type_str##ComponentAbsolute; 187 #ifdef RTT_ROSPARAM_EIGEN_SUPPORT 237 #ifdef RTT_ROSPARAM_EIGEN_SUPPORT 245 #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)