C++ YASMIN (Yet Another State MachINe)
|
A ROS 2 action server node for calculating Fibonacci sequences. More...
Public Types | |
using | Fibonacci = example_interfaces::action::Fibonacci |
Alias for the Fibonacci action type. | |
using | GoalHandleFibonacci = rclcpp_action::ServerGoalHandle<Fibonacci> |
Alias for the goal handle of the Fibonacci action. | |
Public Member Functions | |
FibonacciActionServer () | |
Constructor for the FibonacciActionServer. | |
Private Member Functions | |
void | execute (const std::shared_ptr< GoalHandleFibonacci > goal_handle) |
Executes the Fibonacci calculation for a given goal. | |
Private Attributes | |
rclcpp_action::Server< Fibonacci >::SharedPtr | action_server_ |
The action server instance for Fibonacci calculations. | |
A ROS 2 action server node for calculating Fibonacci sequences.
using FibonacciActionServer::Fibonacci = example_interfaces::action::Fibonacci |
Alias for the Fibonacci action type.
using FibonacciActionServer::GoalHandleFibonacci = rclcpp_action::ServerGoalHandle<Fibonacci> |
Alias for the goal handle of the Fibonacci action.
|
inlineexplicit |
Constructor for the FibonacciActionServer.
Initializes the action server and sets up the goal, cancel, and accepted callbacks.
options | Node options for initialization. |
|
inlineprivate |
Executes the Fibonacci calculation for a given goal.
Generates the Fibonacci sequence up to the requested order, providing feedback to the client and handling cancellation requests.
goal_handle | Shared pointer to the goal handle. |
|
private |
The action server instance for Fibonacci calculations.