signals-cpp
Loading...
Searching...
No Matches
RigidBodyDynamics3DOF< T > Struct Template Reference

Definition of the dynamics for planar motion of a mass that's allowed to rotate. More...

#include <Models.h>

Public Types

using InputSignalType = Vector3Signal<T>
 
using StateSignalType = SE2StateSignal<T>
 
using StateDotSignalType = Vector3StateSignal<T>
 
using InputType = typename InputSignalType::BaseType
 
using StateType = typename StateSignalType::BaseType
 
using StateDotType = typename StateDotSignalType::BaseType
 
using StateDotDotType = typename StateDotSignalType::TangentType
 
using ParamsType = RigidBodyParams2D
 

Static Public Member Functions

static bool update (StateDotSignalType &xdot, const StateSignalType &x, const InputSignalType &u, const double &t0, const double &tf, const ParamsType &params, const bool &insertIntoHistory=false, const bool &calculateXddot=false)
 Update a provided state time derivative given an input and time interval.
 

Detailed Description

template<typename T>
struct RigidBodyDynamics3DOF< T >

Definition of the dynamics for planar motion of a mass that's allowed to rotate.

Member Typedef Documentation

◆ InputSignalType

template<typename T>
using RigidBodyDynamics3DOF< T >::InputSignalType = Vector3Signal<T>

◆ InputType

template<typename T>
using RigidBodyDynamics3DOF< T >::InputType = typename InputSignalType::BaseType

◆ ParamsType

template<typename T>
using RigidBodyDynamics3DOF< T >::ParamsType = RigidBodyParams2D

◆ StateDotDotType

template<typename T>
using RigidBodyDynamics3DOF< T >::StateDotDotType = typename StateDotSignalType::TangentType

◆ StateDotSignalType

template<typename T>
using RigidBodyDynamics3DOF< T >::StateDotSignalType = Vector3StateSignal<T>

◆ StateDotType

template<typename T>
using RigidBodyDynamics3DOF< T >::StateDotType = typename StateDotSignalType::BaseType

◆ StateSignalType

template<typename T>
using RigidBodyDynamics3DOF< T >::StateSignalType = SE2StateSignal<T>

◆ StateType

template<typename T>
using RigidBodyDynamics3DOF< T >::StateType = typename StateSignalType::BaseType

Member Function Documentation

◆ update()

template<typename T>
static bool RigidBodyDynamics3DOF< T >::update ( StateDotSignalType & xdot,
const StateSignalType & x,
const InputSignalType & u,
const double & t0,
const double & tf,
const ParamsType & params,
const bool & insertIntoHistory = false,
const bool & calculateXddot = false )
inlinestatic

Update a provided state time derivative given an input and time interval.

Parameters
xdotThe state time derivative signal to update.
xThe state signal to reference for the dynamics.
uThe input signal to reference for the dynamics.
t0The time at which to sample the state and input.
tfThe time at which to modify the state time derivative.
paramsThe 2D rigid body model parameters.
insertIntoHistoryWhether to insert the answer into state time derivative signal history.
calculateXddotWhether to use finite differencing to calculate the second time derivative of the state.

The documentation for this struct was generated from the following file: