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

Revision history [back]

255 is the unsigned equivalent of -1. The OccupancyGrid message (http://docs.ros.org/indigo/api/nav_msgs/html/msg/OccupancyGrid.html) stores values as signed 8 bit ints - int8, while the Costmap2D object uses the char type internally (equivalent to unsigned 8 bit ints - uint8).