|
| | __init__ (self, *context=None) |
| |
| | add_node (self, node) |
| | Adds a node to this executor.
|
| |
| | create_task (self, callback, *args, **kwargs) |
| | Adds a callback or coroutine to be executed during spin, returns a Future.
|
| |
| | get_nodes (self) |
| | Return nodes that have been added to this executor.
|
| |
| | remove_node (self, node) |
| | Stop managing this node's callbacks.
|
| |
| | shutdown (self, timeout_sec=None) |
| | Shuts down ROS.
|
| |
| | spin (self) |
| | Waits until ROS shut down.
|
| |
| | spin_once (self, timeout_sec=None) |
| | Waits until timeout, or forever if timeout None or negative, or until ROS shutdown.
|
| |
| | spin_once_until_future_complete (self, future, timeout_sec=None) |
| | Waits until future complete or timeout reached or ROS shut down.
|
| |
| | spin_until_future_complete (self, future, timeout_sec=None) |
| | Waits until future complete or timeout reached or ROS shut down.
|
| |
| | wake (self) |
| | Does nothing (ROS2 compatibility stand-in).
|
| |
|
| | context = property |
| | Returns context given in constructor, or None ((ROS2 compatibility stand-in).
|
| |
Definition at line 35 of file executors.py.
◆ __init__()
| rosros.rclify.executors.Executor.__init__ |
( |
|
self, |
|
|
* |
context = None |
|
) |
| |
- Parameters
-
| context | ignored (ROS2 compatibility stand-in) |
Definition at line 41 of file executors.py.
◆ add_node()
| rosros.rclify.executors.Executor.add_node |
( |
|
self, |
|
|
|
node |
|
) |
| |
Adds a node to this executor.
- Parameters
-
| node | the node to add to the executor |
- Returns
- True if the node was added, False if it already existed
Definition at line 82 of file executors.py.
◆ create_task()
| rosros.rclify.executors.Executor.create_task |
( |
|
self, |
|
|
|
callback, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Adds a callback or coroutine to be executed during spin, returns a Future.
Arguments to this function are passed to the callback.
- Parameters
-
| callback | a callback to be run in the executor |
Definition at line 62 of file executors.py.
◆ get_nodes()
| rosros.rclify.executors.Executor.get_nodes |
( |
|
self | ) |
|
Return nodes that have been added to this executor.
Definition at line 102 of file executors.py.
◆ remove_node()
| rosros.rclify.executors.Executor.remove_node |
( |
|
self, |
|
|
|
node |
|
) |
| |
Stop managing this node's callbacks.
- Parameters
-
| node | the node to remove from the executor |
Definition at line 94 of file executors.py.
◆ shutdown()
| rosros.rclify.executors.Executor.shutdown |
( |
|
self, |
|
|
|
timeout_sec = None |
|
) |
| |
Shuts down ROS.
- Parameters
-
| timeout_sec | ignored (ROS2 compatibility stand-in) |
- Returns
- True
Definition at line 70 of file executors.py.
◆ spin()
| rosros.rclify.executors.Executor.spin |
( |
|
self | ) |
|
◆ spin_once()
| rosros.rclify.executors.Executor.spin_once |
( |
|
self, |
|
|
|
timeout_sec = None |
|
) |
| |
Waits until timeout, or forever if timeout None or negative, or until ROS shutdown.
- Parameters
-
| timeout_sec | seconds to wait. Block forever if None or negative. Don't wait if 0. |
Definition at line 124 of file executors.py.
◆ spin_once_until_future_complete()
| rosros.rclify.executors.Executor.spin_once_until_future_complete |
( |
|
self, |
|
|
|
future, |
|
|
|
timeout_sec = None |
|
) |
| |
Waits until future complete or timeout reached or ROS shut down.
- Parameters
-
| future | the future to wait on until done. |
| timeout_sec | maximum seconds to wait. Block forever if None or negative. Don't wait if 0. |
Definition at line 133 of file executors.py.
◆ spin_until_future_complete()
| rosros.rclify.executors.Executor.spin_until_future_complete |
( |
|
self, |
|
|
|
future, |
|
|
|
timeout_sec = None |
|
) |
| |
Waits until future complete or timeout reached or ROS shut down.
- Parameters
-
| future | the future to wait on until done. |
| timeout_sec | maximum seconds to wait. Block forever if None or negative. Don't wait if 0. |
Definition at line 116 of file executors.py.
◆ wake()
| rosros.rclify.executors.Executor.wake |
( |
|
self | ) |
|
Does nothing (ROS2 compatibility stand-in).
Definition at line 98 of file executors.py.
◆ _context
| rosros.rclify.executors.Executor._context |
|
protected |
◆ _is_shutdown
| rosros.rclify.executors.Executor._is_shutdown |
|
protected |
◆ _nodes
| rosros.rclify.executors.Executor._nodes |
|
protected |
◆ _nodes_lock
| rosros.rclify.executors.Executor._nodes_lock |
|
protected |
◆ context
| rosros.rclify.executors.Executor.context = property |
|
static |
Returns context given in constructor, or None ((ROS2 compatibility stand-in).
Definition at line 50 of file executors.py.
The documentation for this class was generated from the following file: