-
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
Error frame ID for the right infrared image and camera info topic #2220
Comments
Hi @hanyin-intel May I first confirm whether you have the camera plugged into a USB 3 port, please? Infrared 2 is not available when the camera is on a USB 2.1 connection. If the camera is plugged into a USB 3 port then you can confirm whether it is being correctly detected as USB 3 by finding the line Device USB type near the top of the second half of the launch log in the terminal and seeing if it has '2.1' or '3.2' beside it. If it is 2.1 then the camera has been detected as being on a USB 2 connection, whilst 3.2 means that it is detected as a USB 3 connection. |
Hi @MartyG-RealSense, thanks for your quick reply. My USB cable and port both support 3.0 protocol. The log output is
|
Thank you very much for the confirmation. Next, please try changing the resolution in the roslaunch instruction to 1280x720, as 1280x800 is not a supported infrared resolution. Using 1280x800 in a custom stream configuration in a roslaunch would likely cause the custom configuration to be deemed invalid and the camera's default configuration values would be applied to the launch instead. |
Thanks for your suggestion. Actually the d435 support both 1280x720 and 1280x800 infrared resolution, I have validate the infrared resolution configuration by And as your suggestion, I also changed the infrared resolution to 1280x720 by setting |
You are corect - though 1280x800 is not listed in the camera data sheet document, it is accessible in the Viewer. The resolution was not offered on my main computer but was accessible from a D435i on another computer. In #1242 Doronhi the RealSense ROS1 wrapper developer discussed having the right camera frame_id equal to that of left camera, as this was required by some ROS packages such as StereoCameraModel |
Oh, I don't know such ROS convention previously. Actually what I want to do is to get coordinate transform from right camera to left camera in stereo mode, so I just pass the frame id of right/left camera info to the tf2 |
Does the command below provide the desired result for you?
|
Yes, that works. But the problem is if my program doesn't know the frame ID in advance, I have no way to know the infra2 frame ID in TF tree... Actually, I'm not only deal with the realsense input but also rosbag input or any other camera input. Anyway, I can expose this parameter to user or derive it from the infra1 frame ID. Thanks again! |
The
frame_id
filed of/camera/infra2/camera_info
and/camera/infra2/image_rect_raw
topic should becamera_infra2_optical_frame
but now iscamera_infra1_optical_frame
. The camera I use is D435 but I think the issue is not related to specific device.How to reproduce
In one terminal, run below command
In another terminal, run below command to see the
frame_id
field inheader
The text was updated successfully, but these errors were encountered: