TelemetryForwarder.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include <ros/ros.h>
7 
8 namespace swarmros::bridge
9 {
15  class TelemetryForwarder final : public Pylon
16  {
17  private:
18 
24 
29  std::string _message;
30 
36 
41  std::string _name;
42 
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 
swarmio::services::telemetry::Service & _telemetryService
Telemetry service.
Base class for all bridging services.
Definition: Pylon.h:9
Telemetry Service can subscribe to receive updates from remote nodes on named values.
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.
A ROS topic subscriber that bridges telemetry data to ROS topics.
virtual ~TelemetryForwarder() override
Destroy the TelemetryForwarder object.
std::string _message
Message type.
void UpdateReceived(const introspection::VariantMessage::ConstPtr &message)
Called whenever the topic is updated.
ros::Subscriber _subscriber
ROS topic subscriber.
std::string _name
Telemetry key.


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