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

Creating my own probability map based on the occupancyGrid map?

asked 2012-02-28 08:16:45 -0500

karthik gravatar image

updated 2012-03-01 18:04:24 -0500

Hi, I would like to navigate the turtlebot in a map that i have creating using gmapping. But i would like to set the goal positions based on my own logical probability map which gives me the next goal the robot has to move to. Could someone throw some light on how to create my own map, which would be corresponding to the occupancygrid map that came out of gmapping.

I didn't find any tutorials on costmap_2d so is there anything that i am missing. Any ideas and suggestions are appreciated.

Thanks, Karthik

Atleast if i know how to access the available OccupancyGrid map in ros, I could generate my own Matrix using OpenCV's Mat structure and define my goals. Let me know if this is a good procedure.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-03-02 03:35:25 -0500

David Lu gravatar image

Changing the costmap will only change the path the robot takes to get to the goal. You should be able to track the probability map on your own and send the selected goal to move_base independent of costmap_2d.

edit flag offensive delete link more

Comments

Thanks David, it may b a silly questions but could you tell me how to know the number of rows n columns of the available OccupancyGrid map once the map is built. So that i can create a matrix of same dimensions to assign my prob values.

karthik gravatar image karthik  ( 2012-03-02 03:37:39 -0500 )edit

In a global costmap, it is the same as your map.

David Lu gravatar image David Lu  ( 2012-03-02 04:03:40 -0500 )edit

Question Tools

Stats

Asked: 2012-02-28 08:16:45 -0500

Seen: 945 times

Last updated: Mar 02 '12