#include <CscSlamEngine.h>
◆ CscSlamEngine()
◆ ~CscSlamEngine()
| conscience_core::lidar::CscSlamEngine::~CscSlamEngine |
( |
| ) |
|
◆ add3dMapVoxelChangesListener()
Adds a listener to be notified on SLAM map changes.
- Parameters
-
| changes | output parameter - will be set to first (hence full) rebuild changes, if not null. Otherwise ignored. It is the start point for future diffs |
- Returns
- listener id which can be latter used to remove listener
◆ clearCartography()
| void conscience_core::lidar::CscSlamEngine::clearCartography |
( |
| ) |
|
◆ consumeLidarValues()
| void conscience_core::lidar::CscSlamEngine::consumeLidarValues |
( |
| ) |
|
◆ forceLocalisationPosition()
| void conscience_core::lidar::CscSlamEngine::forceLocalisationPosition |
( |
double |
xInMeters, |
|
|
double |
zInMeters, |
|
|
double |
headingInRad |
|
) |
| |
◆ get3dMapVoxelsCopy()
◆ getCellStatus()
◆ getEntityPose2dMrpt()
| TPose2D conscience_core::lidar::CscSlamEngine::getEntityPose2dMrpt |
( |
| ) |
const |
◆ getEntityPose3d()
Return 3D pose, in Conscience world ref frame
- Returns
- entity pose in 3D, WARNING : only yaw (Y axis) is filled in rotation fields in 2D
◆ getEntityStartOrientation()
| const CscQuaternion & conscience_core::lidar::CscSlamEngine::getEntityStartOrientation |
( |
| ) |
const |
Orientation when cartography started. It means this that this should be invert applied to the cartography points to convert to world positions.
- Warning
- this rotation already removes "base" rotation on all entities, so this rotation is compared to "still / looking forward" entity. Please see extractNavigationQuaternionFromEntityQuaternion
- See also
- extractNavigationQuaternionFromEntityQuaternion(..)
- Returns
- entity orientation when SLAM cartography started
◆ getEntityStartPosition()
| const CscPoint3d & conscience_core::lidar::CscSlamEngine::getEntityStartPosition |
( |
| ) |
const |
Position when cartography started. It means this is the offset for the cartography points to convert to world positions.
- Returns
- entity position when SLAM cartography started
◆ getLidarScan()
| ptr< CObservation2DRangeScan > conscience_core::lidar::CscSlamEngine::getLidarScan |
( |
| ) |
const |
returns internal mrpt last lidar scan - DO NOT USE except for string optimization purpose
◆ getMapAsWorldPoints()
◆ getSLAMMap()
| ptr< COccupancyGridMap2D > conscience_core::lidar::CscSlamEngine::getSLAMMap |
( |
| ) |
const |
◆ hasLoadedCartography()
| bool conscience_core::lidar::CscSlamEngine::hasLoadedCartography |
( |
| ) |
|
◆ is3dSlamInitialized()
| bool conscience_core::lidar::CscSlamEngine::is3dSlamInitialized |
( |
| ) |
const |
◆ isStarted()
| bool conscience_core::lidar::CscSlamEngine::isStarted |
( |
| ) |
const |
◆ isStartedAndReady()
| bool conscience_core::lidar::CscSlamEngine::isStartedAndReady |
( |
| ) |
const |
◆ loadCartography()
| bool conscience_core::lidar::CscSlamEngine::loadCartography |
( |
const fs::path & |
cartographyDir | ) |
|
◆ loadLatestCartography()
| bool conscience_core::lidar::CscSlamEngine::loadLatestCartography |
( |
| ) |
|
◆ remove3dMapVoxelChangesListener()
| void conscience_core::lidar::CscSlamEngine::remove3dMapVoxelChangesListener |
( |
uint64_t |
listenerId | ) |
|
◆ saveCartography()
| fs::path conscience_core::lidar::CscSlamEngine::saveCartography |
( |
| ) |
|
saves SLAM cartography in a dedicated and optimized format to a new subdirectory of CARTOGRAPHY_STORAGE_DIRECTORY
- Returns
- the path to the directory containing the cartography
◆ saveMrpt2dMapToPng()
| void conscience_core::lidar::CscSlamEngine::saveMrpt2dMapToPng |
( |
const string & |
filename, |
|
|
const MapToImageParams & |
params |
|
) |
| |
◆ start()
| void conscience_core::lidar::CscSlamEngine::start |
( |
CscPoint3dOriented * |
initialPosition = nullptr | ) |
|
◆ stop()
| void conscience_core::lidar::CscSlamEngine::stop |
( |
| ) |
|
◆ transformToWorld3dPosition()
| CscPoint3d * conscience_core::lidar::CscSlamEngine::transformToWorld3dPosition |
( |
const TPoint2D & |
pointSlam2d | ) |
const |
◆ defaultCellOccupiedThreshold
| constexpr double conscience_core::lidar::CscSlamEngine::defaultCellOccupiedThreshold = 0.14 |
|
staticconstexpr |
The documentation for this class was generated from the following files: