How to generate map with hector_slam and Kinect
Has anyone successfully got the new hector_slam package to work with the Kinect yet? Below is the launch file I am using so far.
<launch>
<!-- kinect and frame ids -->
<include file="$(find openni_camera)/launch/openni_node.launch"/>
<!-- static tf between openni_camera and map frame -->
<node pkg="tf" type="static_transform_publisher" name="map_link" args="0 0 0 0 0 0 /map /openni_camera 100" />
<!-- openni manager -->
<node pkg="nodelet" type="nodelet" name="openni_manager" output="screen" respawn="true" args="manager"/>
<!-- throttling -->
<node pkg="nodelet" type="nodelet" name="pointcloud_throttle" args="load pointcloud_to_laserscan/CloudThrottle openni_manager">
<param name="max_rate" value="2"/>
<remap from="cloud_in" to="/camera/depth/points"/>
<remap from="cloud_out" to="cloud_throttled"/>
</node>
<!-- fake laser -->
<node pkg="nodelet" type="nodelet" name="kinect_laser" args="load pointcloud_to_laserscan/CloudToScan openni_manager">
<param name="output_frame_id" value="/openni_depth_frame"/>
<remap from="cloud" to="cloud_throttled"/>
</node>
<node pkg="rviz" type="rviz" name="rviz"
args="-d $(find hector_slam_launch)/rviz_cfg/mapping_demo.vcg"/>
<include file="$(find hector_mapping)/launch/mapping_default.launch" />
<include file="$(find hector_geotiff)/launch/geotiff_mapper.launch" />
</launch>
I think I am getting close but here are the errors I get when I run it.
Frame /openni_depth_frame exists with parent /openni_camera. Frame /openni_camera exists with parent /map. Frame /map exists with parent NO_PARENT. Frame /openni_rgb_optical_frame exists with parent /openni_rgb_frame. Frame /openni_rgb_frame exists with parent /openni_camera.
Thanks in advance for any suggestions or help. -Scott