-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Misaligned rgbd point cloud when align_depth is enabled #2810
Comments
Hi @hello-chintan Yes, it does sound similar to the ROS2 case at #2595 which had an internal report created by Intel about it so that it could be investigated. Until that issue is resolved, I believe that the only course of action that you can take is to set |
Hi @hello-chintan , A pull request #2775 related to this issue has been merged recently. Could you please check and confirm you have the latest RealSense ROS2 source code and observing this issue with that? |
Hey @Arun-Prasad-V, I can confirm that I am using the latest realsense-ros drivers and still seeing the misaligned point cloud issue. |
Hi @hello-chintan, |
Sure, @Arun-Prasad-V. I am using a modified launch file to set the various parameters while invoking the rs_launch.py launch file. |
Hi @hello-chintan, |
Hey @Arun-Prasad-V. Sure, we are using the HighAccuracyPreset.json file. |
Hi @hello-chintan Do you require further assistance with this case, please? Thanks! |
Hey, @MartyG-RealSense. We do not have a resolution for the underlying issue apart from the temporary patch to unset the |
Hi @hello-chintan,
|
Certainly, @Arun-Prasad-V. Pasting the values here as reported by the camera launch file at startup:
I'm also attaching the full terminal output for your reference:
|
Hi @hello-chintan Do you require further advice from @Arun-Prasad-V about this case, please? Thanks! |
Hi @MartyG-RealSense. Yes, I do. @Arun-Prasad-V, were you able to recreate the issue? Apart from the camera configuration, what does your physical setup look like to see the difference in alignment? Maybe I can suggest improvements. |
@Arun-Prasad-V Could you assist @hello-chintan with their question in the above comment, please? Thanks! |
Hi @hello-chintan , |
I appreciate y'all for looking into this! Thanks! |
Hello, I too have been seeing this problem, and I wanted to share what I have found, and how I replicate the issue. Fundamentally, I think that the To probe this a bit further, I have run RViz with the raw point cloud from the <launch>
<arg name="color_res" default="640x480"/>
<arg name="depth_res" default="640x480"/>
<arg name="fps" default="30"/>
<arg name="order_pc" default="false" description="Whether to order the point cloud"/>
<include file="$(find-pkg-share realsense2_camera)/launch/rs_launch.py">
<arg name="pointcloud.enable" value="true"/>
<arg name="rgb_camera.profile" value="$(var color_res)x$(var fps)"/>
<arg name="depth_module.profile" value="$(var depth_res)x$(var fps)"/>
<arg name="align_depth.enable" value="true"/>
<arg name="pointcloud.ordered_pc" value="$(var order_pc)"/>
</include>
<node_container pkg="rclcpp_components" exec="component_container" name="container" namespace="">
<composable_node pkg="depth_image_proc" plugin="depth_image_proc::PointCloudXyzrgbNode" name="point_cloud_xyzrgb_node" namespace="/camera">
<remap from="rgb/camera_info" to="/camera/color/camera_info" />
<remap from="rgb/image_rect_color" to="/camera/color/image_raw" />
<remap from="depth_registered/image_rect" to="/camera/aligned_depth_to_color/image_raw" />
<remap from="points" to="/camera/depth_registered/points" />
</composable_node>
</node_container>
</launch> Point Clouds from DS415 camera Point Cloud from DS435i camera White Point Cloud is from the Looking at the code on the Setup Specifics:
|
@robin-read , Thanks for the detailed explanation and the suggestions. We will check and get back asap. cc: @SamerKhshiboun |
Thanks @robin-read. I was able to reproduce the issue with the steps you have mentioned. @hello-chintan, @robin-read, |
@Arun-Prasad-V PR #2868 fixed the issue for me. I see that the point cloud is now aligned to the object irrespective of the align_depth.enable parameter being set or unset. With this, now the behavior of the driver is also similar to what's observed in Noetic. @robin-read, @Arun-Prasad-V thanks for fixing it! Waiting for it to be mainlined! |
Looks good from my end too. Any idea when this will be mainlined and |
We are planning to release debian packages by end of year. If you need help, let me know. |
@hello-chintan and @robin-read Do you require further assistance with this case, please? Thanks! |
The issue is resolved for me. Thank you! |
@hello-chintan It's great to hear that your problem is resolved. Thanks very much for the update! |
Case closed due to solution achieved and no further comments received. |
I also encountered the same issue, but I have confirmed that the problem has been resolved by PR #2868. Thanks! |
Hey team,
I am using a D435i camera on my robot to accomplish various tasks. I am using source built up to date version of realsenser-ros drivers along with ROS 2 Galactic and Humble. Upon enabling the align_depth parameter while launching the camera driver in ROS 2 and visualizing in RViz, I am observing a peculiar behavior which results in the /camera/depth/color/points topic to have an offset with respect to the actual object. This behavior is not observed when the align_depth parameter is disabled.
I am attaching images to make things more clear:
Figure 1: Point cloud offset with respect to robot model when align_depth parameter is enabled
Figure 2: No offset between point cloud and robot model when align_depth parameter is disabled
I also tested this to compare the behavior in ROS Noetic, but a similar effect was not observed when enabling the align_depth parameter. My issue seems to be similar in nature to #2595. I'd appreciate help to resolve this.
Thank you,
Chintan Desai
The text was updated successfully, but these errors were encountered: