ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method ToOccupancyGrid

    | Edit this page View Source

    ToOccupancyGrid(ChannelGrid, string)

    Creates a new OccupancyGrid from the occupancy data stored in a specified channel of a ChannelGrid.

    Declaration
    public static OccupancyGrid ToOccupancyGrid(this ChannelGrid channelGrid, string channelName)
    Parameters
    Type Name Description
    ChannelGrid channelGrid

    The ChannelGrid that contains the occupancy data in one of its channels. This grid will not be modified by this operation.

    string channelName

    The name of the channel in the ChannelGrid that contains the occupancy data to be transferred to the new OccupancyGrid. This channel must exist and contain data of type Occupancy for this operation to succeed.

    Returns
    Type Description
    OccupancyGrid

    A new OccupancyGrid that has been populated with the occupancy data from the specified channel of the ChannelGrid. The metadata of the new OccupancyGrid will be derived from the metadata of the ChannelGrid.