create new tag
view all tags
<meta name="robots" content="noindex" />

How to Use Display Disparity on Pioneer3DX

  • Set up:
    1. Required packages:
      • sudo apt-get install ros-indigo-rtabmap-ros
      • sudo apt-get install ros-indigo-stereo-image-proc
      • sudo apt-get install ros-indigo-image-pipeline
    2. Camera MUST be calibrated
    3. Download launch files on the bottom.
    4. In terminal, within the directory of the file, mv disparity_to_dep.launch /opt/ros/indigo/share/rtabmap_ros/launch
    5. In terminal, within the directory of the file, mv raw_decimate.launch /opt/ros/indigo/share/image_proc/launch && mv resize.launch /opt/ros/indigo/share/image_proc/launch
  • Execution:
    1. On the robot, run the stereo_camera node.
    2. In the new terminal, roscd image_proc && cd launch && roslaunch raw_decimate.launch
      • (worse image) for 10 FPS on the robot and 5 FPS on the server, set decimation_x and decimation_y to value="4" for both left_decimator and right_decimator
      • (better image) for 3.5 FPS on the robot and 2.6 FPS on the server, set decimation_x and decimation_y to value="2" for both left_decimator and right_decimator
    3. On the server/robot, in a new terminal, run ROS_NAMESPACE=camera_crop rosrun stereo_image_proc stereo_image_proc _approximate_sync:=True
    4. If run for the first time on the machine/laptop, adjust the parameters for the disparity map generation (real time): "rosrun rqt_reconfigure rqt_reconfigure"
      • OR add Disparity.cfg (see in bottom) to catkin_ws/src/image_pipeline/stereo_image_proc/cfg
      • ELSE please adjust according to the image of the parameters on the bottom
    5. Optional (disparity to depth -- not tested yet):
      1. On the server, in a new terminal, cd /opt/ros/indigo/share/rtabmap_ros/launch
      2. Run roslaunch rtabmap_ros disparity_to_dep.launch

  1. To view the disparity map alongside the disparity image, use: "rosrun image_view stereo_view stereo:=/camera_crop image:=image_rect"
  2. To view the disparity map alone, use "rosrun image_view disparity_view image:=/camera_crop/disparity"
  3. To view the depth_map use: "rosrun image_view image_view image:=/depth_raw" (HAS NOT BEEN TESTED)
  4. To view pointcloud, use: "rosrun rviz rviz" AND set the Fixed Frame to stereo_camera
Screenshot_from_2019-04-08_112756.png Screenshot_from_2019-04-08_112631.png Screenshot_from_2019-04-08_112502.png


  • Persons/group who can view/change the page:

-- (c) Fordham University Robotics and Computer Vision

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg Disparity.cfg r1 manage 2.5 K 2019-04-08 - 14:22 LabTech rqt disparity configuration
PNGpng Screenshot_from_2019-04-04_133312.png r1 manage 124.0 K 2019-04-04 - 17:34 LabTech Configuration for rqt_reconfigure
Unknown file formatlaunch disparity_to_dep.launch r1 manage 0.3 K 2019-03-12 - 14:29 LabTech disparity to depth launch file
Unknown file formatlaunch raw_decimate.launch r1 manage 1.5 K 2019-05-02 - 17:30 LabTech decimate launch file
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2019-05-03 - LabTech
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback