コンテンツにスキップ

cpp_robotics::Quaternion

クォータニオンクラス More...

#include <quaternion.hpp>

Public Types

Name
using FLOATING_TYPE value_type

Public Functions

Name
constexpr Quaternion()
constexpr Quaternion(value_type nx, value_type ny, value_type nz, value_type nw)
Quaternion get_product(Quaternion q)
constexpr Quaternion conjugate() const
constexpr value_type norm() const
constexpr void normalize()
constexpr Quaternion get_normalized() const
constexpr void set_rpy(value_type roll, value_type pitch, value_type yaw)
constexpr Vector3d get_rpy() const
constexpr value_type operator[](const int index) const

Public Attributes

Name
value_type x
value_type y
value_type z
value_type w

Detailed Description

template <typename FLOATING_TYPE >
class cpp_robotics::Quaternion;

クォータニオンクラス

Template Parameters:

  • FLOATING_TYPE

Public Types Documentation

using value_type

using cpp_robotics::Quaternion< FLOATING_TYPE >::value_type =  FLOATING_TYPE;

Public Functions Documentation

function Quaternion

inline constexpr Quaternion()

function Quaternion

inline constexpr Quaternion(
    value_type nx,
    value_type ny,
    value_type nz,
    value_type nw
)

function get_product

inline Quaternion get_product(
    Quaternion q
)

function conjugate

inline constexpr Quaternion conjugate() const

function norm

inline constexpr value_type norm() const

function normalize

inline constexpr void normalize()

function get_normalized

inline constexpr Quaternion get_normalized() const

function set_rpy

inline constexpr void set_rpy(
    value_type roll,
    value_type pitch,
    value_type yaw
)

function get_rpy

inline constexpr Vector3d get_rpy() const

function operator[]

inline constexpr value_type operator[](
    const int index
) const

Parameters:

  • index

Return: constexpr value_type

Public Attributes Documentation

variable x

value_type x;

variable y

value_type y;

variable z

value_type z;

variable w

value_type w;

Updated on 2024-05-28 at 06:55:40 +0000