<meta name="robots" content="noindex" />
How to Use Display Disparity on Pioneer3DX
- Set up:
- 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
- Camera MUST be calibrated
- Download launch files on the bottom.
- In terminal, within the directory of the file, mv disparity_to_dep.launch /opt/ros/indigo/share/rtabmap_ros/launch
- 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:
- On the robot, run the stereo_camera node.
- 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
- On the server/robot, in a new terminal, run ROS_NAMESPACE=camera_crop rosrun stereo_image_proc stereo_image_proc _approximate_sync:=True
- 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
- Optional (disparity to depth -- not tested yet):
- On the server, in a new terminal, cd /opt/ros/indigo/share/rtabmap_ros/launch
- Run roslaunch rtabmap_ros disparity_to_dep.launch
- To view the disparity map alongside the disparity image, use: "rosrun image_view stereo_view stereo:=/camera_crop image:=image_rect"
- To view the disparity map alone, use "rosrun image_view disparity_view image:=/camera_crop/disparity"
- To view the depth_map use: "rosrun image_view image_view image:=/depth_raw" (HAS NOT BEEN TESTED)
- To view pointcloud, use: "rosrun rviz rviz" AND set the Fixed Frame to stereo_camera
- There's more information at the following links:
Permissions
- Persons/group who can view/change the page:
-- (c) Fordham University Robotics and Computer Vision
Topic revision: r14 - 2019-05-03
- LabTech