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

Orienting AMCL Map/Global_Costmap

asked 2017-06-21 12:28:06 -0500

ElizabethA gravatar image

updated 2017-06-21 17:58:37 -0500

I'm running AMCL navigation on a map I created with the "Autonomous Navigation of a Known Map with Turtlebot" tutorial. As you can see below, when I open RViz with "roslaunch turtlebot_rviz_launchers view_navigation.launch", the robot (the little black dot) is not centered in the middle of the map, and I think it has to do with the map's origin, set in the .yaml file.

image description

image description

I can reconfigure the origin of the .yaml file to fix the robot's position on the RViz visualization of the map (see the correction in the 3rd picture), but the origin of my Global_costmap hasn't been updated, which means the laserscans aren't aligned with the rest of the map.

image description

Any ideas of what I'm doing wrong?

edit retag flag offensive close merge delete

Comments

I realized the global_costmap is somehow getting its Position (x, y) and Orientation set somehow...I just can't figure out what's setting it to my map's original origin and why it's not getting the update when I change the map's origin.

ElizabethA gravatar image ElizabethA  ( 2017-06-21 19:30:46 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-21 19:54:47 -0500

ElizabethA gravatar image

I think you should be able to edit the param\Kinect_costmap_params.yaml file under turtlebot_navigation package, and add origin_x and origin_y values, and then pass that file in when I call AMCL.

Example: Kinect_costmap_params.yaml origin_x: 15.0 origin_y: 6.5

AMCL would be started with this: roslaunch turtlebot_gazebo amcl_demo.launch map_file:=<path to="" map="" yaml=""> custom_param_file:=<path to="" kinect_costmap_params.yaml="">

Unfortunately, that didn't work for me - I'm thinking I just didn't find the correct config file.

* Additionally, there's a known issue that you can't set the ORIENTATION of a costmap, which is what I need: https://github.com/ros-planning/navig...

I think I'm going to recreate a map, but start my map-making in the middle of the "room" this time, so that hopefully, it will consider that (0,0).

edit flag offensive delete link more
1

answered 2017-06-21 23:46:02 -0500

Humpelstilzchen gravatar image

Did you already use the "2D Pose Estimate" button in rviz to call the amcl global_localization service?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-21 12:28:06 -0500

Seen: 894 times

Last updated: Jun 21 '17