Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
KDL::Rotation2 Class Reference

#include <frames.hpp>

Public Member Functions

double GetRot () const
 Gets the angle (in radians) More...
 
Rotation2 Inverse () const
 
Vector2 Inverse (const Vector2 &v) const
 
double operator() (int i, int j) const
 Access to elements 0..1,0..1, bounds are checked when NDEBUG is not set. More...
 
Vector2 operator* (const Vector2 &v) const
 
Rotation2operator= (const Rotation2 &arg)
 
 Rotation2 ()
 Default constructor does NOT initialise to Zero(). More...
 
 Rotation2 (double angle_rad)
 
 Rotation2 (double ca, double sa)
 
 Rotation2 (const Rotation2 &arg)
 
void SetIdentity ()
 
void SetInverse ()
 
void SetRot (double angle)
 The SetRot.. functions set the value of *this to the appropriate rotation matrix. More...
 

Static Public Member Functions

static Rotation2 Identity ()
 
static Rotation2 Rot (double angle)
 The Rot... static functions give the value of the appropriate rotation matrix bac. More...
 

Private Attributes

double c
 
double s
 

Friends

bool Equal (const Rotation2 &a, const Rotation2 &b, double eps)
 
Rotation2 operator* (const Rotation2 &lhs, const Rotation2 &rhs)
 

Detailed Description

A 2D Rotation class, for conventions see Rotation. For further documentation of the methods see Rotation class.

Definition at line 1051 of file frames.hpp.

Constructor & Destructor Documentation

◆ Rotation2() [1/4]

KDL::Rotation2::Rotation2 ( )
inline

Default constructor does NOT initialise to Zero().

c,s represent cos(angle), sin(angle), this also represents first col. of rot matrix from outside, this class behaves as if it would store the complete 2x2 matrix.

Definition at line 1058 of file frames.hpp.

◆ Rotation2() [2/4]

KDL::Rotation2::Rotation2 ( double  angle_rad)
inlineexplicit

Definition at line 1060 of file frames.hpp.

◆ Rotation2() [3/4]

KDL::Rotation2::Rotation2 ( double  ca,
double  sa 
)
inline

Definition at line 1062 of file frames.hpp.

◆ Rotation2() [4/4]

IMETHOD Rotation2::Rotation2 ( const Rotation2 arg)

Definition at line 848 of file frames.hpp.

Member Function Documentation

◆ GetRot()

IMETHOD double Rotation2::GetRot ( ) const
inline

Gets the angle (in radians)

Definition at line 905 of file frames.hpp.

◆ Identity()

IMETHOD Rotation2 Rotation2::Identity ( )
inlinestatic

Definition at line 887 of file frames.hpp.

◆ Inverse() [1/2]

IMETHOD Rotation2 Rotation2::Inverse ( ) const
inline

Definition at line 879 of file frames.hpp.

◆ Inverse() [2/2]

IMETHOD Vector2 Rotation2::Inverse ( const Vector2 v) const
inline

Definition at line 883 of file frames.hpp.

◆ operator()()

IMETHOD double Rotation2::operator() ( int  i,
int  j 
) const
inline

Access to elements 0..1,0..1, bounds are checked when NDEBUG is not set.

Definition at line 861 of file frames.hpp.

◆ operator*()

IMETHOD Vector2 Rotation2::operator* ( const Vector2 v) const
inline

Definition at line 857 of file frames.hpp.

◆ operator=()

IMETHOD Rotation2 & Rotation2::operator= ( const Rotation2 arg)
inline

Definition at line 852 of file frames.hpp.

◆ Rot()

IMETHOD Rotation2 Rotation2::Rot ( double  angle)
inlinestatic

The Rot... static functions give the value of the appropriate rotation matrix bac.

Definition at line 901 of file frames.hpp.

◆ SetIdentity()

IMETHOD void Rotation2::SetIdentity ( )
inline

Definition at line 891 of file frames.hpp.

◆ SetInverse()

IMETHOD void Rotation2::SetInverse ( )
inline

Definition at line 875 of file frames.hpp.

◆ SetRot()

IMETHOD void Rotation2::SetRot ( double  angle)
inline

The SetRot.. functions set the value of *this to the appropriate rotation matrix.

Definition at line 897 of file frames.hpp.

Friends And Related Function Documentation

◆ Equal

bool Equal ( const Rotation2 a,
const Rotation2 b,
double  eps = epsilon 
)
friend

do not use operator == because the definition of Equal(.,.) is slightly different. It compares whether the 2 arguments are equal in an eps-interval

Definition at line 1060 of file frames.hpp.

◆ operator*

Rotation2 operator* ( const Rotation2 lhs,
const Rotation2 rhs 
)
friend

Definition at line 871 of file frames.hpp.

Member Data Documentation

◆ c

double KDL::Rotation2::c
private

Definition at line 1053 of file frames.hpp.

◆ s

double KDL::Rotation2::s
private

Definition at line 1053 of file frames.hpp.


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


orocos_kdl
Author(s):
autogenerated on Thu Apr 13 2023 02:19:15