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

A ROS topic subscriber that bridges telemetry data to ROS topics. More...

#include <TelemetryForwarder.h>

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

Public Member Functions

 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. More...
 
virtual ~TelemetryForwarder () override
 Destroy the TelemetryForwarder object. More...
 
- Public Member Functions inherited from swarmros::bridge::Pylon
virtual ~Pylon ()
 Add virtual destructor. More...
 

Private Member Functions

void UpdateReceived (const introspection::VariantMessage::ConstPtr &message)
 Called whenever the topic is updated. More...
 

Private Attributes

std::string _message
 Message type. More...
 
std::string _name
 Telemetry key. More...
 
ros::Subscriber _subscriber
 ROS topic subscriber. More...
 
swarmio::services::telemetry::Service_telemetryService
 Telemetry service. 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 telemetry data to ROS topics.

Definition at line 15 of file TelemetryForwarder.h.

Constructor & Destructor Documentation

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.

Parameters
nodeHandleNode handle
sourceROS topic
messageMessage type
telemetryServiceTelemetry service
nameTelemetry key
includeInStatusInclude in status broadcast

Definition at line 20 of file TelemetryForwarder.cpp.

TelemetryForwarder::~TelemetryForwarder ( )
overridevirtual

Destroy the TelemetryForwarder object.

Definition at line 36 of file TelemetryForwarder.cpp.

Member Function Documentation

void TelemetryForwarder::UpdateReceived ( const introspection::VariantMessage::ConstPtr message)
private

Called whenever the topic is updated.

Parameters
messageMessage

Definition at line 8 of file TelemetryForwarder.cpp.

Member Data Documentation

std::string swarmros::bridge::TelemetryForwarder::_message
private

Message type.

Definition at line 29 of file TelemetryForwarder.h.

std::string swarmros::bridge::TelemetryForwarder::_name
private

Telemetry key.

Definition at line 41 of file TelemetryForwarder.h.

ros::Subscriber swarmros::bridge::TelemetryForwarder::_subscriber
private

ROS topic subscriber.

Definition at line 23 of file TelemetryForwarder.h.

swarmio::services::telemetry::Service& swarmros::bridge::TelemetryForwarder::_telemetryService
private

Telemetry service.

Definition at line 35 of file TelemetryForwarder.h.


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


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