Method ToChannelGrid
| Edit this page View SourceToChannelGrid(OccupancyGrid, string)
Creates a new ChannelGrid from the occupancy data stored in an OccupancyGrid.
Declaration
public static ChannelGrid ToChannelGrid(this OccupancyGrid occupancyGrid, string channelName)
Parameters
| Type | Name | Description |
|---|---|---|
| OccupancyGrid | occupancyGrid | The OccupancyGrid that contains the occupancy data to be transferred to the new ChannelGrid. |
| string | channelName | Name of the channel in the ChannelGrid where the occupancy data will be stored. |
Returns
| Type | Description |
|---|---|
| ChannelGrid | A new ChannelGrid that has been populated with the occupancy data from the specified OccupancyGrid. |
ToChannelGrid(DistanceGrid, string)
Creates a new ChannelGrid from the distance data stored in a DistanceGrid.
Declaration
public static ChannelGrid ToChannelGrid(this DistanceGrid distanceGrid, string channelName)
Parameters
| Type | Name | Description |
|---|---|---|
| DistanceGrid | distanceGrid | The DistanceGrid that contains the distance data to be transferred to the new ChannelGrid. |
| string | channelName | Name of the channel in the ChannelGrid where the distance data will be stored. |
Returns
| Type | Description |
|---|---|
| ChannelGrid | A new ChannelGrid that has been populated with the distance data from the specified DistanceGrid. |