A ROS topic subscriber that bridges telemetry data to ROS topics. More...
#include <TelemetryForwarder.h>
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... | |
A ROS topic subscriber that bridges telemetry data to ROS topics.
Definition at line 15 of file TelemetryForwarder.h.
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.
nodeHandle | Node handle |
source | ROS topic |
message | Message type |
telemetryService | Telemetry service |
name | Telemetry key |
includeInStatus | Include in status broadcast |
Definition at line 20 of file TelemetryForwarder.cpp.
|
overridevirtual |
Destroy the TelemetryForwarder object.
Definition at line 36 of file TelemetryForwarder.cpp.
|
private |
Called whenever the topic is updated.
message | Message |
Definition at line 8 of file TelemetryForwarder.cpp.
|
private |
Message type.
Definition at line 29 of file TelemetryForwarder.h.
|
private |
Telemetry key.
Definition at line 41 of file TelemetryForwarder.h.
|
private |
ROS topic subscriber.
Definition at line 23 of file TelemetryForwarder.h.
|
private |
Telemetry service.
Definition at line 35 of file TelemetryForwarder.h.