|
C++ YASMIN (Yet Another State MachINe)
|
State that retrieves parameters from the ROS 2 parameter server. More...
#include <get_parameters_state.hpp>


Public Types | |
| using | Parameters = std::unordered_map<std::string, std::any> |
| Type alias for a map of parameters. | |
Public Member Functions | |
| GetParametersState (const Parameters ¶meters, rclcpp::Node::SharedPtr node=nullptr) | |
| Shared pointer type for GetParametersState. | |
| std::string | execute (yasmin::Blackboard::SharedPtr blackboard) override |
| Executes the state to retrieve parameters. | |
Public Member Functions inherited from yasmin::State | |
| 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. | |
Private Attributes | |
| std::unordered_map< std::string, std::any > | parameters_ |
| rclcpp::Node::SharedPtr | node_ |
| Shared pointer to the ROS 2 node. | |
Additional Inherited Members | |
Protected Attributes inherited from yasmin::State | |
| Outcomes | outcomes |
| The possible outcomes of this state. | |
State that retrieves parameters from the ROS 2 parameter server.
This state retrieves parameters from the ROS 2 parameter server and stores them in the blackboard.
| using yasmin_ros::GetParametersState::Parameters = std::unordered_map<std::string, std::any> |
Type alias for a map of parameters.
| GetParametersState::GetParametersState | ( | const Parameters & | parameters, |
| rclcpp::Node::SharedPtr | node = nullptr ) |
Shared pointer type for GetParametersState.
Constructs a GetParametersState with a map of parameters.
| parameters | A map of parameter names to their default values. |
| node | A shared pointer to the ROS 2 node. |
|
overridevirtual |
Executes the state to retrieve parameters.
| blackboard | A reference to the Yasmin blackboard. |
Reimplemented from yasmin::State.
|
private |
Shared pointer to the ROS 2 node.
|
private |
Map of parameters to retrieve, where the key is the parameter name and the value is the default value.