Viz¶
Vizualization tools for plotting different objects.
- util.viz.plot_box(pos, quat, size, color=(0, 0, 0, 1), ax=None)¶
Plots rectangular box in 3D. To show the plot you need to call plt.show()
- Parameters
pos (list) – The position of the box
quat (Quaternion) – The orientation of the box
size (list) – The size of the box
color (list) – RGBA color of the box
ax (matplotlib.axes) – An axes object to use for plotting in an existing plot
- util.viz.plot_frame(pos=array([0., 0., 0.]), quat=<clt_core.util.orientation.Quaternion object>, scale=1, ax=None)¶
Plots a reference frame in 3D. To show the plot you need to call plt.show()
- Parameters
pos (list) – The position of the frame
quat (Quaternion) – The orientation of the frame in quaternion
scale (float) – The scale of the frame
ax (matplotlib.axes) – An axes object to use for plotting in an existing plot