ParameterPublisher.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace swarmros::bridge
7 {
13  class ParameterPublisher final : public ParameterTarget
14  {
15  private:
16 
22 
28 
34  void UpdateValue(const swarmio::data::Variant& value);
35 
36  public:
37 
49  ParameterPublisher(ros::NodeHandle& nodeHandle, const std::string& suffix, const std::string& message, swarmio::services::keyvalue::Service& keyvalueService, const std::string& name, const std::string& parameter, bool isWritable);
50 
56  virtual void Set(const std::string& path, const swarmio::data::Variant& value) override;
57  };
58 }
59 
ParameterPublisher(ros::NodeHandle &nodeHandle, const std::string &suffix, const std::string &message, swarmio::services::keyvalue::Service &keyvalueService, const std::string &name, const std::string &parameter, bool isWritable)
Construct a new ParameterPublisher object.
The Key-Value Service is responsible for getting and setting named values.
A Target implementation that uses the ROS parameter server.
Serializer for full-fledged message types.
ros::Publisher _publisher
Publisher.
const introspection::MessageSerializer * _serializer
Serializer.
virtual void Set(const std::string &path, const swarmio::data::Variant &value) override
Set the current value of the target.
void UpdateValue(const swarmio::data::Variant &value)
Update the currently latched value.
An extension of ParameterTarget that publishes updates as custom messages.


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