Public Member Functions | Private Types | Private Attributes
datatypes::Position3D Class Reference

A Position with orientation. More...

#include <Position3D.hpp>

Inheritance diagram for datatypes::Position3D:
Inheritance graph
[legend]

List of all members.

Public Member Functions

value_type getPitchAngle () const
 Pitch angle [rad] of the sensor in the vehicle coordinate system.
value_type getRollAngle () const
 Roll angle [rad] of the sensor in the vehicle coordinate system.
virtual const UINT32 getUsedMemory () const
value_type getX () const
 x-coordinate [m] of the sensor in the vehicle coordinate system
value_type getY () const
 y-coordinate [m] of the sensor in the vehicle coordinate system
value_type getYawAngle () const
 Yaw angle [rad] of the sensor in the vehicle coordinate system.
value_type getZ () const
 z-coordinate [m] of the sensor in the vehicle coordinate system
void normalizeAngles ()
 Normalize all three internal angles to the range [-PI..PI].
bool operator== (const Position3D &other) const
 Equality predicate.
 Position3D ()
 Empty constructor.
 Position3D (value_type yaw, value_type pitch, value_type roll, value_type x, value_type y, value_type z)
 Constructor with all values given.
 Position3D (value_type yaw, value_type pitch, value_type roll, const Point3D &point)
 Constructor with all values given by a Point3D.
Position3Dset (value_type yaw, value_type pitch, value_type roll, value_type x, value_type y, value_type z)
 Set all values.
void setPitchAngle (value_type angle)
 Pitch angle [rad] of the sensor in the vehicle coordinate system.
void setRollAngle (value_type angle)
 Roll angle [rad] of the sensor in the vehicle coordinate system.
void setX (value_type x)
 x-coordinate [m] of the sensor in the vehicle coordinate system
void setY (value_type y)
 y-coordinate [m] of the sensor in the vehicle coordinate system
void setYawAngle (value_type angle)
 Yaw angle [rad] of the sensor in the vehicle coordinate system.
void setZ (value_type z)
 z-coordinate [m] of the sensor in the vehicle coordinate system
Point2D toPoint2D () const
 Returns the x/y components of this class, converted into a Point2D object.
Point3D toPoint3D () const
 Returns the x/y/z components of this class, converted into a Point3D object.
Position3D toPosition3D () const
 Returns the content of this class, converted into a Position3D object.
std::string toString () const
bool transformToVehicle (Point3D *pt)

Private Types

typedef double value_type

Private Attributes

value_type m_pitchAngle
 Pitch angle [rad].
Point3D m_point
value_type m_rollAngle
 Roll angle [rad].
value_type m_yawAngle
 Yaw angle [rad].

Detailed Description

A Position with orientation.

Definition at line 149 of file Position3D.hpp.


Member Typedef Documentation

typedef double datatypes::Position3D::value_type [private]

Definition at line 151 of file Position3D.hpp.


Constructor & Destructor Documentation

Empty constructor.

All values are initialized to zero.

Definition at line 21 of file Position3D.cpp.

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.


Member Function Documentation

Pitch angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 195 of file Position3D.hpp.

Roll angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 197 of file Position3D.hpp.

virtual const UINT32 datatypes::Position3D::getUsedMemory ( ) const [inline, virtual]

Implements datatypes::BasicData.

Definition at line 183 of file Position3D.hpp.

x-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 200 of file Position3D.hpp.

y-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 202 of file Position3D.hpp.

Yaw angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 193 of file Position3D.hpp.

z-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 204 of file Position3D.hpp.

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.

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.)

Returns:
A reference to this object after the new values have been set.

Definition at line 190 of file Position3D.cpp.

Pitch angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 224 of file Position3D.hpp.

Roll angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 226 of file Position3D.hpp.

x-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 216 of file Position3D.hpp.

y-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 218 of file Position3D.hpp.

Yaw angle [rad] of the sensor in the vehicle coordinate system.

Definition at line 222 of file Position3D.hpp.

z-coordinate [m] of the sensor in the vehicle coordinate system

Definition at line 220 of file Position3D.hpp.

Returns the x/y components of this class, converted into a Point2D object.

Definition at line 207 of file Position3D.cpp.

Returns the x/y/z components of this class, converted into a Point3D object.

Definition at line 202 of file Position3D.cpp.

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.

Definition at line 113 of file Position3D.cpp.


Member Data Documentation

Pitch angle [rad].

Definition at line 251 of file Position3D.hpp.

Definition at line 255 of file Position3D.hpp.

Roll angle [rad].

Definition at line 253 of file Position3D.hpp.

Yaw angle [rad].

Definition at line 249 of file Position3D.hpp.


The documentation for this class was generated from the following files:


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Wed Jun 14 2017 04:04:51