scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
simple_sensor_simulator::OccupancyGridBuilder Class Reference

grid More...

#include <occupancy_grid_builder.hpp>

Public Member Functions

 OccupancyGridBuilder (double resolution, size_t height, size_t width, int8_t occupied_cost=100, int8_t invisible_cost=50)
 
auto add (const PrimitiveType &primitive) -> void
 Mark invisible area and occupied area of primitive. More...
 
auto reset (const PoseType &origin) -> void
 Reset all internal state. More...
 
auto build () -> void
 Build occupancy grid. More...
 
auto get () const -> const OccupancyGridType &
 

Public Attributes

const double resolution
 
const size_t height
 
const size_t width
 
const int8_t occupied_cost
 
const int8_t invisible_cost
 

Detailed Description

grid

Constructor & Destructor Documentation

◆ OccupancyGridBuilder()

simple_sensor_simulator::OccupancyGridBuilder::OccupancyGridBuilder ( double  resolution,
size_t  height,
size_t  width,
int8_t  occupied_cost = 100,
int8_t  invisible_cost = 50 
)

Member Function Documentation

◆ add()

auto simple_sensor_simulator::OccupancyGridBuilder::add ( const PrimitiveType primitive) -> void

Mark invisible area and occupied area of primitive.

Parameters
primitive

◆ build()

auto simple_sensor_simulator::OccupancyGridBuilder::build ( ) -> void

Build occupancy grid.

◆ get()

auto simple_sensor_simulator::OccupancyGridBuilder::get ( ) const -> const OccupancyGridType &
Returns
Constructed occupancy grid

◆ reset()

auto simple_sensor_simulator::OccupancyGridBuilder::reset ( const PoseType &  origin) -> void

Reset all internal state.

Parameters
origin

Member Data Documentation

◆ height

const size_t simple_sensor_simulator::OccupancyGridBuilder::height

◆ invisible_cost

const int8_t simple_sensor_simulator::OccupancyGridBuilder::invisible_cost

◆ occupied_cost

const int8_t simple_sensor_simulator::OccupancyGridBuilder::occupied_cost

◆ resolution

const double simple_sensor_simulator::OccupancyGridBuilder::resolution

◆ width

const size_t simple_sensor_simulator::OccupancyGridBuilder::width

The documentation for this class was generated from the following files: