Biorbd
Public Member Functions | List of all members
biorbd::rigidbody::GeneralizedCoordinates Class Reference

Class GeneralizedCoordinates. More...

#include <GeneralizedCoordinates.h>

Inheritance diagram for biorbd::rigidbody::GeneralizedCoordinates:
biorbd::utils::Vector

Public Member Functions

 GeneralizedCoordinates ()
 Construct generalized coordinates. More...
 
 GeneralizedCoordinates (unsigned int nbQ)
 Create generalized coordinates of dimension nbQ. More...
 
 GeneralizedCoordinates (const biorbd::rigidbody::Joints &j)
 Create generalized coordinates from a joint Model. More...
 
 GeneralizedCoordinates (const biorbd::rigidbody::GeneralizedCoordinates &Q)
 Construct generalized coordinates. More...
 
 GeneralizedCoordinates (const RigidBodyDynamics::Math::VectorNd &v)
 Construct vector from Casadi vector. More...
 
virtual ~GeneralizedCoordinates ()
 Destroy the class properly.
 
void operator= (const biorbd::utils::Vector &other)
 operator= For submatrices More...
 
- Public Member Functions inherited from biorbd::utils::Vector
 Vector ()
 Construct vector.
 
 Vector (unsigned int size)
 Construct vector of dimension size. More...
 
 Vector (const biorbd::utils::Vector &other)
 Construct vector from Casadi vector. More...
 
 Vector (const RigidBodyDynamics::Math::VectorNd &other)
 Construct vector from Casadi vector. More...
 
 Vector (const biorbd::utils::Vector3d &other)
 Construct vector from Casadi matrix. More...
 
biorbd::utils::Scalar norm (unsigned int p=2, bool skipRoot=false) const
 Return the Euclidian p-norm of the vector. More...
 
biorbd::utils::Vector normGradient (unsigned int p=2, bool skipRoot=false)
 Return the gradient of the p-norm. More...
 
void operator= (const biorbd::utils::Vector &other)
 operator= For submatrices More...
 

Detailed Description

Class GeneralizedCoordinates.

Definition at line 14 of file GeneralizedCoordinates.h.

Constructor & Destructor Documentation

◆ GeneralizedCoordinates() [1/5]

biorbd::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates ( )

Construct generalized coordinates.

Definition at line 6 of file GeneralizedCoordinates.cpp.

◆ GeneralizedCoordinates() [2/5]

biorbd::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates ( unsigned int  nbQ)

Create generalized coordinates of dimension nbQ.

Parameters
nbQnumber of degrees-of-freedom

Definition at line 11 of file GeneralizedCoordinates.cpp.

◆ GeneralizedCoordinates() [3/5]

biorbd::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates ( const biorbd::rigidbody::Joints j)

Create generalized coordinates from a joint Model.

Parameters
jThe joint model

Definition at line 18 of file GeneralizedCoordinates.cpp.

◆ GeneralizedCoordinates() [4/5]

biorbd::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates ( const biorbd::rigidbody::GeneralizedCoordinates Q)

Construct generalized coordinates.

Parameters
QState vector of the internal joints

Definition at line 24 of file GeneralizedCoordinates.cpp.

◆ GeneralizedCoordinates() [5/5]

biorbd::rigidbody::GeneralizedCoordinates::GeneralizedCoordinates ( const RigidBodyDynamics::Math::VectorNd &  v)

Construct vector from Casadi vector.

Parameters
vThe vector to copy

Definition at line 31 of file GeneralizedCoordinates.cpp.

Member Function Documentation

◆ operator=()

void biorbd::rigidbody::GeneralizedCoordinates::operator= ( const biorbd::utils::Vector other)

operator= For submatrices

Parameters
otherThe vector to copy

Definition at line 54 of file GeneralizedCoordinates.cpp.


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