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

Problem with Gmapping

asked 2012-08-28 23:53:08 -0600

camilla gravatar image

updated 2012-08-28 23:57:29 -0600

I'm trying to use gmapping to create a map of my lab.
I'm using a NXT withLejos firmware, I checked that all the topic /tf, /odom and /scan are working well, but I get this error:

[ WARN] [1346231329.853649941]: MessageFilter [target=/odom ]: Dropped 100.00% of messages so far. Please turn the [ros.gmapping.message_notifier] rosconsole logger to DEBUG for more information.

The command I used to launch gmapping is:

rosrun gmapping slam_gmapping scan:=scan (/scan is the topic on which are published the message of type sensor_msgs::LaserScan)

edit retag flag offensive close merge delete

Comments

Do this: Please turn the [ros.gmapping.message_notifier] rosconsole logger to DEBUG for more information.

dornhege gravatar image dornhege  ( 2012-08-29 00:57:32 -0600 )edit

The problem was that I called my frame /world and not /odom, now that i adopted the ROS Naming Convenction the warning message doesn't appear anymore

camilla gravatar image camilla  ( 2012-08-29 04:38:24 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-08-29 00:54:43 -0600

Lorenz gravatar image

If you are sure that the odom and the scan topic are published correctly and gmapping connects to them (verify with rosnode info gmapping), this probably happens because of bad time stamps.

gmapping requires to have correct time stamps in the odometry message and the laser scan as well as in the tf transforms between the robot's base frame and your laser. If you are using several machines, make sure that their clocks are synchronized.

For more information on what exactly is the problem, start up rxconsole and enable debug for ros.gmapping.message_notifier as the warning message states.

edit flag offensive delete link more

Comments

2

Maybe one remark: AFAIK gmapping does not use odometry from the odom topic, but uses the /odom frame from tf.

dornhege gravatar image dornhege  ( 2012-08-29 01:15:22 -0600 )edit

True. It only uses tf.

Lorenz gravatar image Lorenz  ( 2012-08-29 01:17:00 -0600 )edit

Question Tools

Stats

Asked: 2012-08-28 23:53:08 -0600

Seen: 3,409 times

Last updated: Aug 29 '12