|
| AddTwoIntsState () |
| Constructor for AddTwoIntsState.
|
|
example_interfaces::srv::AddTwoInts::Request::SharedPtr | create_request_handler (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) |
| Creates a service request using values from the blackboard.
|
|
std::string | response_handler (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard, example_interfaces::srv::AddTwoInts::Response::SharedPtr response) |
| Handles the service response and stores the result in the blackboard.
|
|
| ServiceState (std::string srv_name, CreateRequestHandler create_request_handler, std::set< std::string > outcomes, int timeout=-1.0) |
| Construct a ServiceState with a request handler and outcomes.
|
|
| ServiceState (std::string srv_name, CreateRequestHandler create_request_handler, std::set< std::string > outcomes, ResponseHandler response_handler, int timeout=-1.0) |
| Construct a ServiceState with a request handler and response handler.
|
|
| ServiceState (const rclcpp::Node::SharedPtr &node, std::string srv_name, CreateRequestHandler create_request_handler, std::set< std::string > outcomes, ResponseHandler response_handler, int timeout=-1.0) |
| Construct a ServiceState with a ROS 2 node and handlers.
|
|
std::string | execute (std::shared_ptr< yasmin::blackboard::Blackboard > blackboard) override |
| Execute the service call and handle the response.
|
|
| State (std::set< std::string > outcomes) |
| Constructs a State with a set of possible outcomes.
|
|
std::string | operator() (std::shared_ptr< blackboard::Blackboard > blackboard) |
| Executes the state and returns the outcome.
|
|
virtual void | cancel_state () |
| Cancels the current state execution.
|
|
bool | is_canceled () const |
| Checks if the state has been canceled.
|
|
bool | is_running () const |
| Checks if the state is currently running.
|
|
std::set< std::string > const & | get_outcomes () |
| Gets the set of possible outcomes for this state.
|
|
virtual std::string | to_string () |
| 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.