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

turtlebot amcl mobile_base/goal problems [closed]

asked 2014-03-10 07:54:01 -0500

david.c.liebman gravatar image

updated 2014-03-11 09:22:04 -0500

It seems that my turtlebot is not working right with amcl. I don't know what it is. Rviz shows my map, and turtlebot, and even what I think is feedback from the laser. (There are colorful clouds of light around what I suspect is the solid objects in the lasers path). I can also use my '/initalpose' publishing node to publish a starting position for the robot. This seems to work. I can watch rviz and see the robot move to a new position (...if I publish to /initialpose repeatedly).

I cannot get any response when I send the robot goal coordinates. I have tried '/move_base_simple/goal' and I have written code that sends coordinates to '/move_base/goal', that code using the Move Base Action Subscribed Topic. For me nothing works. My thoughts are that maybe the robot isn't localizing for the first time when I tell it where it is. Maybe there's a setting in amcl that adjusts the level to which the room map must match the laser scan in order for the initial localisation to take. Could this be? Does anyone have any clues about this??

EDIT: Here's more info. this is my rapp interface file. Maybe I've messed that up.

publishers: 
  - scan
  - /tf
  - tf_changes
  - /tf_changes
  - map
  - amcl_pose
  - move_base/TrajectoryPlannerROS/global_plan
subscribers: 
  - mobile_base/commands/velocity
  - initialpose
  - /initialpose
  - move_base_simple/goal
  - /move_base_simple/goal
  - move_base/goal
  - /move_base/goal
  - /move_base/goal/goal
services: 
  - save_map
  - rename_map
  - delete_map
  - publish_map
  - list_maps

I can also post rapp files and launch files. Looking at the interface file, I don't know when to include a leading '/' slash when identifying topics.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Procópio
close date 2014-11-04 10:01:51.768554

Comments

Can you post the error message from the node?

jihoonl gravatar image jihoonl  ( 2014-03-10 14:00:06 -0500 )edit

there is no error message on the laptop, and there's none on the computer on the robot, at least not a visible one. I looked in the .ros/log/ folder and under the topic 'app_manager-application-amcl' there was nothing. Is there somewhere else I should look?

david.c.liebman gravatar image david.c.liebman  ( 2014-03-11 08:12:39 -0500 )edit

Your problem seems to be same as one I have experienced. In my case, the problem is to forget to write a IP_Address of workstation in /etc/hosts on my turtlebot2 PC. So, I could move my turtlebot2 with Rviz. That means turtlebot2 couldn't receive goal message without IP_Address of workstation.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-04-03 15:45:04 -0500 )edit

can you start app manager with --screen option? it should log out app manager output via terminal.

jihoonl gravatar image jihoonl  ( 2014-04-03 18:53:14 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-04-04 02:53:44 -0500

david.c.liebman gravatar image

After this question I decided to revise my code alot. The new code had problems with amcl too, but I thought it had to do with the launch file, and specifically a remap in the launch file, not the goal position topic. I was right and got it to work to some degree. That was probably the problem here -- not a goal topic problem but a remapping problem. http://answers.ros.org/question/14418... This is a link to the question and answer that solved my problem.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-03-10 07:54:01 -0500

Seen: 690 times

Last updated: Apr 04 '14