28 CDetectorDoorCrossing::CDetectorDoorCrossing() :
29 COutputLogger(
"CDetectorDoorCrossing"),
34 lastEntropyValid(false)
108 CActionPtr act = acts->get(0);
111 CActionRobotMovement2DPtr action = CActionRobotMovement2DPtr( act );
113 action->poseChange->getMean(pos);
123 sf->insertObservationsInto( &auxMap, &pose3D );
unsigned int windowSize
The window size, in (action,observations) pairs;min.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
mrpt::maps::COccupancyGridMap2D::TEntropyInfo entropy
Entropy of current, and last "map patchs".
bool enoughtInformation
If this is false, all other output fields must not be taken into account since there is not yet enoug...
float resolution
See COccupancyGridMap2D::COccupancyGridMap2D.
A structure used as output in this method.
void addObservations(CSensoryFrame &observations)
Add a set of observations to the sequence; the object is duplicated, so the original one can be free ...
ProxyFilterContainerByClass< mrpt::maps::COccupancyGridMap2DPtr, TListMaps > m_gridMaps
STL-like proxy to access this kind of maps in maps.
A set of TMetricMapInitializer structures, passed to the constructor CMultiMetricMap::CMultiMetricMap...
Represents a probabilistic 2D movement of the robot mobile base.
struct DETECTORS_IMPEXP mrpt::detectors::CDetectorDoorCrossing::TOptions options
double I
The target variable for absolute "information", defining I(x) = 1 - H(x)
This namespace contains representation of robot actions and observations.
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
void process(mrpt::obs::CActionRobotMovement2D &in_poseChange, mrpt::obs::CSensoryFrame &in_sf, TDoorCrossingOutParams &out_estimation)
The main method, where a new action/observation pair is added to the list.
virtual void copyFrom(const CPointsMap &obj) MRPT_OVERRIDE
Virtual assignment operator, to be implemented in derived classes.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
void remove(size_t index)
Delete the action or observation stored in the given index.
#define CLASS_ID(class_name)
Access to runtime class ID for a defined class name.
void push_back(const MAP_DEFINITION &o)
float informationGain
The gain in information produced by the last observation, in "bits".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CSensoryFramePtr getAsObservations(size_t index) const
Returns the i'th element in the sequence, as being an action, where index=0 is the first object...
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
void clear()
Reset the detector, i.e.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
const double & phi() const
Get the phi angle of the 2D pose (in radians)
void clear()
Clear the sequence of actions/observations.
float cumulativeTurning
The cumulative turning of the robot in radians for the movements in the "window". ...
mrpt::obs::CRawlog lastObs
The last observations and consecutive actions are stored here: Indexes (0,1) is the earlier (act...
void addAction(CAction &action)
Add an action to the sequence: a collection of just one element is created.
mrpt::maps::CSimplePointsMap pointsMap
ProxyFilterContainerByClass< mrpt::maps::CSimplePointsMapPtr, TListMaps > m_pointsMaps
STL-like proxy to access this kind of maps in maps.
This class stores any customizable set of metric maps.
size_t size() const
Returns the number of actions / observations object in the sequence.
CActionCollectionPtr getAsAction(size_t index) const
Returns the i'th element in the sequence, as being actions, where index=0 is the first object...
mrpt::maps::COccupancyGridMap2D::TEntropyInfo lastEntropy