A ROS 2 action server node for calculating Fibonacci sequences.
More...
A ROS 2 action server node for calculating Fibonacci sequences.
◆ Fibonacci
◆ GoalHandleFibonacci
Alias for the goal handle of the Fibonacci action.
◆ FibonacciActionServer()
| FibonacciActionServer::FibonacciActionServer |
( |
| ) |
|
|
inlineexplicit |
Constructor for the FibonacciActionServer.
Initializes the action server and sets up the goal, cancel, and accepted callbacks.
- Parameters
-
| options | Node options for initialization. |
◆ execute()
| void FibonacciActionServer::execute |
( |
const std::shared_ptr< GoalHandleFibonacci > | goal_handle | ) |
|
|
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.
- Parameters
-
| goal_handle | Shared pointer to the goal handle. |
◆ action_server_
| rclcpp_action::Server<Fibonacci>::SharedPtr FibonacciActionServer::action_server_ |
|
private |
The action server instance for Fibonacci calculations.
The documentation for this class was generated from the following file: