67 float robot_z = 0,
bool autoCheckAngleRanges =
true);
mrpt::math::TPoint3D sensorOnRobot
void RS_drawFromProposal(mrpt::poses::CPose2D &outSample) override
Generates one sample, drawing from some proposal distribution.
mrpt::math::TPoint2D beaconPosition
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.
std::deque< TDataPerBeacon > m_dataPerBeacon
Data for each beacon observation with a correspondence with the map.
double RS_observationLikelihood(const mrpt::poses::CPose2D &x) override
Returns the NORMALIZED observation likelihood (linear, not exponential!!!) at a given point of the st...
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...
~CRejectionSamplingRangeOnlyLocalization() override=default
Destructor.
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...