Main Page
Namespaces
Classes
Files
File List
File Members
swarmros
include
swarmros
bridge
TelemetryForwarder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
swarmros/bridge/Pylon.h
>
4
#include <
swarmros/introspection/VariantMessage.h
>
5
#include <
swarmio/services/telemetry/Service.h
>
6
#include <
ros/ros.h
>
7
8
namespace
swarmros::bridge
9
{
15
class
TelemetryForwarder
final :
public
Pylon
16
{
17
private
:
18
23
ros::Subscriber
_subscriber
;
24
29
std::string
_message
;
30
35
swarmio::services::telemetry::Service
&
_telemetryService
;
36
41
std::string
_name
;
42
48
void
UpdateReceived
(
const
introspection::VariantMessage::ConstPtr
&
message
);
49
50
public
:
51
62
TelemetryForwarder
(
ros::NodeHandle
& nodeHandle,
const
std::string& source,
const
std::string&
message
,
swarmio::services::telemetry::Service
& telemetryService,
const
std::string& name,
bool
includeInStatus);
63
68
virtual
~TelemetryForwarder
()
override
;
69
};
70
}
71
swarmros::bridge::TelemetryForwarder::_telemetryService
swarmio::services::telemetry::Service & _telemetryService
Telemetry service.
Definition:
TelemetryForwarder.h:35
swarmros::bridge::Pylon
Base class for all bridging services.
Definition:
Pylon.h:9
ros::NodeHandle
swarmio::services::telemetry::Service
Telemetry Service can subscribe to receive updates from remote nodes on named values.
Definition:
telemetry/Service.h:21
swarmros::bridge::TelemetryForwarder::TelemetryForwarder
TelemetryForwarder(ros::NodeHandle &nodeHandle, const std::string &source, const std::string &message, swarmio::services::telemetry::Service &telemetryService, const std::string &name, bool includeInStatus)
Construct a new TelemetryForwarder object.
Definition:
TelemetryForwarder.cpp:20
swarmros::bridge::TelemetryForwarder
A ROS topic subscriber that bridges telemetry data to ROS topics.
Definition:
TelemetryForwarder.h:15
boost::shared_ptr
logparser.message
message
Definition:
logparser.py:108
swarmros::bridge::TelemetryForwarder::~TelemetryForwarder
virtual ~TelemetryForwarder() override
Destroy the TelemetryForwarder object.
Definition:
TelemetryForwarder.cpp:36
VariantMessage.h
Service.h
ros::Subscriber
swarmros::bridge::TelemetryForwarder::_message
std::string _message
Message type.
Definition:
TelemetryForwarder.h:29
swarmros::bridge
Definition:
DebugSink.h:5
Pylon.h
ros.h
swarmros::bridge::TelemetryForwarder::UpdateReceived
void UpdateReceived(const introspection::VariantMessage::ConstPtr &message)
Called whenever the topic is updated.
Definition:
TelemetryForwarder.cpp:8
swarmros::bridge::TelemetryForwarder::_subscriber
ros::Subscriber _subscriber
ROS topic subscriber.
Definition:
TelemetryForwarder.h:23
swarmros::bridge::TelemetryForwarder::_name
std::string _name
Telemetry key.
Definition:
TelemetryForwarder.h:41
swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48