0
$\begingroup$

Rosanswers logo

I'm trying to use gmapping with a pioneer-3dx and a lms111 with gmapping, but am having issues. When trying to run rosrun gmapping slam_gmapping, I get the warning "MessageFilter [target=odom ]: Dropped 100.00% of messages so far." My current transform map is map->odom->base_link. I've read online that I needed a base_link -> scan, where scan is my laser scan. I've tried adding that, using rosrun tf static_transform_publisher 0 0 0 0 0 0 base_link scan 100, but I still get the error. I'm not sure what I'm missing, or how to add the required transforms. I used rosrun tf view_frames to view the tf tree map. map-> odom is published by /slam_gmapping, while odom->base_link is published by RosAria.

My laser scan is publishing to /scan, so is that where I would want to direct the transform? as in base_link -> /scan, or is there something else I'm missing?

Also, in the required tf transforms portion of the gmapping wiki, it says we need base_link -> odom, but in my tf tree RosAria broadcasts odom-> base_link. Is that a potential cause for error? The one provided by gmapping is map->odom, which is the same direction as on their wiki. Any help would be appreciated. Thanks!


Originally posted by btacju on ROS Answers with karma: 1 on 2015-08-18

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

There are a couple of possibilities here:

  1. Something is wrong with your tf tree, and it is not possible to transform laser data into the base frame.
  2. Your laser data is being published with the wrong frame in the header.
  3. Your laser data is being published with the wrong timestamp in the header.

Assuming that you laser is printing the data on the /scan topic. If you do a rostopic echo on scan you should be able to see the frame_id for your laser.

rostopic echo -n 1 /scan/header/frame_id

This will give you the name of the laser frame_id. I suspect this is not scan but laser instead. Therefore, instead of having a static_transform_publisher from base_link->scan, can you do base_link->laser.

Can you paste your tf tree here? You can use: rosrun tf view_frames

Also, please check that your odom node is really working.


Originally posted by staljbs with karma: 116 on 2015-08-19

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by btacju on 2015-08-19:
Thank you, I will try that. How would I check if my odom node is working?

Comment by staljbs on 2015-08-19:
How are you publishing the odometry data on the /odom topic? Do a rostopic echo on the odom topic to see if you are getting any odometry data.

Comment by btacju on 2015-08-20:
I don't get anything on the odom topic. Doesn't RosAria publish it's odometry data to RosAria/pose?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.