rofunc.simulator.utils.ycb2urdf#
1. Module Contents#
1.1. Functions#
Convert a Trimesh object into a URDF package for physics simulation. This breaks the mesh into convex pieces and writes them to the same directory as the .urdf file. |
|
1.2. Data#
1.3. API#
- rofunc.simulator.utils.ycb2urdf.YCB_MASS = None#
- rofunc.simulator.utils.ycb2urdf.export_urdf(mesh, directory, scale=1.0, color=[0.75, 0.75, 0.75], convex_decompose=False, **kwargs)[source]#
Convert a Trimesh object into a URDF package for physics simulation. This breaks the mesh into convex pieces and writes them to the same directory as the .urdf file.
- Parameters:
mesh – Trimesh object
directory – str, the directory name for the URDF package
scale –
color –
convex_decompose – bool, whether to decompose the mesh into convex pieces
kwargs –
- Returns:
mesh: The decomposed mesh