ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi,
For this you need to use PointCloud to LaserScan package. It comes with turtlebot stack. You need to create a launch file say kinect_laser.launch with below nodes:
<launch> <include file="$(find openni_launch)/launch/openni.launch"/>
<node pkg="nodelet" type="nodelet" name="openni_manager" output="screen" respawn="true" args="manager"/>
<node pkg="nodelet" type="nodelet" name="pointcloud_throttle" args="load pointcloud_to_laserscan/CloudThrottle openni_manager"> <remap from="cloud_in" to="/camera/depth/points"/> <remap from="cloud_out" to="cloud_throttled"/> </node>
<node pkg="nodelet" type="nodelet" name="kinect_laser" args="load pointcloud_to_laserscan/CloudToScan openni_manager"> <remap from="cloud" to="cloud_throttled"/> </node> </launch>
This will publish /scan topic without the need for gmapping. And then you can use this launch file in your slam.launch.
Hope this helps !!
P.S. Please make sure the name of openni launch file.. In my case it's present as mentioned in the above location.
2 | correct display of source code |
Hi,
For this you need to use PointCloud to LaserScan package. It comes with turtlebot stack. You need to create a launch file say kinect_laser.launch with below nodes:
<launch>
This will publish /scan topic without the need for gmapping. And then you can use this launch file in your slam.launch.
Hope this helps !!
P.S. Please make sure the name of openni launch file.. In my case it's present as mentioned in the above location.