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

turtlebot navigation almost working

asked 2012-06-05 10:24:29 -0600

Rydel gravatar image

Im using the turtlebot_navigation gmapping_demo.launch along with the turtlebot_teleop turtlebot_teleop_key. When running the gmapping_demo the first section of the map that it produces is always 100% correct, however when i start driving the turtlebot around and watching the map being built in Rviz the turtle bot moves a lot farther in real life than it thinks it does in rviz basically making it so the laserscan is looking at an adjacent wall in real life while in rviz the robot has only rotated like 5 degrees causing overlap in the map an making them always look cone shaped. The robot in Rviz also jumps around randomly sometimes.

The fixed frame in Rviz is set to /map and the transform tree all checks out. I've tried calibrating the bot and the values to multiply by were only like 1.004 and when I changed them using the dynamic method it didn't seem to help, if anything made it worse. The calibration process also seemed a little strange, the robot turned 360 degrees twice at a slow speed overshooting by about 20 degrees, it readjusted itself to the wall and then 360'd again at a slightly faster speed again overshooting, the third time it undershot and the last two times it was perfect. I am using the minimal.launch for the turtlebot_bringup. And while dynamically re configuring (gyro_measurement_range) and (odom_angular_scale_correction) the turtlebot terminal only reports the (gyro_measurement_range) and (gyro_scale_correction) as changing. Am I missing something here? Is there a set speed that I should adjust the teleop to? The community has been very helpful so far, thanks.

edit retag flag offensive close merge delete

Comments

2

How far away are all of the walls in your environment from your Turtlebot and do they have any distinguishing features (or are they mostly smooth)?

Eric Perko gravatar image Eric Perko  ( 2012-06-05 13:26:01 -0600 )edit
2

The room I was working in was no bigger than 5 x 10 meters and the walls are full of distinguishing features, namely toolboxes and desks and cabinets

Rydel gravatar image Rydel  ( 2012-06-06 05:04:08 -0600 )edit
2

Sounds like a doable environment for the Kinect and gmapping... Could you post a bagfile from your robot as you drive it around while pretending to map? (Don't run gmapping, but everything else so we can run gmapping offline with different parameters). I'd like to see if your odometry is incorrect.

Eric Perko gravatar image Eric Perko  ( 2012-06-06 06:33:22 -0600 )edit
2

alright, so make a bag file with no mapping just driving around? Here is the bag file, about 1:30 of driving around a small area. http://www.mediafire.com/?h4swu2ws871vvj8

Rydel gravatar image Rydel  ( 2012-06-06 06:51:10 -0600 )edit
2

could I see a bag with just tf, scan, odom, and imu?

allenh1 gravatar image allenh1  ( 2012-06-06 12:36:13 -0600 )edit
1

Ya, we'll need the scan topic as well in order to look into this. I guess I didn't mention that before. Sorry. The rest of your bag looks fine, so just take those settings and add in the /scan topic and we should have the data we need.

Eric Perko gravatar image Eric Perko  ( 2012-06-06 12:53:26 -0600 )edit

I am using a bilibot with turtlebot software because the bilibot hasnt been updated since its creation, which was basically just a copy and paste of an old turtlebot stack. I have addressed the problem but a new one has arose, see below. If you guys still want a bag let me know ill get it tomorrow.

Rydel gravatar image Rydel  ( 2012-06-07 10:48:35 -0600 )edit

http://www.mediafire.com/?hut9qwcc55ezds8 --a bag with tf, scan, odem and imu

Rydel gravatar image Rydel  ( 2012-06-12 09:49:47 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-06-07 10:44:56 -0600

Rydel gravatar image

Alright, I seem to have fixed my original problem, I am using minimal.launch to start the turtlebot so I had to copy the appropriate parameters in turtlebot.launch into minimal.launch. Now I am even closer to building accurate maps, however,now no matter if i turn the robot left or right in real life, in Rviz the robot always turns the same way, it recognizes forwards and backwards but both right turns and left turns are interpreted as the same. Anyone have any thoughts?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-05 10:24:29 -0600

Seen: 1,097 times

Last updated: Jun 07 '12