pyrobosim_ros.ros_interface.WorldROSWrapper
- class pyrobosim_ros.ros_interface.WorldROSWrapper(*args: Any, **kwargs: Any)
ROS 2 wrapper node for pyrobosim worlds.
Methods
__init__([world, name, num_threads, ...])Creates a ROS 2 world wrapper node.
action_callback(goal_handle)Handle single action callback.
add_robot_ros_interfaces(robot)Adds a velocity command subscriber and state publisher for a specific robot.
Updates the dynamics of all spawned robots based on the latest received velocity commands.
is_robot_busy(robot)Check if a robot is currently executing an action or plan.
package_robot_state(robot)Creates a ROS message containing a robot state.
plan_callback(goal_handle)Handle task plan action callback.
remove_robot_ros_interfaces(robot)Removes ROS interfaces for a specific robot.
set_world(world)Sets a world.
start([wait_for_gui])Starts the node.
velocity_command_callback(msg, robot)Handle single velocity command callback.
world_state_callback(request, response)Returns the world state as a response to a service request.