Go to the documentation of this file.
34 std::deque<mrpt::containers::deepcopy_poly_ptr<CAction::Ptr>>
m_actions;
46 std::deque<mrpt::containers::deepcopy_poly_ptr<CAction::Ptr>>
::iterator;
130 template <
typename T>
134 size_t foundCount = 0;
136 &T::GetRuntimeClassIdStatic();
138 if ((*it)->GetRuntimeClass()->derivedFrom(class_ID))
139 if (foundCount++ == ith)
140 return std::dynamic_pointer_cast<T>(it->get_ptr());
141 return typename T::Ptr();
Declares a class that represents a Probability Density function (PDF) of a 3D pose .
A structure that holds runtime class type information.
T::Ptr getActionByClass(const size_t &ith=0) const
Access to the i'th action of a given class, or a nullptr smart pointer if there is no action of that ...
bool getFirstMovementEstimation(mrpt::poses::CPose3DPDFGaussian &out_pose_increment) const
Look for the first 2D or 3D "odometry" found in this collection of actions, and return the "mean" inc...
void eraseByIndex(const size_t &index)
Remove an action from the list by its index.
iterator begin()
Returns a iterator to the first action: this is an example of usage:
Declares a class for storing a collection of robot actions.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::shared_ptr< CActionRobotMovement2D > Ptr
std::deque< mrpt::containers::deepcopy_poly_ptr< CAction::Ptr > >::iterator iterator
You can use CActionCollection::begin to get a iterator to the first element.
CActionRobotMovement2D::Ptr getMovementEstimationByType(CActionRobotMovement2D::TEstimationMethod method)
Returns the pose increment estimator in the collection having the specified type.
const_iterator begin() const
Returns a iterator to the first action: this is an example of usage:
CAction::Ptr get(size_t index)
Access the i'th action.DO NOT MODIFY the returned object, make a copy of ir with "CSerializable::dupl...
const_iterator end() const
Returns a iterator pointing to the end of the list: this is an example of usage:
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
std::deque< mrpt::containers::deepcopy_poly_ptr< CAction::Ptr > > m_actions
The robot "actionss".
The virtual base class which provides a unified interface for all persistent objects in MRPT.
CActionCollection()=default
ctor
CActionRobotMovement2D::Ptr getBestMovementEstimation() const
Returns the best pose increment estimator in the collection, based on the determinant of its pose cha...
std::deque< mrpt::containers::deepcopy_poly_ptr< CAction::Ptr > >::const_iterator const_iterator
You can use CActionCollection::begin to get a iterator to the first element.
iterator end()
Returns a iterator pointing to the end of the list: this is an example of usage:
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
bool getFirstMovementEstimationMean(mrpt::poses::CPose3D &out_pose_increment) const
Look for the first 2D or 3D "odometry" found in this collection of actions, and return the "mean" inc...
void insert(CAction &action)
Add a new object to the list.
iterator erase(const iterator &it)
Removes the given action in the list, and return an iterator to the next element (or this->end() if i...
std::shared_ptr< CAction > Ptr
Declares a class for storing a robot action.
void clear()
Erase all actions from the list.
size_t size()
Returns the actions count in the collection.
TEstimationMethod
A list of posible ways for estimating the content of a CActionRobotMovement2D object.
GLubyte GLubyte GLubyte a
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |