Giter Club home page Giter Club logo

disparity_image_proc's Introduction

disparity_image_proc

Contains package that allows converting ROS disparity images to depth images.

disparity_image_proc's People

Contributors

skohlbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

disparity_image_proc's Issues

Can't obtain depth image, topic /depthimage has no messages

I'm launching the nodelet with following settings.

 <node name="disparity_image_proc" pkg="nodelet" type="nodelet" args="load disparity_image_proc/depth_image stereo_proc" output="screen">
    <remap from="/elp/right/camera_info" to="/right/camera_info"/>
    <remap from="/elp/left/camera_info" to="/left/camera_info"/>
    <remap from="/elp/left/image_rect_color" to="/left/image_rect_color"/>
    <remap from="/elp/disparity" to="/disparity"/>
    <remap from="/depth_image" to="/depth_image"/> 

The camera works and I can see the information on /camera_info and /image_rect_color topics, as well as disparity image.
Unfortunately the /depth_image topic is empty when I check it with rostopic echo command.
I've tried changing the .cpp file to set Approximate_sync to true, it didn't seem to change anything.
Do you have any ideas on what I might be doing wrong?
Thank you for your help

How can I generate depth map?

Hello,

I use stereo_image_proc to generate a disparity map as follows:

 rosrun image_view stereo_view stereo:=/ros_basler_stereo image:=image_raw _approximate_sync:=True _queue_size:=800

It gives me the below topics; however, I do not know how to use your ROS package to generate depth map:

/ros_basler_stereo/disparity
/ros_basler_stereo/left/camera_info
/ros_basler_stereo/left/image_color
/ros_basler_stereo/left/image_color/compressed
/ros_basler_stereo/left/image_color/compressed/parameter_descriptions
/ros_basler_stereo/left/image_color/compressed/parameter_updates
/ros_basler_stereo/left/image_color/compressedDepth
/ros_basler_stereo/left/image_color/compressedDepth/parameter_descriptions
/ros_basler_stereo/left/image_color/compressedDepth/parameter_updates
/ros_basler_stereo/left/image_color/theora
/ros_basler_stereo/left/image_color/theora/parameter_descriptions
/ros_basler_stereo/left/image_color/theora/parameter_updates
/ros_basler_stereo/left/image_mono
/ros_basler_stereo/left/image_mono/compressed
/ros_basler_stereo/left/image_mono/compressed/parameter_descriptions
/ros_basler_stereo/left/image_mono/compressed/parameter_updates
/ros_basler_stereo/left/image_mono/compressedDepth
/ros_basler_stereo/left/image_mono/compressedDepth/parameter_descriptions
/ros_basler_stereo/left/image_mono/compressedDepth/parameter_updates
/ros_basler_stereo/left/image_mono/theora
/ros_basler_stereo/left/image_mono/theora/parameter_descriptions
/ros_basler_stereo/left/image_mono/theora/parameter_updates
/ros_basler_stereo/left/image_raw
/ros_basler_stereo/left/image_rect
/ros_basler_stereo/left/image_rect/compressed
/ros_basler_stereo/left/image_rect/compressed/parameter_descriptions
/ros_basler_stereo/left/image_rect/compressed/parameter_updates
/ros_basler_stereo/left/image_rect/compressedDepth
/ros_basler_stereo/left/image_rect/compressedDepth/parameter_descriptions
/ros_basler_stereo/left/image_rect/compressedDepth/parameter_updates
/ros_basler_stereo/left/image_rect/theora
/ros_basler_stereo/left/image_rect/theora/parameter_descriptions
/ros_basler_stereo/left/image_rect/theora/parameter_updates
/ros_basler_stereo/left/image_rect_color
/ros_basler_stereo/left/image_rect_color/compressed
/ros_basler_stereo/left/image_rect_color/compressed/parameter_descriptions
/ros_basler_stereo/left/image_rect_color/compressed/parameter_updates
/ros_basler_stereo/left/image_rect_color/compressedDepth
/ros_basler_stereo/left/image_rect_color/compressedDepth/parameter_descriptions
/ros_basler_stereo/left/image_rect_color/compressedDepth/parameter_updates
/ros_basler_stereo/left/image_rect_color/theora
/ros_basler_stereo/left/image_rect_color/theora/parameter_descriptions
/ros_basler_stereo/left/image_rect_color/theora/parameter_updates
/ros_basler_stereo/points2
/ros_basler_stereo/right/camera_info
/ros_basler_stereo/right/image_color
/ros_basler_stereo/right/image_color/compressed
/ros_basler_stereo/right/image_color/compressed/parameter_descriptions
/ros_basler_stereo/right/image_color/compressed/parameter_updates
/ros_basler_stereo/right/image_color/compressedDepth
/ros_basler_stereo/right/image_color/compressedDepth/parameter_descriptions
/ros_basler_stereo/right/image_color/compressedDepth/parameter_updates
/ros_basler_stereo/right/image_color/theora
/ros_basler_stereo/right/image_color/theora/parameter_descriptions
/ros_basler_stereo/right/image_color/theora/parameter_updates
/ros_basler_stereo/right/image_mono
/ros_basler_stereo/right/image_mono/compressed
/ros_basler_stereo/right/image_mono/compressed/parameter_descriptions
/ros_basler_stereo/right/image_mono/compressed/parameter_updates
/ros_basler_stereo/right/image_mono/compressedDepth
/ros_basler_stereo/right/image_mono/compressedDepth/parameter_descriptions
/ros_basler_stereo/right/image_mono/compressedDepth/parameter_updates
/ros_basler_stereo/right/image_mono/theora
/ros_basler_stereo/right/image_mono/theora/parameter_descriptions
/ros_basler_stereo/right/image_mono/theora/parameter_updates
/ros_basler_stereo/right/image_raw
/ros_basler_stereo/right/image_rect
/ros_basler_stereo/right/image_rect/compressed
/ros_basler_stereo/right/image_rect/compressed/parameter_descriptions
/ros_basler_stereo/right/image_rect/compressed/parameter_updates
/ros_basler_stereo/right/image_rect/compressedDepth
/ros_basler_stereo/right/image_rect/compressedDepth/parameter_descriptions
/ros_basler_stereo/right/image_rect/compressedDepth/parameter_updates
/ros_basler_stereo/right/image_rect/theora
/ros_basler_stereo/right/image_rect/theora/parameter_descriptions
/ros_basler_stereo/right/image_rect/theora/parameter_updates
/ros_basler_stereo/right/image_rect_color
/ros_basler_stereo/right/image_rect_color/compressed
/ros_basler_stereo/right/image_rect_color/compressed/parameter_descriptions
/ros_basler_stereo/right/image_rect_color/compressed/parameter_updates
/ros_basler_stereo/right/image_rect_color/compressedDepth
/ros_basler_stereo/right/image_rect_color/compressedDepth/parameter_descriptions
/ros_basler_stereo/right/image_rect_color/compressedDepth/parameter_updates
/ros_basler_stereo/right/image_rect_color/theora
/ros_basler_stereo/right/image_rect_color/theora/parameter_descriptions
/ros_basler_stereo/right/image_rect_color/theora/parameter_updates
/ros_basler_stereo/stereo_image_proc/parameter_descriptions
/ros_basler_stereo/stereo_image_proc/parameter_updates
/ros_basler_stereo/stereo_image_proc_debayer_left/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_debayer_left/parameter_updates
/ros_basler_stereo/stereo_image_proc_debayer_right/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_debayer_right/parameter_updates
/ros_basler_stereo/stereo_image_proc_rectify_color_left/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_rectify_color_left/parameter_updates
/ros_basler_stereo/stereo_image_proc_rectify_color_right/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_rectify_color_right/parameter_updates
/ros_basler_stereo/stereo_image_proc_rectify_mono_left/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_rectify_mono_left/parameter_updates
/ros_basler_stereo/stereo_image_proc_rectify_mono_right/parameter_descriptions
/ros_basler_stereo/stereo_image_proc_rectify_mono_right/parameter_updates

Question about the code

Hi,

I'm using your code to generate the depth map from disparity image. It works well but I end up with some bad values.
I would like to know what the meaning of this line ?
mat(i)[2] < 1000

Why 1000 ? Can I change it ?

The results of the depth map is in meter, right ?

Thanks you

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.