visualizer module
- class visualizer.Visualizer(client=None)[source]
Bases:
objectClass to help with custom rendering
- Parameters:
client (int, optional, default=None) – The client to be used for the visualizer.
- class MenuCallback(menu_id, parent)[source]
Bases:
objectClass to handle menu callbacks.
Initialize the MenuCallback class.
- Parameters:
menu_id (int) – The id of the menu.
parent (pointer to the class of visualizer.Visualizer type) – The parent class (Visualizer).
- find_xyz_rpy(mesh_name, urdf_name='robot')[source]
Find the xyz, rpy and scales values.
- Parameters:
mesh_name (str) – The name of the mesh.
urdf_name (str, optional, default="robot") – The name of the urdf.
- Returns:
The xyz, rpy, and scales, link_name
- read_info(obj_id)[source]
Read info from PyBullet
- Parameters:
obj_id (int) – id of the object; given by pybullet
- Returns:
0 for success
- Return type:
int