MRPT  2.0.1
Macros | Variables
CPTG_DiffDrive_CollisionGridBased.cpp File Reference
#include "nav-precomp.h"
#include <mrpt/nav/tpspace/CPTG_DiffDrive_CollisionGridBased.h>
#include <mrpt/io/CFileGZInputStream.h>
#include <mrpt/io/CFileGZOutputStream.h>
#include <mrpt/kinematics/CVehicleVelCmd_DiffDriven.h>
#include <mrpt/math/geometry.h>
#include <mrpt/serialization/CArchive.h>
#include <mrpt/serialization/stl_serialization.h>
#include <mrpt/system/CTicTac.h>
#include <iostream>
Include dependency graph for CPTG_DiffDrive_CollisionGridBased.cpp:

Go to the source code of this file.

Macros

#define READ_UINT16_CHECK_IT_MATCHES_STORED(_VAR)
 
#define READ_FLOAT_CHECK_IT_MATCHES_STORED(_VAR)
 
#define READ_DOUBLE_CHECK_IT_MATCHES_STORED(_VAR)
 

Variables

const uint32_t COLGRID_FILE_MAGIC = 0xC0C0C0C3
 

Macro Definition Documentation

◆ READ_DOUBLE_CHECK_IT_MATCHES_STORED

#define READ_DOUBLE_CHECK_IT_MATCHES_STORED (   _VAR)
Value:
{ \
double ff; \
*f >> ff; \
if (std::abs(ff - _VAR) > 1e-6) return false; \
}

Referenced by mrpt::nav::CPTG_DiffDrive_CollisionGridBased::CCollisionGrid::loadFromFile().

◆ READ_FLOAT_CHECK_IT_MATCHES_STORED

#define READ_FLOAT_CHECK_IT_MATCHES_STORED (   _VAR)
Value:
{ \
float ff; \
*f >> ff; \
if (std::abs(ff - _VAR) > 1e-4f) return false; \
}

Referenced by mrpt::nav::CPTG_DiffDrive_CollisionGridBased::CCollisionGrid::loadFromFile().

◆ READ_UINT16_CHECK_IT_MATCHES_STORED

#define READ_UINT16_CHECK_IT_MATCHES_STORED (   _VAR)
Value:
{ \
uint16_t ff; \
*f >> ff; \
if (ff != _VAR) return false; \
}

Referenced by mrpt::nav::CPTG_DiffDrive_CollisionGridBased::CCollisionGrid::loadFromFile().

Variable Documentation

◆ COLGRID_FILE_MAGIC

const uint32_t COLGRID_FILE_MAGIC = 0xC0C0C0C3



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020