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

kinect2_bridge.launch did not publish point cloud #572

Open
lianghongzhuo opened this issue Jun 16, 2021 · 1 comment
Open

kinect2_bridge.launch did not publish point cloud #572

lianghongzhuo opened this issue Jun 16, 2021 · 1 comment

Comments

@lianghongzhuo
Copy link

Please see ros-perception/image_pipeline#668 for detail.
I finally digger out that the issue is related to the launch file here.
the depth to point cloud node should in another launch file and include here. Don't know why, it just works!

@lianghongzhuo
Copy link
Author

lianghongzhuo commented Jun 16, 2021

More details:
In the new launch file, I deleted the machine parameter.
the whole launch file is like this (I only put qhd point, but other point types should be the same):

<launch>
    <arg name="base_name"         default="kinect2"/>
    <arg name="base_name_tf"      default="$(arg base_name)"/>
    <arg name="queue_size"        default="5"/>
    <arg name="nodelet_manager"   default="$(arg base_name)"/>
    <arg name="respawn"           default="true"/>
    <arg name="use_nodelet"       default="true"/>

    <!-- qhd point cloud (960 x 540) -->
    <node pkg="nodelet" type="nodelet" name="$(arg base_name)_points_xyzrgb_qhd" output="screen"
          args="load depth_image_proc/point_cloud_xyzrgb $(arg nodelet_manager)" respawn="$(arg respawn)">
        <remap from="rgb/camera_info"             to="$(arg base_name)/qhd/camera_info"/>
        <remap from="rgb/image_rect_color"        to="$(arg base_name)/qhd/image_color_rect"/>
        <remap from="depth_registered/image_rect" to="$(arg base_name)/qhd/image_depth_rect"/>
        <remap from="depth_registered/points"     to="$(arg base_name)/qhd/points"/>
        <param name="queue_size" type="int" value="$(arg queue_size)"/>
    </node>
</launch>

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

No branches or pull requests

1 participant