|
| | MessagePair (std::shared_ptr< DataT > data, std::shared_ptr< rclcpp::Clock > clock) |
| | Constructor of the MessagePair.
|
| |
| | MessagePair (std::shared_ptr< DataT > data, std::shared_ptr< rclcpp::Clock > clock) |
| | Constructor of the MessagePair that requires custom message types only.
|
| |
| MsgT | write_message () const |
| | Write the value of the data pointer to a ROS message.
|
| |
| void | read_message (const MsgT &message) |
| | Read a ROS message and store the value in the data pointer.
|
| |
| std::shared_ptr< DataT > | get_data () const |
| | Get the data pointer.
|
| |
| void | set_data (const std::shared_ptr< DataT > &data) |
| | Set the data pointer.
|
| |
| | MessagePair (std::shared_ptr< bool > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePair (std::shared_ptr< double > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePair (std::shared_ptr< std::vector< double > > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePair (std::shared_ptr< int > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePair (std::shared_ptr< std::string > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePair (std::shared_ptr< state_representation::State > data, std::shared_ptr< rclcpp::Clock > clock) |
| |
| | MessagePairInterface (MessageType type) |
| | Constructor with the message type.
|
| |
|
virtual | ~MessagePairInterface ()=default |
| | Default virtual destructor.
|
| |
|
| MessagePairInterface (const MessagePairInterface &message_pair)=default |
| | Copy constructor from another MessagePairInterface.
|
| |
| template<typename MsgT , typename DataT > |
| std::shared_ptr< MessagePair< MsgT, DataT > > | get_message_pair (bool validate_pointer=true) |
| | Get a pointer to a derived MessagePair instance from a MessagePairInterface pointer.
|
| |
| template<typename MsgT , typename DataT > |
| MsgT | write () |
| | Get the ROS message of a derived MessagePair instance through the MessagePairInterface pointer.
|
| |
| template<typename MsgT , typename DataT > |
| void | read (const MsgT &message) |
| | Read a ROS message and set the data of the derived MessagePair instance through the MessagePairInterface pointer.
|
| |
| MessageType | get_type () const |
| | Get the MessageType of the MessagePairInterface.
|
| |
template<typename MsgT, typename DataT>
class modulo_core::communication::MessagePair< MsgT, DataT >
The MessagePair stores a pointer to a variable and translates the value of this pointer back and forth between the corresponding ROS messages.
- Template Parameters
-
| MsgT | ROS message type of the MessagePair |
| DataT | Data type corresponding to the ROS message type |
Definition at line 12 of file MessagePairInterface.hpp.