ctu-mrs / mrs_simulation

The ROS part of the "simulation" package.
https://github.com/ctu-mrs/simulation
BSD 3-Clause "New" or "Revised" License
12 stars 14 forks source link

No left or right image on realsense d435 #23

Closed yhdurkaya closed 2 years ago

yhdurkaya commented 2 years ago

Hello pals, I have build the singularity container and I was working on a simulation. I realized that "enable_realsense_front" makes the drone spawn with a d435 sensor but there were some issues with topics that are published. Although I saw the image on /uav1/rgbd/color/image_raw topic, I couldn't see any output on the infra1 and infra2 topics. I assume that these are the stereo cameras topics that published left and right image.

I have just enabled the sensor and saw this. Do I need to enable some other config to see left and right images of the stereo camera or is it some kind of bug that I happened to see?

yhdurkaya commented 2 years ago

Actually, as I checked it again, I saw that infra1 and infra2 doesn't publish anything on each of the nodes. I can see that topics under the aligned_depth_to_color and color works but not the other 2.

yhdurkaya commented 2 years ago

With a little digging https://github.com/IntelRealSense/realsense-ros here, I found out that infra1and infra2 is disabled by default in realsense library. I tried to enable it by adding -enable_infra_rgb and such but it didn't work. Is there any way that I can add this to session.yml or anywhere else so that I can get the topics under infra1 and infra2 work?

yhdurkaya commented 2 years ago

@klaxalk Hello again:) I have searched about this and couldn't come up with a solution. Do you have any idea on this topic?

klaxalk commented 2 years ago

Hey, I think that nobody here needed to simulate (or use) the individual images since RealSense does quite a good job creating the depth on its own (and using its internal computational resources). So I think it's up to you to experiment with it. Maybe @stibipet or @matemat13 might know?

stibipet commented 2 years ago

Nice catch, this is likely a bug in our model setup. The Realsense ROS plugin is not connecting to the infrared sensors. I'll do some digging and let you know once it's fixed.

stibipet commented 2 years ago

@yhdurkaya Sorry about the delay, the issue is now fixed https://github.com/ctu-mrs/mrs_simulation/commit/54fbcc80e9daed6b8ab59f438a18f97072785470