40 , m_SensorIdentifier(rSensorIdentifier)
46 SensorData::~SensorData()
83 LaserRangeScan::~LaserRangeScan()
93 , m_IsGpsReadingValid(false)
94 , m_IsGpsEstimateValid(false)
95 , m_pGpsEstimationManager(NULL)
99 LocalizedObject::~LocalizedObject()
136 rangePointsSum += *iter;
160 if (wantFiltered ==
true)
180 LocalizedRangeScan::~LocalizedRangeScan()
187 if (pLaserRangeFinder == NULL)
207 for (
kt_int32u i = 0; i < numberOfReadings; i++)
210 kt_double rangeReading = rRangeReadings[i];
213 point.
SetX(scanPose.
GetX() + (rangeReading * cos(angle)));
214 point.
SetY(scanPose.
GetY() + (rangeReading * sin(angle)));
217 if (
math::InRange(rangeReading, minimumRange, rangeThreshold))
234 Pose2 originPose(origin, 0);
242 LocalizedPointScan::~LocalizedPointScan()
249 if (pLaserRangeFinder == NULL)
BoundingBox2 m_BoundingBox
virtual kt_size_t Size() const
kt_double Distance(const Vector2 &rOther) const
kt_int32u GetNumberOfRangeReadings() const
kt_double GetHeading() const
SensorDataPrivate * m_pSensorDataPrivate
Vector2dList m_LocalPointReadings
void AddCustomItem(CustomItem *pCustomItem)
const CustomItemList & GetCustomItems() const
LocalizedRangeScan(const Identifier &rSensorIdentifier, const RangeReadingsList &rReadings)
RangeReadingsList m_RangeReadings
virtual const Vector2dList & GetFilteredPointReadings() const
kt_double GetAngularResolution() const
kt_double AngleTo(const Vector2d &rVector) const
virtual void Add(const T &rValue)
LocalizedLaserScan(const Identifier &rSensorIdentifier)
Identifier m_SensorIdentifier
Pose2 GetSensorPose() const
const RangeReadingsList & GetRangeReadings() const
LocalizedObject(const Identifier &rSensorIdentifier)
virtual void ComputePointReadings()
TFSIMD_FORCE_INLINE tfScalar angle(const Quaternion &q1, const Quaternion &q2)
virtual void ComputePointReadings()=0
RangeReadingsList m_RangeReadings
Vector2dList m_UnfilteredPointReadings
CustomItemList m_CustomItems
LocalizedPointScan(const Identifier &rSensorIdentifier, const Vector2dList &rLocalPoints)
virtual ~LocalizedLaserScan()
const Vector2d & GetPosition() const
kt_double GetMinimumAngle() const
karto::Pose2 TransformPose(const karto::Pose2 &rSourcePose)
Vector2< kt_double > Vector2d
LaserRangeScan(const Identifier &rSensorIdentifier)
Vector2dList m_FilteredPointReadings
kt_bool InRange(const T &value, const T &a, const T &b)
virtual void ComputePointReadings()
kt_double GetMinimumRange() const
SensorData(const Identifier &rSensorIdentifier)
virtual const Vector2dList & GetUnfilteredPointReadings() const
kt_double GetRangeThreshold() const
void Add(const Vector2d &rPoint)
#define karto_const_forEach(listtype, list)
LaserRangeFinder * GetLaserRangeFinder() const
const Vector2dList & GetPointReadings(kt_bool wantFiltered=false) const