1 |
|
|
#include <dynamic-graph/python/module.hh> |
2 |
|
|
|
3 |
|
|
#include "ros_publish.hh" |
4 |
|
|
|
5 |
|
|
namespace dg = dynamicgraph; |
6 |
|
|
|
7 |
|
|
BOOST_PYTHON_MODULE(wrap) { |
8 |
|
|
bp::import("dynamic_graph"); |
9 |
|
|
|
10 |
|
|
dg::python::exposeEntity<dg::RosPublish, bp::bases<dg::Entity>, |
11 |
|
|
dg::python::AddCommands>() |
12 |
|
|
.def("clear", &dg::RosPublish::clear, |
13 |
|
|
"Remove all signals writing data to a ROS topic") |
14 |
|
|
.def("rm", &dg::RosPublish::rm, |
15 |
|
|
"Remove a signal writing data to a ROS topic", |
16 |
|
|
bp::args("signal_name")) |
17 |
|
|
.def("list", &dg::RosPublish::list, |
18 |
|
|
"List signals writing data to a ROS topic"); |
19 |
|
|
} |