pybullet_planning.interfaces.env_manager.create_obj
-
pybullet_planning.interfaces.env_manager.create_obj(path, scale=1.0, mass=0, collision=True, color=(0.5, 0.5, 0.5, 1))[source] Create a body from a given mesh file. Only .obj and .stl formats are supported.
- Parameters
path (str) – absolute file path.
scale (float, optional) – mesh scale, by default 1.
mass ([type], optional) – [description], by default STATIC_MASS
collision (bool, optional) – [description], by default True
color ([type], optional) – [description], by default GREY
- Returns
int – body index