Git Product home page Git Product logo

Comments (13)

senia907 avatar senia907 commented on July 20, 2024 1

Tried your fork, It didn't fix it.

from realsense-ros.

reaganlo avatar reaganlo commented on July 20, 2024

@senia907
Depth Registration is not done within the R200 nodelet. You could use the nodelets provided in rgbd_launch to do it.

In order to do that at your desired resolution (640x480), you can try the following:

  • Replace the realsense_r200_nodelet.launch.xml file in the launch/includes folder with realsense_r200_nodelet.launch.xml.txt (make sure to remove the .txt extension which was added because git does not allow .xml attachments).
    This file has been modified to include the "manual" mode, and the resolutions & fps for the depth and color streams.
  • Then launch realsense_r200_rgbd.launch like you did before.
  • Then view the /camera/depth_registered/sw_registered/image_rect and /camera/depth_registered/sw_registered/image_rect_raw topics using rViz. Make sure to un-check the Normalize Range option.

If you still see alignment issues and/or bad data, please let us know and we will look into this further.

from realsense-ros.

senia907 avatar senia907 commented on July 20, 2024

Hi,
Thanks for the replay, I changed the realsense_r200_nodelet.launch.xml file with the one you added, and launched realsense_r200_rgbd.launch, yet I got a bad(white+checkered) image at /camera/depth_registered/sw_registered/image_rect:
sw_image_rect
and a bad(checkered) image at #same#/image_rect_raw:
sw_image_rect_raw
where I want the format of a regular depth image(like in /camera/depth/image_raw):
depth_raw
I'm using image_view package to view the images, and launching Rviz with the normalize range option disabled, where I think is connected to my problem, but I saw similler results.
Either way, if it's in Rviz It doesn't help me much as I need a registered depth stream with /camera/depth/image_raw format.
Thanks.

from realsense-ros.

senia907 avatar senia907 commented on July 20, 2024

Hi,
Is there a solution available?
I see this problem as making the ROS driver completely unreliable.

from realsense-ros.

ddiakopoulos avatar ddiakopoulos commented on July 20, 2024

@senia907 since you would have also installed librealsense as part of this driver, maybe it would make sense to experiment with librealsense and use its rectified streams directly (see one of the several examples, like cpp-alignimage)

from realsense-ros.

senia907 avatar senia907 commented on July 20, 2024

Hi,
Thanks for the replay, yet cpp-alignimage is just a view, and isn't capable of changing/moving one of the streams. All other example didn't seem useful too.

from realsense-ros.

linknum23 avatar linknum23 commented on July 20, 2024

@senia907 I have added the alignment code suggested to my fork of the realsense driver. Please try using it with the realsense_r200_rgbd.launch file included. I hope it fixes your issues.

from realsense-ros.

linknum23 avatar linknum23 commented on July 20, 2024

So the color and depth are still out of alignment using the realsense_r200_rgbd.launch file?

from realsense-ros.

senia907 avatar senia907 commented on July 20, 2024

Yes, they are still out of alignment.

from realsense-ros.

mkhansenbot avatar mkhansenbot commented on July 20, 2024

@senia907 - have you run with our newest release 1.6.0 and do you still see this issue? We've made many updates since this issue was first filed that may have helped.

from realsense-ros.

bheisele avatar bheisele commented on July 20, 2024

having similar problem (r200_nodelet_rgbd.launch):
checkered artifacts in registered depth image: /camera/depth_registered/sw_registered/image_rect_raw
on Ubuntu 16.04, 4.4.0-45-generic
Installed precompiled version for ros-kinetic-relasense-camera
librealsense version: 1.11.0
realsense_camera: 1.5.0

from realsense-ros.

mindThomas avatar mindThomas commented on July 20, 2024

Checkered artifacts are not actual artifacts but rather a result from the image registration. The image registration both transforms (scales, moves and rotates) the depth image into the RGB image and hence also changes the intrinsics of the image. As the resolution of the depth image is lower than the RGB image (when running in 480x360 mode) the checkered depth image is simply a result of missing pixels when the image is scaled.
See also: ros-perception/image_pipeline#265

PS. I can confirm that both low resolution (480x360) and high resolution (640x480) works. Though both resolutions have some clear edges due to the disparity matching/generation inside the R200 camera.

from realsense-ros.

icarpis avatar icarpis commented on July 20, 2024

Fixed by #261

from realsense-ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.