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

Problem with navigation stack base_link to map with costmap

asked 2012-10-10 10:55:39 -0500

Ros_student gravatar image

updated 2012-10-10 11:09:32 -0500

Lorenz gravatar image

Hello everybody,

I'm trying to bring up a navigation stack on a custom robot. The Warning I'm getting is the following :

[ WARN] [1349902108.687242123, 83.600000000]: Waiting on transform from /base_footprint to /map to become available before running costmap, tf error: Lookup would require extrapolation into the past.  Requested time 83.500000000 but the earliest data is at time 1349902098.858861163, when looking up transform from frame [/base_footprint] to frame [/map]

My launch file looks like this:

<launch> <node pkg="stage" type="stageros" name="stageros" args="$(find turtlebot_slam)/world/swarmlab_single_turtle.world" respawn="false" output="screen" &gt;="" <param="" name="use_sim_time" value="true"/> </node>

<node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" args="scan:=base_scan"/>

<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="1 0 0 0 0 0 /base_footprint /map 100"/>

<node pkg="rviz" type="rviz" name="rviz" args="-d $(find turtlebot_slam)/view.vcg"/>

<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"> <rosparam file="$(find turtlebot_slam)/config/costmap_common.yaml" command="load" ns="global_costmap"/> <rosparam file="$(find turtlebot_slam)/config/costmap_common.yaml" command="load" ns="local_costmap"/> <rosparam file="$(find turtlebot_slam)/config/local_costmap.yaml" command="load"/> <rosparam file="$(find turtlebot_slam)/config/global_costmap.yaml" command="load"/> <rosparam file="$(find turtlebot_slam)/config/base_planner.yaml" command="load"/> </node>

</launch>

The static transform publisher doesn't solve the problem either ... .

I would be happy about any advice.

Best regards,

Thomas

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-05-03 16:47:47 -0500

jorge gravatar image

Hello Thomas,

The problem is that stage is working with simulation time (starting at 0) but gmapping is working on real time. Adding

<param name="/use_sim_time" value="true"/>

after the <launch> should solve the problem.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-10 10:55:39 -0500

Seen: 1,542 times

Last updated: May 03 '13