visualizer
- class visualizer.Visualizer(client=None)[source]
Bases:
object
Class to help with custom rendering
- Parameters:
client (int, optional, default=None) – The client to be used for the visualizer.
- class EyeWindow(eye, parent)[source]
Bases:
object
Class to handle windows for eye rendering
- Parameters:
eye (str) – name of the eye
parent (int) – The parent class (Visualizer).
- MENU_IDS = {'l_eye': [2, 3, 8], 'r_eye': [4, 5, 9]}
- POSITIONS = {'l_eye': [320, 560], 'r_eye': [0, 560]}
- on_mouse(event)[source]
Small function to ignore mouse events
- Parameters:
event (gui.MouseEvent) – Mouse event
- class MenuCallback(menu_id, parent)[source]
Bases:
object
Class 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