Closed mintar closed 7 years ago
Both freenect_camera and openni_camera publish the topic /camera/projector/camera_info, but openni2_camera didn't. This commit fixes that.
freenect_camera
openni_camera
/camera/projector/camera_info
openni2_camera
The topic is required for the disparity image to work (see ros-drivers/rgbd_launch#6). This PR is a port from the original openni_camera driver.
How to test:
roslaunch openni2_launch openni2.launch disparity_processing:=true rosrun image_view disparity_view image:=/camera/depth/disparity
or:
roslaunch openni2_launch openni2.launch depth_registration:=true disparity_registered_processing:=true rosrun image_view disparity_view image:=/camera/depth_registered/disparity
Lgtm and Ci passed. Merging. Thank you for the contribution.
Both
freenect_camera
andopenni_camera
publish the topic/camera/projector/camera_info
, butopenni2_camera
didn't. This commit fixes that.The topic is required for the disparity image to work (see ros-drivers/rgbd_launch#6). This PR is a port from the original openni_camera driver.
How to test:
or: