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

MobileSim and gmapping

asked 2012-08-26 23:39:56 -0500

Julio gravatar image

updated 2014-01-28 17:13:28 -0500

ngrennan gravatar image

I'm working with MoblieSim and I have tow nodes: teleop_node and movement_node. The first one is running in my laptop and the second one in the p3dx.

I get the laser buffer readings and I build LaserScanner messages. I publish them in /base_scan in order to send them to the gmapping node (which must be running in another console, is it right?).

I guess gmapping also needs odometry. How can I know it? Is it just the cmd_vel used to teleoperate the robot?

Thanks beforehand

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-27 23:54:26 -0500

dornhege gravatar image

First, you might want to check if gmapping expects scans on /base_scan. I think it might be /scan, then you'll need to remap that.

Second: No, cmd_vel is not odometry. Odometry is the robot's pose in the odom frame. It is usually send via tf for gmapping.

edit flag offensive delete link more

Comments

Thank you for your answer.

First: you are right, it's the /scan topic. Thanks ;-)

Second: how can I get the robot's pose from mobilesim? If not, how to run the movement node in the stage simulator given by ros (and get the odometry and publish it to gmapping)?

Thanks again

Julio gravatar image Julio  ( 2012-08-27 23:58:24 -0500 )edit

Question Tools

Stats

Asked: 2012-08-26 23:39:56 -0500

Seen: 721 times

Last updated: Aug 27 '12