Modulo 5.0.0
Loading...
Searching...
No Matches
parameter_translators.hpp
1#pragma once
2
3#include <rclcpp/parameter.hpp>
4#include <state_representation/parameters/Parameter.hpp>
5
11
24 const std::shared_ptr<const state_representation::ParameterInterface>& source_parameter,
25 const std::shared_ptr<state_representation::ParameterInterface>& parameter);
26
33rclcpp::Parameter write_parameter(const std::shared_ptr<state_representation::ParameterInterface>& parameter);
34
41std::shared_ptr<state_representation::ParameterInterface> read_parameter(const rclcpp::Parameter& ros_parameter);
42
51std::shared_ptr<state_representation::ParameterInterface> read_parameter_const(
52 const rclcpp::Parameter& ros_parameter,
53 const std::shared_ptr<const state_representation::ParameterInterface>& parameter);
54
63 const rclcpp::Parameter& ros_parameter, const std::shared_ptr<state_representation::ParameterInterface>& parameter);
64
70rclcpp::ParameterType get_ros_parameter_type(const state_representation::ParameterType& parameter_type);
71
72}// namespace modulo_core::translators
Modulo Core translation module for converting between ROS2 and state_representation data types.
std::shared_ptr< state_representation::ParameterInterface > read_parameter(const rclcpp::Parameter &ros_parameter)
Create a new ParameterInterface from a ROS Parameter object.
rclcpp::Parameter write_parameter(const std::shared_ptr< state_representation::ParameterInterface > &parameter)
Write a ROS Parameter from a ParameterInterface pointer.
rclcpp::ParameterType get_ros_parameter_type(const state_representation::ParameterType &parameter_type)
Given a state representation parameter type, get the corresponding ROS parameter type.
void copy_parameter_value(const std::shared_ptr< const state_representation::ParameterInterface > &source_parameter, const std::shared_ptr< state_representation::ParameterInterface > &parameter)
Copy the value of one parameter interface into another.
std::shared_ptr< state_representation::ParameterInterface > read_parameter_const(const rclcpp::Parameter &ros_parameter, const std::shared_ptr< const state_representation::ParameterInterface > &parameter)
Update the parameter value of a ParameterInterface from a ROS Parameter object only if the two parame...