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 6526 of file Karto.h.

Constructor & Destructor Documentation

◆ Dataset()

karto::Dataset::Dataset ( )
inline

Default constructor

Definition at line 6532 of file Karto.h.

◆ ~Dataset()

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

Destructor

Definition at line 6540 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 6574 of file Karto.h.

◆ Clear()

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

Delete all stored data

Definition at line 6655 of file Karto.h.

◆ GetData()

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

Get data states

Returns
data state

Definition at line 6618 of file Karto.h.

◆ GetDatasetInfo()

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

Get dataset info

Returns
dataset info

Definition at line 6647 of file Karto.h.

◆ GetLasers()

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

Get sensor states

Returns
sensor state

Definition at line 6609 of file Karto.h.

◆ LoadFromFile()

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

Load dataset from file

Parameters
filename

Definition at line 6561 of file Karto.h.

◆ RemoveData()

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

Remove data

Parameters
indexto remove

Definition at line 6627 of file Karto.h.

◆ SaveToFile()

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

Save dataset to file

Parameters
filename

Definition at line 6549 of file Karto.h.

◆ serialize()

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

Definition at line 6700 of file Karto.h.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization: class Dataset

Definition at line 6698 of file Karto.h.

Member Data Documentation

◆ m_Data

DataMap karto::Dataset::m_Data
private

Definition at line 6693 of file Karto.h.

◆ m_Lasers

ObjectVector karto::Dataset::m_Lasers
private

Definition at line 6692 of file Karto.h.

◆ m_pDatasetInfo

DatasetInfo* karto::Dataset::m_pDatasetInfo
private

Definition at line 6694 of file Karto.h.

◆ m_SensorNameLookup

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

Definition at line 6691 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Sat Oct 3 2020 03:51:02