|
| void | callback (const geometry_msgs::msg::Twist::SharedPtr msg) |
| | Callback handler for Twist messages.
|
| void | callback_stamped (const geometry_msgs::msg::TwistStamped::SharedPtr msg) |
| | Callback handler for TwistStamped messages.
|
| | Input (std::string new_name, std::string new_topic) |
| | Constructor.
|
| virtual | ~Input ()=default |
| | Destructor.
|
| Public Member Functions inherited from roboligo::Commander |
| | Commander (std::string new_name, std::string new_value) |
| | Constructor for Commander.
|
| void | init (std::string new_name, std::string new_value) |
| | Initialize the commander with name and value.
|
| bool | is_stamped (void) |
| | Check if timestamp stamping is enabled.
|
| void | set_stamp (bool stamped) |
| | Enable or disable timestamp stamping for messages.
|
| virtual | ~Commander ()=default |
| | Virtual destructor.
|
| interfaces::modes | get_mode () |
| | Gets the current mode of the linker.
|
| std::string | get_name () |
| | Gets the linker name.
|
| std::string | get_topic () |
| | Gets the topic name.
|
| bool | is_available (void) |
| | Checks if the linker is available.
|
| bool | is_configured (void) |
| | Checks if the linker is configured.
|
| | Linker () |
| | Default constructor.
|
| void | set_available (bool new_state) |
| | Sets the availability state.
|
| void | set_configured (bool new_state) |
| | Sets the configuration state.
|
| void | set_interface (std::string name_, std::string topic_name_) |
| | Configures the interface with name and topic.
|
| void | set_mode (interfaces::modes new_mode) |
| | Sets the linker mode.
|
| void | set_name (std::string new_name) |
| | Sets the linker name.
|
| void | set_service (std::string new_name) |
| | Sets the service name.
|
| void | set_topic (std::string new_name) |
| | Sets the topic name.
|
| virtual | ~Linker ()=default |
| | Virtual destructor.
|
Commander that subscribes to and processes Twist messages.
Manages subscriptions to both Twist and TwistStamped message topics, storing the received data and providing callback handlers for message processing.
- Parameters
-
| new_name | The name identifier for this input commander. |
| new_topic | The ROS 2 topic to subscribe to. |