rosbridge_library.internal.actions module

class rosbridge_library.internal.actions.ActionClientHandler(action: str, action_type: str, args: dict, success_callback: Callable[[dict], None], error_callback: Callable[[Exception], None], feedback_callback: Callable[[dict], None] | None, node_handle: Node)

Bases: Thread

run() None

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

exception rosbridge_library.internal.actions.InvalidActionException(action_name)

Bases: Exception

class rosbridge_library.internal.actions.SendGoal(server_timeout_time: float = 1.0, sleep_time: float = 0.001)

Bases: object

Helper class to send action goals.

cancel_goal() None
get_result_cb(future: Future) None
goal_cancel_cb(_: Future) None
goal_response_cb(future: Future) None
send_goal(node_handle: Node, action: str, action_type: str, args: dict | None = None, feedback_cb: Callable[[dict], None] | None = None) dict
rosbridge_library.internal.actions.args_to_action_goal_instance(inst: Any, args: list | dict | None) Any

Populate an action goal instance with the provided args.

Propagates any exceptions that may be raised.

Parameters:

args – Can be a dictionary of values, or a list, or None