ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Creating a map with gmapping using kinect and fake odometry data

asked 2012-09-12 06:36:17 -0500

Flowers gravatar image

updated 2016-10-24 08:34:10 -0500

ngrennan gravatar image

Hi,

the title speaks for itself, what I've done so far is creating this launchfile, which seems to do everything right - at least "rostopic echo /scan" echos something.

<launch>
  <!-- kinect and frame ids -->

  <include file="$(find openni_launch)/launch/openni.launch"/>

  <!-- 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>
</launch>

Furthermore I followed the instructions to create fake odometry data. found here

This also seems to work....so I tried this, but all I get is "Waiting for map".

Please feel free to ask for further information, if needed.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-12 11:23:53 -0500

allenh1 gravatar image

Give this a try. You don't need odometry for it.

edit flag offensive delete link more

Comments

1

Maybe I should have mentioned that: The fake odometry data are just needed for tests - the robot I want to use publishes odometry data. Any ideas why my solution does not work? thx

Flowers gravatar image Flowers  ( 2012-09-13 02:55:29 -0500 )edit

Question Tools

Stats

Asked: 2012-09-12 06:36:17 -0500

Seen: 2,533 times

Last updated: Sep 12 '12