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