|
Python YASMIN (Yet Another State MachINe)
|


Public Member Functions | |
| None | __init__ (self, Dict[str, Any] parameters, Node node=None) |
| str | execute (self, Blackboard blackboard) |
Protected Attributes | |
| _parameters = parameters | |
| _node = node if node else YasminNode.get_instance() | |
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.
Attributes:
_parameters (Dict[str, Any]): Map of parameters to retrieve, where the key is the parameter name
and the value is the default value.
_node (Node): Shared pointer to the ROS 2 node.
| None yasmin_ros.get_parameters_state.GetParametersState.__init__ | ( | self, | |
| Dict[str, Any] | parameters, | ||
| Node | node = None ) |
Constructs a GetParametersState with a map of parameters.
Args:
parameters (Dict[str, Any]): A map of parameter names to their default values.
node (Node, optional): A shared pointer to the ROS 2 node.
| str yasmin_ros.get_parameters_state.GetParametersState.execute | ( | self, | |
| Blackboard | blackboard ) |
Executes the state to retrieve parameters.
Args:
blackboard (Blackboard): A reference to the Yasmin blackboard.
Returns:
str: A string representing the outcome of the execution.
|
protected |
|
protected |