openrave.org

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義 グループ ページ
構成 | 関数
Affine Math

構成

class  OpenRAVE::geometry::RaveVector< T >
 Vector class containing 4 dimensions. [詳細]
 
class  OpenRAVE::geometry::RaveTransform< T >
 Affine transformation parameterized with quaterions. [詳細]
 
class  OpenRAVE::geometry::RaveTransformMatrix< T >
 Affine transformation parameterized with rotation matrices. Scales and shears are not supported. [詳細]
 

関数

template<typename T >
RaveVector< T > OpenRAVE::geometry::quatFromAxisAngle (const RaveVector< T > &axis, T angle)
 Converts an axis-angle rotation into a quaternion.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatFromAxisAngle (const RaveVector< T > &axisangle)
 Converts an axis-angle rotation into a quaternion.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatFromMatrix (const RaveTransformMatrix< T > &rotation)
 Converts the rotation of a matrix into a quaternion.
 
template<typename T >
RaveTransformMatrix< T > OpenRAVE::geometry::matrixFromQuat (const RaveVector< T > &quat)
 Converts a quaternion to a 3x3 matrix.
 
template<typename T >
void OpenRAVE::geometry::matrixFromQuat (RaveTransformMatrix< T > &rotation, const RaveVector< T > &quat)
 Converts a quaternion to a 3x3 matrix.
 
template<typename T >
RaveTransformMatrix< T > OpenRAVE::geometry::matrixFromAxisAngle (const RaveVector< T > &axis, T angle)
 Converts an axis-angle rotation to a 3x3 matrix.
 
template<typename T >
RaveTransformMatrix< T > OpenRAVE::geometry::matrixFromAxisAngle (const RaveVector< T > &axisangle)
 Converts an axis-angle rotation to a 3x3 matrix.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatMultiply (const RaveVector< T > &quat0, const RaveVector< T > &quat1)
 Multiply two quaternions.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatInverse (const RaveVector< T > &quat)
 Inverted a quaternion rotation.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatSlerp (const RaveVector< T > &quat0, const RaveVector< T > &quat1, T t)
 Sphereical linear interpolation between two quaternions.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatRotate (const RaveVector< T > &q, const RaveVector< T > &t)
 transform a vector by a quaternion
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::quatRotateDirection (const RaveVector< T > &sourcedir, const RaveVector< T > &targetdir)
 Return the minimal quaternion that orients sourcedir to targetdir.
 
template<typename T >
std::pair< T, RaveVector< T > > OpenRAVE::geometry::normalizeAxisRotation (const RaveVector< T > &axis, const RaveVector< T > &quat)
 Find the rotation theta around axis such that rot(axis,theta) * q is closest to the identity rotation.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::axisAngleFromQuat (const RaveVector< T > &quat)
 Converts a quaternion into the axis-angle representation.
 
template<typename T >
RaveVector< T > OpenRAVE::geometry::axisAngleFromMatrix (const RaveTransformMatrix< T > &rotation)
 Converts the rotation of a matrix into axis-angle representation.
 
template<typename T >
RaveTransformMatrix< T > OpenRAVE::geometry::transformLookat (const RaveVector< T > &vlookat, const RaveVector< T > &vcamerapos, const RaveVector< T > &vcameraup)
 Returns a camera matrix that looks along a ray with a desired up vector.
 
OPENRAVE_API dReal OpenRAVE::RaveExp (dReal f)
 exponential
 
OPENRAVE_API dReal OpenRAVE::RaveLog (dReal f)
 logarithm
 
OPENRAVE_API dReal OpenRAVE::RaveCos (dReal f)
 cosine
 
OPENRAVE_API dReal OpenRAVE::RaveSin (dReal f)
 sine
 
OPENRAVE_API dReal OpenRAVE::RaveTan (dReal f)
 tangent
 
OPENRAVE_API dReal OpenRAVE::RaveLog2 (dReal f)
 base 2 logarithm
 
OPENRAVE_API dReal OpenRAVE::RaveLog10 (dReal f)
 base 10 logarithm
 
OPENRAVE_API dReal OpenRAVE::RaveAcos (dReal f)
 arccosine
 
OPENRAVE_API dReal OpenRAVE::RaveAsin (dReal f)
 arcsine
 
OPENRAVE_API dReal OpenRAVE::RaveAtan2 (dReal fy, dReal fx)
 arctangent2 covering entire circle
 
OPENRAVE_API dReal OpenRAVE::RavePow (dReal fx, dReal fy)
 power x^y
 
OPENRAVE_API dReal OpenRAVE::RaveSqrt (dReal f)
 square-root
 
OPENRAVE_API dReal OpenRAVE::RaveFabs (dReal f)
 absolute value
 

説明

A set of classes and functions that provide the basic affine math operations with vectors, matrices, and quaternions.

関数

template<typename T >
RaveVector<T> OpenRAVE::geometry::axisAngleFromMatrix ( const RaveTransformMatrix< T > &  rotation)

Converts the rotation of a matrix into axis-angle representation.

引数
rotation3x3 rotation matrix

geometry.h1130 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::axisAngleFromQuat ( const RaveVector< T > &  quat)

Converts a quaternion into the axis-angle representation.

引数
quatquaternion, (s,vx,vy,vz)

geometry.h1107 行で定義されています。

template<typename T >
RaveTransformMatrix<T> OpenRAVE::geometry::matrixFromAxisAngle ( const RaveVector< T > &  axis,
angle 
)
inline

Converts an axis-angle rotation to a 3x3 matrix.

引数
axisunit axis, 3 values
anglerotation angle (radians)
例:
orpr2turnlever.cpp.

geometry.h941 行で定義されています。

template<typename T >
RaveTransformMatrix<T> OpenRAVE::geometry::matrixFromAxisAngle ( const RaveVector< T > &  axisangle)
inline

Converts an axis-angle rotation to a 3x3 matrix.

引数
axisunit axis * rotation angle (radians), 3 values

geometry.h950 行で定義されています。

template<typename T >
RaveTransformMatrix<T> OpenRAVE::geometry::matrixFromQuat ( const RaveVector< T > &  quat)
inline

Converts a quaternion to a 3x3 matrix.

引数
[in]quatquaternion, (s,vx,vy,vz)

geometry.h883 行で定義されています。

template<typename T >
void OpenRAVE::geometry::matrixFromQuat ( RaveTransformMatrix< T > &  rotation,
const RaveVector< T > &  quat 
)

Converts a quaternion to a 3x3 matrix.

引数
[out]rotation
[in]quatquaternion, (s,vx,vy,vz)

geometry.h913 行で定義されています。

template<typename T >
std::pair<T, RaveVector<T> > OpenRAVE::geometry::normalizeAxisRotation ( const RaveVector< T > &  axis,
const RaveVector< T > &  quat 
)

Find the rotation theta around axis such that rot(axis,theta) * q is closest to the identity rotation.

引数
[in]axisaxis to minimize rotation about
[in]quatinput
戻り値
The angle that minimizes the rotation along with the normalized rotation rot(axis,theta)*q

geometry.h1093 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatFromAxisAngle ( const RaveVector< T > &  axis,
angle 
)
inline

Converts an axis-angle rotation into a quaternion.

引数
axisunit axis, 3 values
anglerotation angle (radians)
例:
ikfastloader.cpp, ormultithreadedplanning.cpp, と orplanning_ik.cpp.

geometry.h807 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatFromAxisAngle ( const RaveVector< T > &  axisangle)
inline

Converts an axis-angle rotation into a quaternion.

引数
axisangleunit axis * rotation angle (radians), 3 values

geometry.h822 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatFromMatrix ( const RaveTransformMatrix< T > &  rotation)
inline

Converts the rotation of a matrix into a quaternion.

引数
ttransform for extracting the 3x3 rotation.

geometry.h836 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatInverse ( const RaveVector< T > &  quat)
inline

Inverted a quaternion rotation.

引数
quatquaternion, (s,vx,vy,vz)

geometry.h976 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatMultiply ( const RaveVector< T > &  quat0,
const RaveVector< T > &  quat1 
)
inline

Multiply two quaternions.

引数
quat0quaternion, (s,vx,vy,vz)
quat1quaternion, (s,vx,vy,vz)
例:
ormultithreadedplanning.cpp, と orplanning_ik.cpp.

geometry.h961 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatRotate ( const RaveVector< T > &  q,
const RaveVector< T > &  t 
)

transform a vector by a quaternion

引数

geometry.h1038 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatRotateDirection ( const RaveVector< T > &  sourcedir,
const RaveVector< T > &  targetdir 
)

Return the minimal quaternion that orients sourcedir to targetdir.

引数
sourcedirdirection of the original vector, 3 values
targetdirnew direction, 3 values

geometry.h1063 行で定義されています。

template<typename T >
RaveVector<T> OpenRAVE::geometry::quatSlerp ( const RaveVector< T > &  quat0,
const RaveVector< T > &  quat1,
t 
)
inline

Sphereical linear interpolation between two quaternions.

引数
quat0quaternion, (s,vx,vy,vz)
quat1quaternion, (s,vx,vy,vz)
treal value in [0,1]. 0 returns quat1, 1 returns quat2

geometry.h988 行で定義されています。

dReal OpenRAVE::RaveAcos ( dReal  f)

arccosine

libopenrave.cpp232 行で定義されています。

dReal OpenRAVE::RaveAsin ( dReal  f)

arcsine

libopenrave.cpp235 行で定義されています。

dReal OpenRAVE::RaveAtan2 ( dReal  fy,
dReal  fx 
)

arctangent2 covering entire circle

libopenrave.cpp238 行で定義されています。

dReal OpenRAVE::RaveCos ( dReal  f)

cosine

libopenrave.cpp211 行で定義されています。

dReal OpenRAVE::RaveExp ( dReal  f)

exponential

Wrappers of common basic math functions, allows OpenRAVE to control the precision requirements.

libopenrave.cpp205 行で定義されています。

dReal OpenRAVE::RaveFabs ( dReal  f)

absolute value

libopenrave.cpp247 行で定義されています。

dReal OpenRAVE::RaveLog ( dReal  f)

logarithm

libopenrave.cpp208 行で定義されています。

dReal OpenRAVE::RaveLog10 ( dReal  f)

base 10 logarithm

libopenrave.cpp229 行で定義されています。

dReal OpenRAVE::RaveLog2 ( dReal  f)

base 2 logarithm

libopenrave.cpp225 行で定義されています。

dReal OpenRAVE::RavePow ( dReal  fx,
dReal  fy 
)

power x^y

libopenrave.cpp241 行で定義されています。

dReal OpenRAVE::RaveSin ( dReal  f)

sine

libopenrave.cpp214 行で定義されています。

dReal OpenRAVE::RaveSqrt ( dReal  f)

square-root

例:
orplanning_door.cpp.

libopenrave.cpp244 行で定義されています。

dReal OpenRAVE::RaveTan ( dReal  f)

tangent

libopenrave.cpp217 行で定義されています。

template<typename T >
RaveTransformMatrix<T> OpenRAVE::geometry::transformLookat ( const RaveVector< T > &  vlookat,
const RaveVector< T > &  vcamerapos,
const RaveVector< T > &  vcameraup 
)

Returns a camera matrix that looks along a ray with a desired up vector.

引数
[in]vlookatthe point space to look at, the camera will rotation and zoom around this point
[in]vcamposthe position of the camera in space
[in]vcamupvector from the camera

geometry.h1157 行で定義されています。