SLAMTEC Aurora Public Remote SDK  1.2.0-rtm
rp::standalone::aurora::OccupancyGridMap2DRef Class Reference

The 2D gridmap reference class wraps the 2D gridmap handle. More...

#include <slamtec_remote_public.hxx>

Inheritance diagram for rp::standalone::aurora::OccupancyGridMap2DRef:
rp::standalone::aurora::Noncopyable

Public Member Functions

 OccupancyGridMap2DRef (const slamtec_aurora_sdk_occupancy_grid_2d_handle_t handle, bool ownBuffer)
 
float getResolution () const
 Get the resolution of the 2D gridmap. More...
 
void getMapDimension (slamtec_aurora_sdk_2dmap_dimension_t &dimensionOut) const
 Get the dimension of the 2D gridmap. More...
 
void getMaxMapCapacityDimension (slamtec_aurora_sdk_2dmap_dimension_t &dimensionOut) const
 Get the maximum capacity dimension of the 2D gridmap. More...
 
bool readCellData (const slamtec_aurora_sdk_rect_t &rect, slamtec_aurora_sdk_2d_gridmap_fetch_info_t &fetchInfoOut, std::vector< uint8_t > &dataOut, bool l2pMapping=true) const
 Read the cell data of the 2D gridmap. More...
 
bool readCellData (const slamtec_aurora_sdk_rect_t &rect, slamtec_aurora_sdk_2d_gridmap_fetch_info_t &fetchInfoOut, uint8_t *dataBuffer, size_t dataBufferSize, bool l2pMapping=true) const
 Read the cell data of the 2D gridmap. More...
 
slamtec_aurora_sdk_occupancy_grid_2d_handle_t getHandle () const
 Get the handle of the 2D gridmap. More...
 

Protected Attributes

slamtec_aurora_sdk_occupancy_grid_2d_handle_t _handle
 
bool _ownBuffer
 

Friends

class LIDAR2DMapBuilder
 

Additional Inherited Members

- Protected Member Functions inherited from rp::standalone::aurora::Noncopyable
 Noncopyable (const Noncopyable &)=delete
 
Noncopyableoperator= (const Noncopyable &)=delete
 
 Noncopyable (Noncopyable &&)=default
 
Noncopyableoperator= (Noncopyable &&)=default
 

Detailed Description

The 2D gridmap reference class wraps the 2D gridmap handle.

This class is used to access a 2D gridmap data. 2

Member Function Documentation

◆ getHandle()

slamtec_aurora_sdk_occupancy_grid_2d_handle_t rp::standalone::aurora::OccupancyGridMap2DRef::getHandle ( ) const
inline

Get the handle of the 2D gridmap.

Returns
The handle of the 2D gridmap

◆ getMapDimension()

void rp::standalone::aurora::OccupancyGridMap2DRef::getMapDimension ( slamtec_aurora_sdk_2dmap_dimension_t dimensionOut) const
inline

Get the dimension of the 2D gridmap.

Parameters
[out]dimensionOutThe dimension of the 2D gridmap

◆ getMaxMapCapacityDimension()

void rp::standalone::aurora::OccupancyGridMap2DRef::getMaxMapCapacityDimension ( slamtec_aurora_sdk_2dmap_dimension_t dimensionOut) const
inline

Get the maximum capacity dimension of the 2D gridmap.

Parameters
[out]dimensionOutThe maximum capacity dimension of the 2D gridmap

◆ getResolution()

float rp::standalone::aurora::OccupancyGridMap2DRef::getResolution ( ) const
inline

Get the resolution of the 2D gridmap.

Returns
The resolution of the 2D gridmap

◆ readCellData() [1/2]

bool rp::standalone::aurora::OccupancyGridMap2DRef::readCellData ( const slamtec_aurora_sdk_rect_t rect,
slamtec_aurora_sdk_2d_gridmap_fetch_info_t fetchInfoOut,
std::vector< uint8_t > &  dataOut,
bool  l2pMapping = true 
) const
inline

Read the cell data of the 2D gridmap.

Parameters
[in]rectThe rectangle area to read
[out]fetchInfoOutThe fetch info of the actual area of the cell data
[out]dataOutThe data of the cell
[in]l2pMappingWhether to perform log odd to logic (0-255) mapping to each cell. For visualization purpose, set to true.
Returns
True if the cell data is read successfully, false otherwise

◆ readCellData() [2/2]

bool rp::standalone::aurora::OccupancyGridMap2DRef::readCellData ( const slamtec_aurora_sdk_rect_t rect,
slamtec_aurora_sdk_2d_gridmap_fetch_info_t fetchInfoOut,
uint8_t *  dataBuffer,
size_t  dataBufferSize,
bool  l2pMapping = true 
) const
inline

Read the cell data of the 2D gridmap.

Parameters
[in]rectThe rectangle area to read
[out]fetchInfoOutThe fetch info of the actual area of the cell data
[out]dataBufferThe buffer to store the cell data, set to nullptr to only get the fetch info
[in]dataBufferSizeThe size of the buffer, set to 0 to only get the fetch info
[in]l2pMappingWhether to perform log odd to logic (0-255) mapping to each cell. For visualization purpose, set to true.
Returns
True if the cell data is read successfully, false otherwise

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