35 #include "publisher.h"
36 #include "subscriber.h"
41 #include <forward_list>
59 void add_publisher(std::shared_ptr<Publisher> publisher,
double loop_rate = 10);
69 static const bool debug =
false;
71 std::vector<std::shared_ptr<Publisher>> m_publishers;
72 std::vector<std::shared_ptr<Subscriber>> m_subscribers;
73 std::forward_list<std::future<void>> m_futures;
This class is a bridge between a ROS network and a CanOpen network.
void run()
Runs the ROS spinner and blocks until shutdown (e.g. via Ctrl+c).
void add_publisher(std::shared_ptr< Publisher > publisher, double loop_rate=10)
Adds a Publisher, advertises it and publishes messages repeatedly.
void add_subscriber(std::shared_ptr< Subscriber > subscriber)
Adds a Subscriber, which can advertise itself and receive messages on its own.