pyrobosim.gui.world_canvas.WorldCanvas
- class pyrobosim.gui.world_canvas.WorldCanvas(main_window, world, dpi=100, animation_dt=0.1, realtime_factor=1.0)
Canvas for rendering a pyrobosim world as a matplotlib figure in an application.
Methods
__init__
(main_window, world[, dpi, ...])Creates an instance of a pyrobosim figure canvas.
adjust_text
(objs)Adjust text in a figure.
Redraws the figure and waits a small amount of time.
Returns a list of artists to animate when blitting.
Monitors the navigation animation (to be started in a separate thread).
navigate
(robot, goal[, path])Animates a path to a goal location using a robot's path executor.
navigate_in_thread
(robot, goal[, path])Starts a thread to navigate a robot to a goal.
pick_object
(robot, obj_name[, grasp_pose])Picks an object with a specified robot.
place_object
(robot[, pose])Places an object at a specified robot's current location.
show
()Displays all entities in the world (robots, rooms, objects, etc.).
show_planner_and_path
([robot, path])Plot the path planner and latest path, if specified.
Draws robots as circles with heading lines for visualization.
show_world_state
([robot, navigating])Shows the world state in the figure title.
update_object_plot
(obj)Updates an object visualization based on its pose.
Updates the robot visualization graphics objects.
Attributes
Lock for drawing on the canvas in a thread-safe manner.
Signal to trigger navigation method in a thread-safe manner.
zorder for object visualization.
Multiplier of robot radius for plotting robot orientation lines.
zorder for robot visualization.