Skip to content

Commit 89c5b03

Browse files
Updated camera_info to use the latest StretchMujoco changes
1 parent b04f501 commit 89c5b03

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

stretch_simulation/stretch_mujoco_driver/stretch_mujoco_driver.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def publish_camera_and_lidar(self, current_time: TimeMsg | None = None):
679679

680680
settings = camera.initial_camera_settings
681681
camera_info = create_camera_info(
682-
fovy=settings.fovy,
682+
fovy=settings.field_of_view_vertical_in_degrees,
683683
width=settings.width,
684684
height=settings.height,
685685
frame_id=header.frame_id,
@@ -1482,18 +1482,13 @@ def create_camera_info(
14821482

14831483

14841484
def get_camera_frame(camera: StretchCameras):
1485-
# return "link_head_pan"
14861485
if camera == StretchCameras.cam_d405_rgb:
1487-
# return "gripper_camera_link"
14881486
return "gripper_camera_color_optical_frame"
14891487
if camera == StretchCameras.cam_d405_depth:
1490-
# return "gripper_camera_link"
14911488
return "gripper_camera_depth_optical_frame"
14921489
if camera == StretchCameras.cam_d435i_rgb:
1493-
# return "camera_link"
14941490
return "camera_color_optical_frame"
14951491
if camera == StretchCameras.cam_d435i_depth:
1496-
# return "camera_link"
14971492
return "camera_depth_optical_frame"
14981493
if camera == StretchCameras.cam_nav_rgb:
14991494
return "link_head_nav_cam"

0 commit comments

Comments
 (0)