9 #ifndef CRejectionSamplingRangeOnlyLocalization_H 10 #define CRejectionSamplingRangeOnlyLocalization_H 69 float robot_z = 0,
bool autoCheckAngleRanges =
true);
mrpt::math::TPoint3D sensorOnRobot
mrpt::math::TPoint2D beaconPosition
void RS_drawFromProposal(mrpt::poses::CPose2D &outSample)
Generates one sample, drawing from some proposal distribution.
Declares a class derived from "CObservation" that represents one (or more) range measurements to labe...
Data for each beacon observation with a correspondence with the map.
float m_z_robot
Z coordinate of the robot.
size_t m_drawIndex
The index in "m_dataPerBeacon" used to draw samples (the rest will be used to evaluate the likelihood...
mrpt::poses::CPose2D m_oldPose
bool setParams(const mrpt::maps::CLandmarksMap &beaconsMap, const mrpt::obs::CObservationBeaconRanges &observation, float sigmaRanges, const mrpt::poses::CPose2D &oldPose, float robot_z=0, bool autoCheckAngleRanges=true)
The parameters used in the generation of random samples:
A class for storing a map of 3D probabilistic landmarks.
double RS_observationLikelihood(const mrpt::poses::CPose2D &x)
Returns the NORMALIZED observation likelihood (linear, not exponential!!!) at a given point of the st...
virtual ~CRejectionSamplingRangeOnlyLocalization()
Destructor.
std::deque< TDataPerBeacon > m_dataPerBeacon
Data for each beacon observation with a correspondence with the map.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CRejectionSamplingRangeOnlyLocalization()
Constructor.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle...
A base class for implementing rejection sampling in a generic state space.
An implementation of rejection sampling for generating 2D robot pose from range-only measurements wit...