![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpScanPoint.h>
Public Member Functions | |
| vpScanPoint () | |
| vpScanPoint (const vpScanPoint &scanpoint) | |
| vpScanPoint (double r_dist, double h_angle, double v_angle) | |
| virtual | ~vpScanPoint () |
| void | setPolar (double r_dist, double h_angle, double v_angle) |
| double | getRadialDist () const |
| double | getVAngle () const |
| double | getHAngle () const |
| double | getX () const |
| double | getY () const |
| double | getZ () const |
| vpScanPoint & | operator= (const vpScanPoint &)=default |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const vpScanPoint &p) |
| bool | operator== (const vpScanPoint &sp1, const vpScanPoint &sp2) |
| bool | operator!= (const vpScanPoint &sp1, const vpScanPoint &sp2) |
Class that defines a single laser scanner point.
This class stores data of a single scan point as:
Definition at line 71 of file vpScanPoint.h.
|
inline |
Default constructor.
Definition at line 77 of file vpScanPoint.h.
Referenced by operator!=, operator<<, operator=(), operator==, and vpScanPoint().
|
inline |
|
inline |
Set the polar point coordinates.
| r_dist | : Radial distance in meter. |
| h_angle | : Horizontal angle in radian. |
| v_angle | : Vertical angle in radian. |
Definition at line 91 of file vpScanPoint.h.
|
inlinevirtual |
Destructor that does nothing.
Definition at line 98 of file vpScanPoint.h.
|
inline |
Returns the polar elevation (vertical) angle in radian.
Definition at line 122 of file vpScanPoint.h.
Referenced by operator!=, and operator==.
|
inline |
Return the radial distance in meter.
Definition at line 114 of file vpScanPoint.h.
Referenced by operator!=, and operator==.
|
inline |
Returns the polar elevation (vertical) angle in radian.
Definition at line 118 of file vpScanPoint.h.
Referenced by operator!=, and operator==.
|
inline |
Returns the cartesian x coordinate.
The x and y axis define an horizontal plane, where x is oriented positive in front of the laser while y on the left side.
Definition at line 130 of file vpScanPoint.h.
|
inline |
Returns the cartesian y coordinate.
The x and y axis define an horizontal plane, where x is oriented positive in front of the laser while y on the left side.
Definition at line 138 of file vpScanPoint.h.
|
inline |
Returns the cartesian z coordinate.
The z axis is vertical and oriented in direction of the sky.
Definition at line 145 of file vpScanPoint.h.
|
default |
References vpScanPoint().
|
inline |
Set the polar point coordinates.
| r_dist | : Radial distance in meter. |
| h_angle | : Horizontal angle in radian. |
| v_angle | : Vertical angle in radian. |
Definition at line 105 of file vpScanPoint.h.
Referenced by vpSickLDMRS::measure().
|
friend |
Returns true if sp1 and sp2 are different; otherwire returns false.
Definition at line 177 of file vpScanPoint.h.
References getHAngle(), getRadialDist(), getVAngle(), vpMath::maximum(), and vpScanPoint().
|
friend |
Print the values of the scan point on the output stream. Data are separated by a white space. Data that are print are first the polar coordinates, than the cartesian coordinates:
The following code
will produce the prints
Definition at line 240 of file vpScanPoint.h.
References operator<<, and vpScanPoint().
Referenced by operator<<.
|
friend |
Returns true if sp1 and sp2 are equal; otherwire returns false.
Definition at line 158 of file vpScanPoint.h.
References getHAngle(), getRadialDist(), getVAngle(), vpMath::maximum(), and vpScanPoint().