2323def load_robot_description (
2424 description_name : str ,
2525 commit : Optional [str ] = None ,
26- load_visuals : bool = True ,
27- load_collisions : bool = True ,
26+ ** kwargs ,
2827) -> yourdfpy .URDF :
2928 """Load a robot description in yourdfpy.
3029
3130 Args:
3231 description_name: Name of the robot description.
3332 commit: If specified, check out that commit from the cloned robot
3433 description repository.
35- load_visuals: If true, loads the visual meshes and scene.
36- load_collisions: If true, loads the collision meshes and scene.
34+ kwargs: arguments passed to yourdfpy.URDF.load function, including:
35+ build_scene_graph: Whether to build a scene graph from visual elements.
36+ build_collision_scene_graph: Whether to build a scene graph from collision elements.
37+ load_meshes: Whether to load the meshes for the visual elements.
38+ load_collision_meshes: Whether to load the meshes for the collision elements.
3739
3840 Returns:
3941 Robot model for yourdfpy.
@@ -49,8 +51,5 @@ def load_robot_description(
4951 return yourdfpy .URDF .load (
5052 module .URDF_PATH ,
5153 mesh_dir = module .PACKAGE_PATH ,
52- build_scene_graph = load_visuals ,
53- build_collision_scene_graph = load_collisions ,
54- load_meshes = load_visuals ,
55- load_collision_meshes = load_collisions ,
54+ ** kwargs ,
5655 )
0 commit comments