Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
karto::Dataset Class Reference

#include <Karto.h>

Public Member Functions

void Add (Object *pObject, kt_bool overrideSensorName=false)
 
virtual void Clear ()
 
 Dataset ()
 
const DataMapGetData () const
 
DatasetInfoGetDatasetInfo ()
 
const ObjectVectorGetLasers () const
 
void LoadFromFile (const std::string &filename)
 
void RemoveData (LocalizedRangeScan *scan)
 
void SaveToFile (const std::string &filename)
 
virtual ~Dataset ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

DataMap m_Data
 
ObjectVector m_Lasers
 
DatasetInfom_pDatasetInfo
 
std::map< Name, Sensor * > m_SensorNameLookup
 

Friends

class boost::serialization::access
 

Detailed Description

Karto dataset. Stores LaserRangeFinders and LocalizedRangeScans and manages memory of allocated LaserRangeFinders and LocalizedRangeScans

Definition at line 6549 of file Karto.h.

Constructor & Destructor Documentation

◆ Dataset()

karto::Dataset::Dataset ( )
inline

Default constructor

Definition at line 6555 of file Karto.h.

◆ ~Dataset()

virtual karto::Dataset::~Dataset ( )
inlinevirtual

Destructor

Definition at line 6563 of file Karto.h.

Member Function Documentation

◆ Add()

void karto::Dataset::Add ( Object pObject,
kt_bool  overrideSensorName = false 
)
inline

Adds object to this dataset

Parameters
pObject

Definition at line 6597 of file Karto.h.

◆ Clear()

virtual void karto::Dataset::Clear ( )
inlinevirtual

Delete all stored data

Definition at line 6678 of file Karto.h.

◆ GetData()

const DataMap& karto::Dataset::GetData ( ) const
inline

Get data states

Returns
data state

Definition at line 6641 of file Karto.h.

◆ GetDatasetInfo()

DatasetInfo* karto::Dataset::GetDatasetInfo ( )
inline

Get dataset info

Returns
dataset info

Definition at line 6670 of file Karto.h.

◆ GetLasers()

const ObjectVector& karto::Dataset::GetLasers ( ) const
inline

Get sensor states

Returns
sensor state

Definition at line 6632 of file Karto.h.

◆ LoadFromFile()

void karto::Dataset::LoadFromFile ( const std::string &  filename)
inline

Load dataset from file

Parameters
filename

Definition at line 6584 of file Karto.h.

◆ RemoveData()

void karto::Dataset::RemoveData ( LocalizedRangeScan scan)
inline

Remove data

Parameters
indexto remove

Definition at line 6650 of file Karto.h.

◆ SaveToFile()

void karto::Dataset::SaveToFile ( const std::string &  filename)
inline

Save dataset to file

Parameters
filename

Definition at line 6572 of file Karto.h.

◆ serialize()

template<class Archive >
void karto::Dataset::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Definition at line 6723 of file Karto.h.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization: class Dataset

Definition at line 6721 of file Karto.h.

Member Data Documentation

◆ m_Data

DataMap karto::Dataset::m_Data
private

Definition at line 6716 of file Karto.h.

◆ m_Lasers

ObjectVector karto::Dataset::m_Lasers
private

Definition at line 6715 of file Karto.h.

◆ m_pDatasetInfo

DatasetInfo* karto::Dataset::m_pDatasetInfo
private

Definition at line 6717 of file Karto.h.

◆ m_SensorNameLookup

std::map<Name, Sensor*> karto::Dataset::m_SensorNameLookup
private

Definition at line 6714 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56