Public Member Functions | Private Member Functions | Private Attributes | List of all members
swarmros::bridge::EventForwarder Class Referencefinal

A ROS topic subscriber that bridges events from ROS topics to the swarm. More...

#include <EventForwarder.h>

Inheritance diagram for swarmros::bridge::EventForwarder:
Inheritance graph
[legend]

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...
 

Detailed Description

A ROS topic subscriber that bridges events from ROS topics to the swarm.

Definition at line 15 of file EventForwarder.h.

Constructor & Destructor Documentation

EventForwarder::EventForwarder ( ros::NodeHandle nodeHandle,
const std::string &  source,
const std::string &  message,
swarmio::Endpoint endpoint 
)

Construct a new EventForwarder object.

Parameters
nodeHandleNode handle
sourceROS topic
messageMessage type
endpointEndpoint

Definition at line 8 of file EventForwarder.cpp.

Member Function Documentation

void EventForwarder::EventReceived ( const EventMessage::ConstPtr message)
private

Called whenever the topic is updated.

Parameters
messageMessage

Definition at line 27 of file EventForwarder.cpp.

Member Data Documentation

swarmio::Endpoint* swarmros::bridge::EventForwarder::_endpoint
private

Telemetry service.

Definition at line 35 of file EventForwarder.h.

std::string swarmros::bridge::EventForwarder::_message
private

Message type.

Definition at line 29 of file EventForwarder.h.

ros::Subscriber swarmros::bridge::EventForwarder::_subscriber
private

ROS topic subscriber.

Definition at line 23 of file EventForwarder.h.


The documentation for this class was generated from the following files:


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48