Skip to content

Commit ab198d1

Browse files
Merge branch 'Danfoa-master'
2 parents 28076ff + db07acb commit ab198d1

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

robot_descriptions/_repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class Repository:
178178
cache_path="reachy_description",
179179
),
180180
"rhea_description": Repository(
181-
url="https://github.com/tasts-robots/rhea_description.git",
181+
url="https://github.com/G-Levine/rhea_description.git",
182182
commit="1dc0f1abcf51b5d8a8f7ff8a548399ff0df1414f",
183183
cache_path="rhea_description",
184184
),

robot_descriptions/loaders/pybullet.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,26 @@
2828
def load_robot_description(
2929
description_name: str,
3030
commit: Optional[str] = None,
31+
**kwargs,
3132
) -> int:
3233
"""Load a robot description in PyBullet.
3334
3435
Args:
3536
description_name: Name of the robot description.
3637
commit: If specified, check out that commit from the cloned robot
3738
description repository.
39+
kwargs: arguments passed to pybullet.loadURDF function, including:
40+
basePosition: 3D position of the base of the robot in world
41+
coordinates.
42+
baseOrientation: orientation in quaternion (xyzw) of the base of
43+
the robot in world coordinates.
44+
flags: int flags for the URDF loading in pybullet.
45+
useFixedBase: boolean indicating use a fix joint between world and
46+
robot base.
47+
physicsClientId: int indicating the pybullet client id.
3848
3949
Returns:
40-
Identifier of the robot in PyBullet.
50+
Integer identifier of the robot in PyBullet.
4151
"""
4252
if commit is not None:
4353
os.environ["ROBOT_DESCRIPTION_COMMIT"] = commit
@@ -46,5 +56,5 @@ def load_robot_description(
4656
raise ValueError(f"{description_name} is not a URDF description")
4757

4858
pybullet.setAdditionalSearchPath(module.PACKAGE_PATH)
49-
robot = pybullet.loadURDF(module.URDF_PATH)
59+
robot = pybullet.loadURDF(module.URDF_PATH, **kwargs)
5060
return robot

0 commit comments

Comments
 (0)