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

Navigation Doesn't work

asked 2017-07-09 14:36:43 -0600

rozoalex gravatar image

updated 2017-07-10 02:47:14 -0600

I am trying to follow a simple tutorial of building 2d map, but encountered some problems.

In RVIZ, the indicator of my robot seems flying around and the navigation target doesn't work. The robot just wouldn't move.

image description image description

I am using the gazebo simulator of turtlebot.

Step by Step commands:

roslaunch turtlebot_gazebo turtlebot_world.launch

roslaunch turtlebot_teleop keyboard_teleop.launch

roslaunch turtlebot_rviz_launchers view_navigation.launch

roslaunch turtlebot_gazebo gmapping_demo.launch

roslaunch turtlebot_gazebo amcl_demo.launch

The demo I am following: https://youtu.be/B0s6dSxF95c

edit retag flag offensive close merge delete

Comments

Based solely on the filenames, I am assuming that you are running both amcl and gmapping. Gmapping should be sufficient for map generation, and then you should use amcl on the generated map. There is no real use of amcl and gmapping running at the same time.

gstavrinos gravatar image gstavrinos  ( 2017-07-10 02:46:42 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2017-07-10 07:40:41 -0600

Alberto E. gravatar image

Assuming that there aren't any error messages in the output of the commands you executed, one possible problem is trying to run at the same time the keyboard teleop with the move base node (which is launched in the amcl_demo.launch file). If you want to send goals to the robot using the 2D Nav Goal tool of RViz, you should stop the keyboard teleop node. Otherwise, it may conflict with the move base node when it tries to send velocity commands to the robot, which results in the robot not moving at all.

Also, I highly recommend you to have a look at this video, which shows how to easily reproduce the same steps you are trying to do. It will help you to better understand the whole process.

edit flag offensive delete link more

Comments

Although I believe that you're correct in that the problems is with running both the teleop and amcl nodes, why not post the steps here instead of linking to a youtube video? It would make this answer much more valuable.

jayess gravatar image jayess  ( 2017-07-24 18:04:15 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-07-09 14:36:43 -0600

Seen: 1,182 times

Last updated: Jul 10 '17