A Position with orientation. More...
#include <Position3D.hpp>
Public Member Functions | |
value_type | getPitchAngle () const |
Pitch angle [rad] of the sensor in the vehicle coordinate system. More... | |
value_type | getRollAngle () const |
Roll angle [rad] of the sensor in the vehicle coordinate system. More... | |
virtual const UINT32 | getUsedMemory () const |
value_type | getX () const |
x-coordinate [m] of the sensor in the vehicle coordinate system More... | |
value_type | getY () const |
y-coordinate [m] of the sensor in the vehicle coordinate system More... | |
value_type | getYawAngle () const |
Yaw angle [rad] of the sensor in the vehicle coordinate system. More... | |
value_type | getZ () const |
z-coordinate [m] of the sensor in the vehicle coordinate system More... | |
void | normalizeAngles () |
Normalize all three internal angles to the range [-PI..PI]. More... | |
bool | operator== (const Position3D &other) const |
Equality predicate. More... | |
Position3D () | |
Empty constructor. More... | |
Position3D (value_type yaw, value_type pitch, value_type roll, value_type x, value_type y, value_type z) | |
Constructor with all values given. More... | |
Position3D (value_type yaw, value_type pitch, value_type roll, const Point3D &point) | |
Constructor with all values given by a Point3D. More... | |
Position3D & | set (value_type yaw, value_type pitch, value_type roll, value_type x, value_type y, value_type z) |
Set all values. More... | |
void | setPitchAngle (value_type angle) |
Pitch angle [rad] of the sensor in the vehicle coordinate system. More... | |
void | setRollAngle (value_type angle) |
Roll angle [rad] of the sensor in the vehicle coordinate system. More... | |
void | setX (value_type x) |
x-coordinate [m] of the sensor in the vehicle coordinate system More... | |
void | setY (value_type y) |
y-coordinate [m] of the sensor in the vehicle coordinate system More... | |
void | setYawAngle (value_type angle) |
Yaw angle [rad] of the sensor in the vehicle coordinate system. More... | |
void | setZ (value_type z) |
z-coordinate [m] of the sensor in the vehicle coordinate system More... | |
Point2D | toPoint2D () const |
Returns the x/y components of this class, converted into a Point2D object. More... | |
Point3D | toPoint3D () const |
Returns the x/y/z components of this class, converted into a Point3D object. More... | |
Position3D | toPosition3D () const |
Returns the content of this class, converted into a Position3D object. More... | |
std::string | toString () const |
bool | transformToVehicle (Point3D *pt) |
Public Member Functions inherited from datatypes::BasicData | |
BasicData () | |
UINT16 | getDatatype () |
UINT16 | getSourceId () |
virtual void | setSourceId (UINT16 id) |
virtual | ~BasicData () |
Private Types | |
typedef double | value_type |
Private Attributes | |
value_type | m_pitchAngle |
Pitch angle [rad]. More... | |
Point3D | m_point |
value_type | m_rollAngle |
Roll angle [rad]. More... | |
value_type | m_yawAngle |
Yaw angle [rad]. More... | |
Additional Inherited Members | |
Protected Attributes inherited from datatypes::BasicData | |
UINT16 | m_datatype |
UINT16 | m_sourceId |
A Position with orientation.
Definition at line 149 of file Position3D.hpp.
|
private |
Definition at line 151 of file Position3D.hpp.
datatypes::Position3D::Position3D | ( | ) |
Empty constructor.
All values are initialized to zero.
Definition at line 21 of file Position3D.cpp.
datatypes::Position3D::Position3D | ( | value_type | yaw, |
value_type | pitch, | ||
value_type | roll, | ||
value_type | x, | ||
value_type | y, | ||
value_type | z | ||
) |
Constructor with all values given.
(Note: The angles are not yet normalized into the interval [-pi,pi]. If you require normalized angles here, you must call normalizeAngles() yourself.)
Definition at line 29 of file Position3D.cpp.
datatypes::Position3D::Position3D | ( | value_type | yaw, |
value_type | pitch, | ||
value_type | roll, | ||
const Point3D & | point | ||
) |
Constructor with all values given by a Point3D.
Note: The Point3D contains the values in double precision, but in this class they will be stored in float precision only.
(Note: The angles are not yet normalized into the interval [-pi,pi]. If you require normalized angles here, you must call normalizeAngles() yourself.)
Definition at line 38 of file Position3D.cpp.
|
inline |
Pitch angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 195 of file Position3D.hpp.
|
inline |
Roll angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 197 of file Position3D.hpp.
|
inlinevirtual |
Implements datatypes::BasicData.
Definition at line 183 of file Position3D.hpp.
|
inline |
x-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 200 of file Position3D.hpp.
|
inline |
y-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 202 of file Position3D.hpp.
|
inline |
Yaw angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 193 of file Position3D.hpp.
|
inline |
z-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 204 of file Position3D.hpp.
void datatypes::Position3D::normalizeAngles | ( | ) |
Normalize all three internal angles to the range [-PI..PI].
Definition at line 228 of file Position3D.cpp.
bool datatypes::Position3D::operator== | ( | const Position3D & | other | ) | const |
Equality predicate.
Definition at line 180 of file Position3D.cpp.
Position3D & datatypes::Position3D::set | ( | value_type | yaw, |
value_type | pitch, | ||
value_type | roll, | ||
value_type | x, | ||
value_type | y, | ||
value_type | z | ||
) |
Set all values.
(Note: The angles are not yet normalized into the interval [-pi,pi]. If you require normalized angles here, you must call normalizeAngles() yourself.)
Definition at line 190 of file Position3D.cpp.
|
inline |
Pitch angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 224 of file Position3D.hpp.
|
inline |
Roll angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 226 of file Position3D.hpp.
|
inline |
x-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 216 of file Position3D.hpp.
|
inline |
y-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 218 of file Position3D.hpp.
|
inline |
Yaw angle [rad] of the sensor in the vehicle coordinate system.
Definition at line 222 of file Position3D.hpp.
|
inline |
z-coordinate [m] of the sensor in the vehicle coordinate system
Definition at line 220 of file Position3D.hpp.
Point2D datatypes::Position3D::toPoint2D | ( | ) | const |
Returns the x/y components of this class, converted into a Point2D object.
Definition at line 207 of file Position3D.cpp.
Point3D datatypes::Position3D::toPoint3D | ( | ) | const |
Returns the x/y/z components of this class, converted into a Point3D object.
Definition at line 202 of file Position3D.cpp.
Position3D datatypes::Position3D::toPosition3D | ( | ) | const |
Returns the content of this class, converted into a Position3D object.
std::string datatypes::Position3D::toString | ( | ) | const |
Definition at line 214 of file Position3D.cpp.
bool datatypes::Position3D::transformToVehicle | ( | Point3D * | pt | ) |
Definition at line 113 of file Position3D.cpp.
|
private |
Pitch angle [rad].
Definition at line 251 of file Position3D.hpp.
|
private |
Definition at line 255 of file Position3D.hpp.
|
private |
Roll angle [rad].
Definition at line 253 of file Position3D.hpp.
|
private |
Yaw angle [rad].
Definition at line 249 of file Position3D.hpp.