Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes
mrpt::nav::CMultiObjMotionOpt_Scalarization Class Reference

Detailed Description

Implementation of multi-objective motion chooser using scalarization: a user-given formula is used to collapse all the scores into a single scalar score.

The candidate with the highest positive score is selected. Note that assert expressions are honored via the base class CMultiObjectiveMotionOptimizerBase

See Also
CReactiveNavigationSystem, CReactiveNavigationSystem3D

Definition at line 27 of file CMultiObjMotionOpt_Scalarization.h.

#include <mrpt/nav/reactive/CMultiObjMotionOpt_Scalarization.h>

Inheritance diagram for mrpt::nav::CMultiObjMotionOpt_Scalarization:
Inheritance graph

Classes

struct  TParams
 

Public Member Functions

voidoperator new (size_t size)
 
voidoperator new[] (size_t size)
 
void operator delete (void *ptr) throw ()
 
void operator delete[] (void *ptr) throw ()
 
void operator delete (void *memory, void *ptr) throw ()
 
voidoperator new (size_t size, const std::nothrow_t &) throw ()
 
void operator delete (void *ptr, const std::nothrow_t &) throw ()
 
 CMultiObjMotionOpt_Scalarization ()
 
void loadConfigFile (const mrpt::utils::CConfigFileBase &c) MRPT_OVERRIDE
 
void saveConfigFile (mrpt::utils::CConfigFileBase &c) const MRPT_OVERRIDE
 
virtual void clear () MRPT_OVERRIDE
 Resets the object state; use if the parameters change, so they are re-read and applied. More...
 
int decide (const std::vector< mrpt::nav::TCandidateMovementPTG > &movs, TResultInfo &extra_info)
 The main entry point for the class: returns the 0-based index of the best of the N motion candidates in movs. More...
 
mrpt::utils::CObjectPtr duplicateGetSmartPtr () const
 Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer). More...
 
CObjectclone () const
 Cloning interface for smart pointers. More...
 

Static Public Member Functions

static voidoperator new (size_t size, void *ptr)
 
static
CMultiObjectiveMotionOptimizerBase
Create (const std::string &className) MRPT_NO_THROWS
 Class factory from C++ class name. More...
 

Public Attributes

TParams parameters
 

Static Public Attributes

static const
mrpt::utils::TRuntimeClassId 
classCObject
 
RTTI stuff
static const
mrpt::utils::TRuntimeClassId 
classCMultiObjectiveMotionOptimizerBase
 

Protected Member Functions

int impl_decide (const std::vector< mrpt::nav::TCandidateMovementPTG > &movs, TResultInfo &extra_info) MRPT_OVERRIDE
 

Protected Attributes

mrpt::math::CRuntimeCompiledExpression m_expr_scalar_formula
 
std::map< std::string, double > m_expr_scalar_vars
 

RTTI stuff

typedef
CMultiObjMotionOpt_ScalarizationPtr 
Ptr
 
typedef
CMultiObjMotionOpt_ScalarizationPtr 
ConstPtr
 
static mrpt::utils::CLASSINIT _init_CMultiObjMotionOpt_Scalarization
 
static mrpt::utils::TRuntimeClassId classCMultiObjMotionOpt_Scalarization
 
static const
mrpt::utils::TRuntimeClassId
classinfo
 
static const
mrpt::utils::TRuntimeClassId
_GetBaseClass ()
 
virtual const
mrpt::utils::TRuntimeClassId
GetRuntimeClass () const
 Returns information about the class of an object in runtime. More...
 
virtual mrpt::utils::CObjectduplicate () const
 Returns a copy of the object, indepently of its class. More...
 
static mrpt::utils::CObjectCreateObject ()
 
static
CMultiObjMotionOpt_ScalarizationPtr 
Create ()
 

Member Typedef Documentation

typedef CMultiObjMotionOpt_ScalarizationPtr mrpt::nav::CMultiObjMotionOpt_Scalarization::ConstPtr

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

typedef CMultiObjMotionOpt_ScalarizationPtr mrpt::nav::CMultiObjMotionOpt_Scalarization::Ptr

A typedef for the associated smart pointer

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

Constructor & Destructor Documentation

CMultiObjMotionOpt_Scalarization::CMultiObjMotionOpt_Scalarization ( )

Definition at line 19 of file CMultiObjMotionOpt_Scalarization.cpp.

Member Function Documentation

static const mrpt::utils::TRuntimeClassId* mrpt::nav::CMultiObjMotionOpt_Scalarization::_GetBaseClass ( )
staticprotected
void CMultiObjMotionOpt_Scalarization::clear ( )
virtual

Resets the object state; use if the parameters change, so they are re-read and applied.

Reimplemented from mrpt::nav::CMultiObjectiveMotionOptimizerBase.

Definition at line 24 of file CMultiObjMotionOpt_Scalarization.cpp.

References mrpt::nav::CMultiObjectiveMotionOptimizerBase::clear().

CObject* mrpt::utils::CObject::clone ( ) const
inlineinherited

Cloning interface for smart pointers.

Definition at line 143 of file CObject.h.

static CMultiObjMotionOpt_ScalarizationPtr mrpt::nav::CMultiObjMotionOpt_Scalarization::Create ( )
static
CMultiObjectiveMotionOptimizerBase * CMultiObjectiveMotionOptimizerBase::Create ( const std::string className)
staticinherited
static mrpt::utils::CObject* mrpt::nav::CMultiObjMotionOpt_Scalarization::CreateObject ( )
static
int CMultiObjectiveMotionOptimizerBase::decide ( const std::vector< mrpt::nav::TCandidateMovementPTG > &  movs,
TResultInfo extra_info 
)
inherited

The main entry point for the class: returns the 0-based index of the best of the N motion candidates in movs.

If no valid one is found, -1 will be returned.

Definition at line 25 of file CMultiObjectiveMotionOptimizerBase.cpp.

References mrpt::mrpt::format(), mrpt::mrpt::utils::keep_max(), mrpt::nav::CMultiObjectiveMotionOptimizerBase::TResultInfo::log_entries, mrpt::nav::CMultiObjectiveMotionOptimizerBase::TResultInfo::score_values, and THROW_EXCEPTION_FMT.

virtual mrpt::utils::CObject* mrpt::nav::CMultiObjMotionOpt_Scalarization::duplicate ( ) const
virtual

Returns a copy of the object, indepently of its class.

Implements mrpt::utils::CObject.

mrpt::utils::CObjectPtr mrpt::utils::CObject::duplicateGetSmartPtr ( ) const
inlineinherited

Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer).

Definition at line 140 of file CObject.h.

Referenced by mrpt::obs::CRawlog::addActions(), mrpt::slam::CIncrementalMapPartitioner::addMapFrame(), and mrpt::obs::CRawlog::addObservations().

virtual const mrpt::utils::TRuntimeClassId* mrpt::nav::CMultiObjMotionOpt_Scalarization::GetRuntimeClass ( ) const
virtual

Returns information about the class of an object in runtime.

Reimplemented from mrpt::nav::CMultiObjectiveMotionOptimizerBase.

int CMultiObjMotionOpt_Scalarization::impl_decide ( const std::vector< mrpt::nav::TCandidateMovementPTG > &  movs,
TResultInfo extra_info 
)
protectedvirtual
void CMultiObjMotionOpt_Scalarization::loadConfigFile ( const mrpt::utils::CConfigFileBase c)
virtual
void mrpt::nav::CMultiObjMotionOpt_Scalarization::operator delete ( void ptr)
throw (
)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void mrpt::nav::CMultiObjMotionOpt_Scalarization::operator delete ( void memory,
void ptr 
)
throw (
)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void mrpt::nav::CMultiObjMotionOpt_Scalarization::operator delete ( void ptr,
const std::nothrow_t &   
)
throw (
)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void mrpt::nav::CMultiObjMotionOpt_Scalarization::operator delete[] ( void ptr)
throw (
)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

static void* mrpt::nav::CMultiObjMotionOpt_Scalarization::operator new ( size_t  size,
void ptr 
)
inlinestatic

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void* mrpt::nav::CMultiObjMotionOpt_Scalarization::operator new ( size_t  size)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void* mrpt::nav::CMultiObjMotionOpt_Scalarization::operator new ( size_t  size,
const std::nothrow_t &   
)
throw (
)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void* mrpt::nav::CMultiObjMotionOpt_Scalarization::operator new[] ( size_t  size)
inline

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

void CMultiObjMotionOpt_Scalarization::saveConfigFile ( mrpt::utils::CConfigFileBase c) const
virtual

Member Data Documentation

mrpt::utils::CLASSINIT mrpt::nav::CMultiObjMotionOpt_Scalarization::_init_CMultiObjMotionOpt_Scalarization
staticprotected

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

const mrpt::utils::TRuntimeClassId mrpt::nav::CMultiObjectiveMotionOptimizerBase::classCMultiObjectiveMotionOptimizerBase
staticinherited

Definition at line 32 of file CMultiObjectiveMotionOptimizerBase.h.

mrpt::utils::TRuntimeClassId mrpt::nav::CMultiObjMotionOpt_Scalarization::classCMultiObjMotionOpt_Scalarization
static

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

const mrpt::utils::TRuntimeClassId mrpt::utils::CObject::classCObject
staticinherited

Definition at line 128 of file CObject.h.

const mrpt::utils::TRuntimeClassId* mrpt::nav::CMultiObjMotionOpt_Scalarization::classinfo
static

Definition at line 30 of file CMultiObjMotionOpt_Scalarization.h.

mrpt::math::CRuntimeCompiledExpression mrpt::nav::CMultiObjMotionOpt_Scalarization::m_expr_scalar_formula
protected

Definition at line 52 of file CMultiObjMotionOpt_Scalarization.h.

std::map<std::string, double> mrpt::nav::CMultiObjMotionOpt_Scalarization::m_expr_scalar_vars
protected

Definition at line 53 of file CMultiObjMotionOpt_Scalarization.h.

TParams mrpt::nav::CMultiObjMotionOpt_Scalarization::parameters

Definition at line 47 of file CMultiObjMotionOpt_Scalarization.h.




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018