Go to the documentation of this file.
13 #include "../BasicDatatypes.hpp"
155 void setPolar (
double dist,
double hAngle,
double vAngle);
161 void addPolarOffset (
double distOffset,
double hAngleOffset,
double vAngleOffset);
261 std::ostream&
operator<<(std::ostream& os,
const ScanPoint& point);
264 bool operator==(
const ScanPoint &p1,
const ScanPoint &p2);
267 bool operator!=(
const ScanPoint &p1,
const ScanPoint &p2);
271 #endif // SCANPOINT_HPP
void setBackground(bool isBackground=true)
Labels the scan point as invalid because it is in the background area.
void setFlags(UINT16 flags)
Sets the scan point flags directly.
@ FlagTransparent
There is at least one more echo behind this scan point (B or C echo)
static double getDistanceBetweenScanpoints(const ScanPoint &pt1, const ScanPoint &pt2)
void updateCartesian()
Compute Cartesian coordinates from the current polar coordinates.
UINT8 getSourceId() const
void setValid()
Removes all scan status information.
@ MaskCovered
All coverage flags.
@ MaskInvalid
All flags of invalid scan points.
void setLeftCovered(bool isLeftCovered=true)
Labels the scan point: Left neighbour point may be covered.
std::string toString() const
Point3D toPoint3D() const
Returns the x,y,z coordinates as a Point3D structure.
bool isMarked() const
Checks if the marker is set.
void setCartesian(double x, double y, double z)
bool operator==(const Box2D &b1, const Box2D &b2)
void setEchoNum(UINT8 sub)
bool isTransparent() const
Checks if there is at least one more echo behind this scan point (B or C echo)
bool isGround() const
Checks if the scan point is labeled as ground.
@ FlagDirt
Invalid scan point, echo from dirt.
void setNotCovered()
Remove cover status.
@ FlagMarker
Point is "marked" (see above)
@ FlagThresholdSwitching
Old: Scan point was measured in a shot with threshold switching (earlier FPGA versions)
void setReflector(bool isReflector=true)
Labels the scan point: EPW is high enough to be a reflector.
This class defines a point in the three-dimensional plane.
std::ostream & operator<<(std::ostream &os, const EvalCaseResult &result)
bool isRain() const
Checks if the scan point is labeled as rain.
@ FlagRain
Invalid scan point, echo from rain drop.
void addPolarOffset(double distOffset, double hAngleOffset, double vAngleOffset)
void setGround(bool isGround=true)
Labels the scan point as invalid because it is an echo from the ground.
void setMarker(bool isMarked=true)
Set or clear the "Marker" flag.
void setRightCovered(bool isRightCovered=true)
Labels the scan point: Right neighbour point may be covered.
void setPolar(double dist, double hAngle, double vAngle)
@ FlagBackground
Point has been recognized as background and should not be used in the tracking anymore.
double getEchoWidth() const
void setDirt(bool isDirt=true)
Labels the scan point as invalid because its an echo from dirt.
bool isRightCovered() const
Checks if the "right covered" flag is set.
void addCartesianOffset(double xOffset, double yOffset, double zOffset)
double getDist2D(const ScanPoint &other) const
Returns the two-dimensional distance between this and the given other scanpoint, in [m].
void setSourceId(UINT8 id)
bool isDirt() const
Checks if the scan point is labeled as dirt.
bool isLeftCovered() const
Checks if the "left covered" flag is set.
@ FlagGround
Invalid scan point, echo from ground.
bool isBackground() const
Checks if the scan point is labeled as background.
friend bool operator==(const ScanPoint &, const ScanPoint &)
Equality predicate.
@ FlagLeftCovered
Left neighbour point may be covered.
void setRain(bool isRain=true)
Labels the scan point as invalid because its an echo from rain.
bool isThresholdSwitching() const
Checks if the threshold switching flag is set.
Point2D toPoint2D() const
Returns the x and y coordinates as a Point2D structure.
@ FlagReflector
EPW of scan point is high enough to be a reflector.
void setPoint3D(const Point3D &pt)
@ FlagRightCovered
Right neighbour point may be covered.
bool isReflector() const
Checks if the reflector flag is set.
bool operator!=(const Box2D &b1, const Box2D &b2)
bool isValid() const
Checks if the scan point is valid (no ground, dirt, or rain)
void setEchoWidth(double echoWidth)
Set the echo pulse width, typically in [m].
void updatePolar()
Compute polar coordinates from the current Cartesian coordinates.
libsick_ldmrs
Author(s): SICK AG
, Martin Günther , Jochen Sprickerhof
autogenerated on Wed Oct 26 2022 02:11:57