Public Member Functions | Private Types | Private Attributes | List of all members
datatypes::Position3D Class Reference

A Position with orientation. More...

#include <Position3D.hpp>

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

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...
 
Position3Dset (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
 

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

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.

Member Function Documentation

value_type datatypes::Position3D::getPitchAngle ( ) const
inline

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

Definition at line 195 of file Position3D.hpp.

value_type datatypes::Position3D::getRollAngle ( ) const
inline

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
inlinevirtual

Implements datatypes::BasicData.

Definition at line 183 of file Position3D.hpp.

value_type datatypes::Position3D::getX ( ) const
inline

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

Definition at line 200 of file Position3D.hpp.

value_type datatypes::Position3D::getY ( ) const
inline

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

Definition at line 202 of file Position3D.hpp.

value_type datatypes::Position3D::getYawAngle ( ) const
inline

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

Definition at line 193 of file Position3D.hpp.

value_type datatypes::Position3D::getZ ( ) const
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.)

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

Definition at line 190 of file Position3D.cpp.

void datatypes::Position3D::setPitchAngle ( value_type  angle)
inline

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

Definition at line 224 of file Position3D.hpp.

void datatypes::Position3D::setRollAngle ( value_type  angle)
inline

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

Definition at line 226 of file Position3D.hpp.

void datatypes::Position3D::setX ( value_type  x)
inline

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

Definition at line 216 of file Position3D.hpp.

void datatypes::Position3D::setY ( value_type  y)
inline

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

Definition at line 218 of file Position3D.hpp.

void datatypes::Position3D::setYawAngle ( value_type  angle)
inline

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

Definition at line 222 of file Position3D.hpp.

void datatypes::Position3D::setZ ( value_type  z)
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.

Member Data Documentation

value_type datatypes::Position3D::m_pitchAngle
private

Pitch angle [rad].

Definition at line 251 of file Position3D.hpp.

Point3D datatypes::Position3D::m_point
private

Definition at line 255 of file Position3D.hpp.

value_type datatypes::Position3D::m_rollAngle
private

Roll angle [rad].

Definition at line 253 of file Position3D.hpp.

value_type datatypes::Position3D::m_yawAngle
private

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 Mon Oct 26 2020 03:27:30