Contenuto principale

writeOccupancyGrid

(To be removed) Write values from grid to ROS message

writeOccupancyGrid will be removed in a future release. Use rosWriteOccupancyGrid instead. For more information, see ROS Message Structure Functions.

Description

writeOccupancyGrid(msg,map) writes occupancy values and other information to the ROS message, msg, from the occupancy grid, map.

Input Arguments

collapse all

'nav_msgs/OccupancyGrid' ROS message, specified as an OccupancyGrid ROS message object handle.

Occupancy map, specified as an occupancyMap (Navigation Toolbox) object handle.

Version History

Introduced in R2016b

collapse all