ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.