Ask Your Question

turtlebot2 doesn't work with amcl_demo.launch.

asked 2014-03-13 08:53:13 -0500

Ken_in_JAPAN gravatar image

updated 2014-03-13 09:39:42 -0500

I launched amcl with turtlebot2, but turtlebot2 doesn't move. I have installed ROS hydro on my PC. When I launched amcl on groovy, my turtlebot2 moved correctly. I checked some topic with rostopic echo command.

/navigation_velocity_smoother/raw_cmd_vel and /cmd_vel_mux/input/navi don't respond.

/move_base_simple/goal outputs values.

/mobile_base/commands/velocity outputs values when I touched bumper sensor.

I launched a following command.

  • roslaunch turtlebot_bringup minimal.launch (on turtlebot PC)
  • ssh turtlebot@turtlebot(on workstation)
  • roslaunch turtlebot_navigation amcl_demo.launch map_file:=/tmp/my_map.yaml(on workstation set to point to turtlebot PC)
  • roslaunch turtlebot_rviz_launchers view_navigation.launch(on workstation PC)

It has a warn. [Warn] Waiting on transform from base_footprint to map to become available before running costmap, tf error:

if anybody correctly moves a turtlebot on hydro, I want you to teach me how to move. and I want any clue to solve this problem.

edit retag flag offensive close merge delete


I can move a turtlebot2 with keyboard_teleop and ps3 joystick.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-13 13:09:06 -0500 )edit

If I hit a next message on a terminal in ssh turtlebot@turtlebot, my turtlebot went straight. $rostopic pub -1 /cmd_vel_mux/input/navi geometry_msgs/Twist -- '[0.3, 0.0, 0.0]' '[0.1, 0.0, 0.0]'

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-13 16:22:54 -0500 )edit

As I guessed this problem parameter, I refered the following URL to repair my yaml. After that, a warning said "you must specify at least three points for the robot footprint reverting to previous footprint.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-18 08:15:22 -0500 )edit

This alarm was described on costmap_2d_ros.cpp. So, I added footprint to costmap_common_param.yaml. All warnings and error was gone on the terminal, but my turtlebot2 doesn't work!! I drag a mouse after pushing 2D Nav Goal on Rviz.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-18 08:22:52 -0500 )edit

I hit next command on my workstation with ssh turtlebot@turtlebot. $rostopic pub -1 /move_base_simple/goal geometry_msgs/PoseStamped '{header: {frame_id:"map"}, pose:{position: {x: 0.5, y: 0.0, z: 0.0}, orientation: {x: 0.0, y: 0.0, z: 0.0, w: 1.0}}}' My Turtlebot moved, but my problem not yet.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-18 11:59:22 -0500 )edit

I guessed that this problem was network configuration. if I hit rostopic pub -r10 /hello std_msgs/String "hello" on workstation and rostopic echo /hello on Turtlebot, The message " hello" doesn't begin printed. Does anybody know how to fix it?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-03-18 14:23:51 -0500 )edit

@Ken_in_JAPAN For the next time, better post additional information by editing your initial question instead of multiple comments (hard to read).

bit-pirate gravatar image bit-pirate  ( 2014-03-23 18:20:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-18 16:35:27 -0500

Ken_in_JAPAN gravatar image

updated 2014-03-26 19:12:13 -0500

Many turtlebot user might miss to add IP address of workstation to /etc/hosts on turtlebot PC, because the explanation put 2.3 Configuring /etc/hosts on only. It is important to set it to move a turtlebot. Please check it when you have same problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2014-03-13 08:53:13 -0500

Seen: 1,556 times

Last updated: Mar 26 '14