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

Obstacle Detection in a Grid Map

asked 2021-06-28 06:56:05 -0500

argahsuknesib gravatar image

updated 2021-06-28 06:56:29 -0500

Hello, let's say we have a robot and the map is already there. The robot knows its position. How can I know and print if there are obstacles or not at each coordinate in a 3by3 or a 5by5 grid with the robot taking the middle position (0,0) in the grid?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-28 12:53:55 -0500

You need to sense the obstacles (for example with a laser scanner) and then mark the cells in your grid as not-walkable.

Take a look at SLAM.

The ROS-packages hector-mapping or gmapping can do this for you.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-06-28 06:56:05 -0500

Seen: 143 times

Last updated: Jun 28 '21