EventForwarder.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include <swarmio/Endpoint.h>
6 #include <ros/ros.h>
7 
8 namespace swarmros::bridge
9 {
15  class EventForwarder final : public Pylon
16  {
17  private:
18 
24 
29  std::string _message;
30 
36 
43 
44  public:
45 
54  EventForwarder(ros::NodeHandle& nodeHandle, const std::string& source, const std::string& message, swarmio::Endpoint* endpoint);
55  };
56 }
57 
EventForwarder(ros::NodeHandle &nodeHandle, const std::string &source, const std::string &message, swarmio::Endpoint *endpoint)
Construct a new EventForwarder object.
Base class for all bridging services.
Definition: Pylon.h:9
ros::Subscriber _subscriber
ROS topic subscriber.
void EventReceived(const EventMessage::ConstPtr &message)
Called whenever the topic is updated.
swarmio::Endpoint * _endpoint
Telemetry service.
std::string _message
Message type.
Abstract base class for Endpoint implementations.
Definition: Endpoint.h:25
A ROS topic subscriber that bridges events from ROS topics to the swarm.


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