A ROS topic subscriber that bridges events from ROS topics to the swarm. More...
#include <EventForwarder.h>
Public Member Functions | |
EventForwarder (ros::NodeHandle &nodeHandle, const std::string &source, const std::string &message, swarmio::Endpoint *endpoint) | |
Construct a new EventForwarder object. More... | |
Public Member Functions inherited from swarmros::bridge::Pylon | |
virtual | ~Pylon () |
Add virtual destructor. More... | |
Private Member Functions | |
void | EventReceived (const EventMessage::ConstPtr &message) |
Called whenever the topic is updated. More... | |
Private Attributes | |
swarmio::Endpoint * | _endpoint |
Telemetry service. More... | |
std::string | _message |
Message type. More... | |
ros::Subscriber | _subscriber |
ROS topic subscriber. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from swarmros::bridge::Pylon | |
Pylon () | |
Mark as abstract. More... | |
A ROS topic subscriber that bridges events from ROS topics to the swarm.
Definition at line 15 of file EventForwarder.h.
EventForwarder::EventForwarder | ( | ros::NodeHandle & | nodeHandle, |
const std::string & | source, | ||
const std::string & | message, | ||
swarmio::Endpoint * | endpoint | ||
) |
Construct a new EventForwarder object.
nodeHandle | Node handle |
source | ROS topic |
message | Message type |
endpoint | Endpoint |
Definition at line 8 of file EventForwarder.cpp.
|
private |
Called whenever the topic is updated.
message | Message |
Definition at line 27 of file EventForwarder.cpp.
|
private |
Telemetry service.
Definition at line 35 of file EventForwarder.h.
|
private |
Message type.
Definition at line 29 of file EventForwarder.h.
|
private |
ROS topic subscriber.
Definition at line 23 of file EventForwarder.h.