depthimage_to_laserscan works with rosrun but the DepthImageToLaserScanNodelet does not work properly
Hi,
I have trouble with a nodelet which is responsible for converting depth image to laser scan. I have the required topics namely /camera/depth/camera_info and /camera/depth/image_raw and here is how my launch file looks like:
<launch>
<arg name="camera" value="camera"/>
<arg name="manager" value="$(arg camera)_nodelet_manager" />
<group ns="$(arg camera)">
<node pkg="nodelet" type="nodelet" name="$(arg manager)" respawn="true" args="manager"/>
<node pkg="nodelet" type="nodelet" name="openni2_camera" args="load openni2_camera/OpenNI2DriverNodelet $(arg manager)" respawn="true">
</node>
<node pkg="nodelet" type="nodelet" name="depthimage_to_laserscan_loader" args="load depthimage_to_laserscan/DepthImageToLaserScanNodelet $(arg manager)">
<param name="scan_height" value="10"/>
<param name="output_frame_id" value="/depth_camera_link"/>
<param name="range_min" value="0.3"/>
<remap from="image" to="/depth/image_raw"/>
<remap from="scan" to="/scan"/>
</node>
</group>
</launch>
My problem is that the /scan topic is empty and is not being published. However when I do
rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw
the /scan topic is being published as expected. Do you have any suggestions?
Thanks a lot in advance.