|
C++ YASMIN (Yet Another State MachINe)
|
A ROS 2 service server node for adding two integers. More...


Public Member Functions | |
| ServerNode () | |
| Constructor for the ServerNode class. | |
Private Attributes | |
| rclcpp::Service< example_interfaces::srv::AddTwoInts >::SharedPtr | srv_ |
| Shared pointer to the "add_two_ints" service. | |
A ROS 2 service server node for adding two integers.
This node provides a service named "add_two_ints" that accepts two integers as input and returns their sum. It also supports an optional one-shot mode that shuts down the server after handling the first request.
|
inlineexplicit |
Constructor for the ServerNode class.
Initializes the service server and an optional one-shot timer.
| options | Node options for initialization. |
|
private |
Shared pointer to the "add_two_ints" service.