add parameter wrapper macros for ros

This commit is contained in:
Thomas Gubler
2014-12-03 12:31:37 +01:00
parent 905913986a
commit 6a99b04fb7
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -51,6 +51,8 @@
#define PX4_TOPIC_T(_name) _name
#define PX4_SUBSCRIBE_CBMETH(_nodehandle, _name, _cbf, _obj, _interval) _nodehandle.subscribe(PX4_TOPIC(_name), &_cbf, &_obj);
#define PX4_SUBSCRIBE_CBFUNC(_nodehandle, _name, _cbf, _interval) _nodehandle.subscribe(PX4_TOPIC(_name), _cbf);
#define PX4_PARAM_INIT(_name, _default) ros::param::set(_name, _default);
#define PX4_PARAM_GET(_name, _destpt) ros::param::get(_name, *_destpt)
#else
/*
* Building for NuttX