Main Page
Namespaces
Classes
Files
File List
File Members
swarmros
include
swarmros
bridge
EventForwarder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
swarmros/bridge/Pylon.h
>
4
#include <
swarmros/bridge/EventMessage.h
>
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
23
ros::Subscriber
_subscriber
;
24
29
std::string
_message
;
30
35
swarmio::Endpoint
*
_endpoint
;
36
42
void
EventReceived
(
const
EventMessage::ConstPtr
&
message
);
43
44
public
:
45
54
EventForwarder
(
ros::NodeHandle
& nodeHandle,
const
std::string& source,
const
std::string&
message
,
swarmio::Endpoint
* endpoint);
55
};
56
}
57
swarmros::bridge::EventForwarder::EventForwarder
EventForwarder(ros::NodeHandle &nodeHandle, const std::string &source, const std::string &message, swarmio::Endpoint *endpoint)
Construct a new EventForwarder object.
Definition:
EventForwarder.cpp:8
swarmros::bridge::Pylon
Base class for all bridging services.
Definition:
Pylon.h:9
ros::NodeHandle
swarmros::bridge::EventForwarder::_subscriber
ros::Subscriber _subscriber
ROS topic subscriber.
Definition:
EventForwarder.h:23
swarmros::bridge::EventForwarder::EventReceived
void EventReceived(const EventMessage::ConstPtr &message)
Called whenever the topic is updated.
Definition:
EventForwarder.cpp:27
swarmros::bridge::EventForwarder::_endpoint
swarmio::Endpoint * _endpoint
Telemetry service.
Definition:
EventForwarder.h:35
swarmros::bridge::EventForwarder::_message
std::string _message
Message type.
Definition:
EventForwarder.h:29
boost::shared_ptr
logparser.message
message
Definition:
logparser.py:108
ros::Subscriber
Endpoint.h
swarmio::Endpoint
Abstract base class for Endpoint implementations.
Definition:
Endpoint.h:25
swarmros::bridge
Definition:
DebugSink.h:5
Pylon.h
ros.h
swarmros::bridge::EventForwarder
A ROS topic subscriber that bridges events from ROS topics to the swarm.
Definition:
EventForwarder.h:15
EventMessage.h
swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48