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

Revision history [back]

click to hide/show revision 1
initial version

The map is published as a list. First convert that list to a numpy array so it'll be easier for you to play with it.

Create a new numpy zero/ones array of whatever height X width you want and copy the corresponding elements from original map array to it.