Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Realsense Camera Resolution #41

Merged
merged 5 commits into from
May 21, 2024
Merged

Conversation

hello-fazil
Copy link
Contributor

@hello-fazil hello-fazil commented May 20, 2024

Description

Due to updates in librealsense and the camera firmware, some of the RealSense camera parameters have changed (see more details here). This PR brings the web teleop interface up-to-date with these changes.

NOTE: This PR requires the one-line change from here. Until that is merged in, I'd suggest modifying building realsense_ros from source and manually adding that change.

Testing

  • On a "new" Stretch (e.g., D405 firmware 5.12.14.100, librealsense v2.55.1, realsense_ros on this commit), verify that this PR addresses the bug:
    • Pull the master branch of this repo. Rebuild. Launch the web app (i.e., colcon_cd stretch_web_teleop; ./launch_interface.sh). Verify that the gripper RGB image is zoomed in (e.g., the gripper is not visible in the rendered image).
    • To double-check, run ros2 topic echo /gripper_camera/image_raw | grep width. Verify that it is 848.
    • Pull this branch (bugfix/multi_camera_launch). Rebuild. Launch the web app. Verify that the gripper RGB image is not zoomed in (e.g., the gripper is visible in the rendered image).
    • To double-check, run ros2 topic echo /gripper_camera/image_raw | grep width. Verify that it is 480.
  • On an old Stretch (e.g., one that doesn't have the bug), verify that this PR doesn't break anything:
    • Pull this branch (bugfix/multi_camera_launch). Rebuild. Launch the web app. Verify that the gripper RGB image is not zoomed in (e.g., the gripper is visible in the rendered image).
    • To double-check, run ros2 topic echo /gripper_camera/image_raw | grep width. Verify that it is 480.

@hello-amal hello-amal changed the title Bugfix/multi camera launch Fix Realsense Camera Resolution May 21, 2024
@hello-amal
Copy link
Collaborator

hello-amal commented May 21, 2024

@hello-vinitha This PR is now ready for review. Can you test this on your Stretch, which didn't have the bug, to verify that it doesn't break anything?

Copy link
Collaborator

@hello-vinitha hello-vinitha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Stretch RE2 with DexWrist 3. Confirmed test scenarios pass for this setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants