ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
1

How to use the occupancy grid in the global planner?

asked 2016-09-30 10:31:03 -0600

Earthgrazer gravatar image

Hey everybody,

I am trying to create a path planner, that plans reliable paths in SLAM maps. Therefore I don't want to use the costmap, which doesn't work with probabilities anymore but the occupancy grid. But I don't know how to access it in my global planner... Can anybody help me?

Cheers, Earthgrazer

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-01 12:15:10 -0600

spmaniato gravatar image

The simplest way would be to subscribe to the map topic (assuming that's where the SLAM node is publishing to) This would give you access to the nav_msgs/OccupancyGrid messages corresponding to the latest map. You'll probably also need to subscribe to the map_metadata topic as well, which will contain the nav_msgs/MapMetaData messages.

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

1 follower

Stats

Asked: 2016-09-30 10:31:03 -0600

Seen: 495 times

Last updated: Oct 01 '16