9 #ifndef CActionCollection_H 10 #define CActionCollection_H 80 const_iterator
begin()
const {
return m_actions.begin(); }
93 iterator
begin() {
return m_actions.begin(); }
106 const_iterator
end()
const {
return m_actions.end(); }
119 iterator
end() {
return m_actions.end(); }
124 iterator erase(
const iterator &it);
134 CActionPtr
get(
size_t index);
143 template <
typename T>
147 size_t foundCount = 0;
149 for (const_iterator it =
begin();it!=
end();++it)
150 if ( (*it)->GetRuntimeClass()->derivedFrom( class_ID ) )
151 if (foundCount++ == ith)
152 return typename T::SmartPtr(*it);
153 return typename T::SmartPtr();
169 CActionRobotMovement2DPtr getBestMovementEstimation()
const;
189 void eraseByIndex(
const size_t & index);
iterator begin()
Returns a iterator to the first action: this is an example of usage:
EIGEN_STRONG_INLINE iterator end()
The virtual base class which provides a unified interface for all persistent objects in MRPT...
const_iterator end() const
Returns a iterator pointing to the end of the list: this is an example of usage:
EIGEN_STRONG_INLINE iterator begin()
const Scalar * const_iterator
Declares a class for storing a collection of robot actions.
std::deque< CActionPtr > m_actions
The actions:
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
TEstimationMethod
A list of posible ways for estimating the content of a CActionRobotMovement2D object.
std::deque< CActionPtr >::iterator iterator
You can use CActionCollection::begin to get a iterator to the first element.
std::deque< CActionPtr >::const_iterator const_iterator
You can use CActionCollection::begin to get a iterator to the first element.
Declares a class for storing a robot action.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
size_t size(const MATRIXLIKE &m, int dim)
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
T::SmartPtr getActionByClass(const size_t &ith=0) const
Access to the i'th action of a given class, or a NULL smart pointer if there is no action of that cla...
iterator end()
Returns a iterator pointing to the end of the list: this is an example of usage:
Declares a class that represents a Probability Density function (PDF) of a 3D pose ...
A structure that holds runtime class type information.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
const_iterator begin() const
Returns a iterator to the first action: this is an example of usage: