-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Is there a way to specify color stream type? #1670
Comments
Hi @ulassbin In the RealSense ROS wrapper you can set stream format (infra, color, fisheye, depth, gyro, accel, pose) and its height, width and FPS but not the mode used for that format. The ROS wrapper file base_realsense_node.cpp provides information about how the streams are defined in the wrapper. The Y16 format can be defined using code in the librealsense SDK. The link below provides information about this and a link to Python scripting for doing so for the left and right infrared streams. IntelRealSense/librealsense#6741 (comment) I believe that for Y16 color from the RGB sensor the equivalent Python instruction in librealsense would be: config.enable_stream(rs.stream.color, 1280, 720, rs.format.y16, 30) |
Changing the lines: realsense-ros/realsense2_camera/src/base_realsense_node.cpp Lines 114 to 115 in c5403a2
to
and lines:
to
worked for me. When I have the time, I can make this format a parameter and send a pr. Thanks! |
Awesome to hear that you were able to develop a solution that worked for you @ulassbin - thanks very much for sharing your method and the offer of a PR contribution :) |
Specifically I am interested in getting Y16 encoding because my application needs unrectified image. I have seen from
https://community.intel.com/t5/Items-with-no-label/How-to-enable-both-Y16-unrectified-streams-from-D435-in-SDK2-0/td-p/618843
that Y16 stream is unrectified.
The text was updated successfully, but these errors were encountered: