Skip to content

Commit 153a1cb

Browse files
Add new line
1 parent 0e55a53 commit 153a1cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

robosuite/controllers/composite/composite_controller.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ def get_controller_base_pose(self, controller_name):
125125
"""
126126
Get the base position and orientation of a specified controller's part. Note: this pose may likely differ from
127127
the robot base's pose.
128+
128129
Args:
129130
controller_name (str): The name of the controller, used to look up part-specific information.
131+
130132
Returns:
131133
tuple[np.ndarray, np.ndarray]: A tuple containing:
132134
- base_pos (np.ndarray): The 3D position of the part's center in world coordinates (shape: (3,)).
133135
- base_ori (np.ndarray): The 3x3 rotation matrix representing the part's orientation in world coordinates.
136+
134137
Details:
135138
- Uses the controller's `naming_prefix` and `part_name` to construct the corresponding site name.
136139
- Queries the simulation (`self.sim`) for the site's position (`site_xpos`) and orientation (`site_xmat`).

0 commit comments

Comments
 (0)