isaacimi.ros_manager
Classes:
| Name | Description |
|---|---|
RosManager |
A static utility container for managing ROS nodes in the simulation. |
RosManager
A static utility container for managing ROS nodes in the simulation.
Note: One multi-threaded executor is used to execute all ROS nodes in the simulation.
Warning: the RosManager is not instantiable
Methods:
| Name | Description |
|---|---|
ensure_node |
Return the ROS node corresponding to the specified robot name in the simulation. |
shutdown |
Removes all ROS nodes being managed. |
spin_once |
Calls the |
Source code in src/isaacimi/ros_manager.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
ensure_node
classmethod
ensure_node(robot_name: str) -> Node
Return the ROS node corresponding to the specified robot name in the simulation.
If a ROS node does not exist for the specified robot, instantiate one and add it to the registry. Otherwise, return the existing node from the registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
the name of the robot the ROS node belongs to |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Node |
Node
|
the ROS node instance |
Source code in src/isaacimi/ros_manager.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
shutdown
classmethod
shutdown() -> None
Removes all ROS nodes being managed.
Source code in src/isaacimi/ros_manager.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
spin_once
classmethod
spin_once() -> None
Calls the spin_once() method on the multi-threaded executor.
Source code in src/isaacimi/ros_manager.py
53 54 55 56 57 58 | |