Local GridMap#

a rectangular area

a circular are

no footprint

Type:

str

Type:

int

A state estimation that integrates scans and optional odometry in a local grid map.

Uses one of the simplest mapping algorithms, following the implementation of the obstacle layer in nav2 local costmap, see ros-navigation/navigation2 d/include/nav2_costmap_2d/obstacle_layer.hpp.

  1. recenter the map at the agent, setting new cells to 128 (= unknown)

  2. set the footprint of the agent to 255 (= free)

  3. using raycasting, for each lidar ranging measurement, sets the internal cells of the ray to 255 (= free), and the vertex of the ray (if contained in the map) to 0 (= occupied)

Registered properties:

Constructs a new instance.

Parameters:
  • lidars – The lidars sensor

  • external_lidars – The name of lidars sensor

  • odometry – The odometry sensor

  • external_odometry – The name of odometry sensor

  • width – The map width in pixels

  • height – The map height in pixels

  • resolution – The size of a cell in meters

  • include_transformation – Whether to include the transformation between map and world frames.

  • footprint – Which type of footprint to use.

  • name – The name to use as a prefix

Reads a grid map from a SensingState

Calls read_gridmap_with_name, passing name.

Parameters:

state – The state

Returns:

A grid map or null if none was found.

Reads a grid map from a SensingState

Parameters:
  • state – The state

  • name – The namespace of the map

Returns:

A grid map or null if none was found.

Reads a transformation from a SensingState

Calls read_transform_with_name, passing name.

Parameters:

state – The state

Returns:

A pose or null if none was found.

Reads a transformation from a SensingState

Parameters:
  • state – The state

  • name – The namespace of the transformation

Returns:

A pose or null if none was found.

Type:

list[str]

The names of the (external) lidars

Type:

str

The names of the (external) odometry

Type:

navground.sim.LocalGridMapStateEstimation.FootprintType

The footprint type

Type:

int

The height of the gridmap in cells.

Type:

bool

Whether to include the transformation between map and world frames.

Type:

list[navground.sim.LidarStateEstimation]

The (external) lidars

Type:

navground.sim.OdometryStateEstimation

The (external) odometry

Type:

float

The size of a cell.

Type:

int

The width of the gridmap in cells.