Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish projector/camera_info (fixes disparity img) #48

Merged
merged 2 commits into from
Oct 1, 2017

Conversation

mintar
Copy link
Contributor

@mintar mintar commented May 30, 2017

Both freenect_camera and openni_camera publish the topic /camera/projector/camera_info, but openni2_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:

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

Both `freenect_camera` and `openni_camera` publish the topic
`/camera/projector/camera_info`, but `openni2_camera` didn't. This
commit fixes that.

The topic is required for the disparity image to work (see
ros-drivers/rgbd_launch#6). This commit 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
@130s
Copy link
Member

130s commented Oct 1, 2017

Lgtm and Ci passed. Merging. Thank you for the contribution.

@130s 130s merged commit 0f93870 into ros-drivers:indigo-devel Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants