|
| | AddTwoIntsState () |
| | Constructor for AddTwoIntsState.
|
| |
| example_interfaces::srv::AddTwoInts::Request::SharedPtr | create_request_handler (yasmin::Blackboard::SharedPtr blackboard) |
| | Creates a service request using values from the blackboard.
|
| |
| std::string | response_handler (yasmin::Blackboard::SharedPtr blackboard, example_interfaces::srv::AddTwoInts::Response::SharedPtr response) |
| | Handles the service response and stores the result in the blackboard.
|
| |
| | ServiceState (const std::string &srv_name, CreateRequestHandler create_request_handler, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Shared pointer type for ServiceState.
|
| |
| | ServiceState (const std::string &srv_name, CreateRequestHandler create_request_handler, const yasmin::Outcomes &outcomes, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Construct a ServiceState with a request handler and outcomes.
|
| |
| | ServiceState (const std::string &srv_name, CreateRequestHandler create_request_handler, const yasmin::Outcomes &outcomes, rclcpp::CallbackGroup::SharedPtr callback_group=nullptr, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Construct a ServiceState with a request handler and outcomes.
|
| |
| | ServiceState (const std::string &srv_name, CreateRequestHandler create_request_handler, ResponseHandler response_handler, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Construct a ServiceState with a request handler and response handler.
|
| |
| | ServiceState (const std::string &srv_name, CreateRequestHandler create_request_handler, const yasmin::Outcomes &outcomes, ResponseHandler response_handler, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Construct a ServiceState with a request handler and response handler.
|
| |
| | ServiceState (const rclcpp::Node::SharedPtr &node, const std::string &srv_name, CreateRequestHandler create_request_handler, const yasmin::Outcomes &outcomes, ResponseHandler response_handler, rclcpp::CallbackGroup::SharedPtr callback_group, int wait_timeout=-1, int response_timeout=-1, int maximum_retry=3) |
| | Construct a ServiceState with a ROS 2 node and handlers.
|
| |
| std::string | execute (yasmin::Blackboard::SharedPtr blackboard) override |
| | Execute the service call and handle the response.
|
| |
| | State (const Outcomes &outcomes) |
| | Shared pointer type for State.
|
| |
| virtual | ~State ()=default |
| | Virtual destructor for proper polymorphic destruction.
|
| |
| bool | is_idle () const noexcept |
| | Checks if the state is idle.
|
| |
| bool | is_running () const noexcept |
| | Checks if the state is currently running.
|
| |
| bool | is_canceled () const noexcept |
| | Checks if the state has been canceled.
|
| |
| bool | is_completed () const noexcept |
| | Checks if the state has completed execution.
|
| |
| std::string | operator() (Blackboard::SharedPtr blackboard) |
| | Executes the state and returns the outcome.
|
| |
| virtual void | cancel_state () |
| | Cancels the current state execution.
|
| |
| Outcomes const & | get_outcomes () const noexcept |
| | Gets the set of possible outcomes for this state.
|
| |
| virtual std::string | to_string () const |
| | Converts the state to a string representation.
|
| |
State for calling the AddTwoInts service in ROS 2.
This state constructs and sends a service request to add two integers, and processes the response to retrieve and store the result in the blackboard.