roboplan.visualization ====================== .. py:module:: roboplan.visualization Functions --------- .. autoapisummary:: roboplan.visualization.visualizePath roboplan.visualization.visualizeTree roboplan.visualization.visualizeJointTrajectory Module Contents --------------- .. py:function:: visualizePath(viz, scene, path, frame_names, max_step_size, color = (100, 0, 0), name = '/rrt/path') Helper function to visualize an RRT path. Args viz: The viser visualizer instance. scene: The scene instance. path: The joint path to visualize. frame_names: The list of frame names to use for forward kinematics. max_step_size: The maximum step size between joint configurations when interpolating paths. color: The color of the rendered path. name: The name of the path in the vizer window. .. py:function:: visualizeTree(viz, scene, rrt, frame_names, max_step_size, start_tree_color = (0, 100, 100), start_tree_name = '/rrt/start_tree', goal_tree_color = (100, 0, 100), goal_tree_name = '/rrt/goal_tree') Helper function to visualize the start and goal trees from an RRT planner. Args viz: The viser visualizer instance. scene: The scene instance. rrt: The RRT planner instance. path: The joint path to visualize. If None, does not visualize the path. frame_names: List of frame names to use for forward kinematics. max_step_size: The maximum step size between joint configurations when interpolating paths. start_tree_color: The color of the rendered start tree. start_tree_name: The name of the start tree in the vizer window. goal_tree_color: The color of the rendered goal tree. goal_tree_name: The name of the goal tree in the vizer window. .. py:function:: visualizeJointTrajectory(trajectory, scene, plot_title = 'Joint Trajectory') Visualize a joint trajectory as a plot of joint positions over time. Args trajectory: The trajectory object to be visualized. scene: The Scene object used to get joint information. plot_title: The title of the plot. Returns The matplotlib figure object. Use plt.show() to display it.