Public Member Functions | Private Attributes | List of all members
exotica::JointVelocityBackwardDifference Class Reference

Time-derivative estimation by backward differencing. JointVelocityBackwardDifference uses backward differencing to estimate the first time derivative of the joint state. More...

#include <joint_velocity_backward_difference.h>

Inheritance diagram for exotica::JointVelocityBackwardDifference:
Inheritance graph
[legend]

Public Member Functions

void AssignScene (ScenePtr scene) override
 
void SetPreviousJointState (Eigen::VectorXdRefConst joint_state)
 Logs previous joint state. SetPreviousJointState must be called after solve is called in a Python/C++ script is called to ensure the time-derivatives are appropriately approximated. The new joint_state is set to q_. Finally, we compute the new qbd_. More...
 
int TaskSpaceDim () override
 
void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRef phi) override
 
void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRef phi, Eigen::MatrixXdRef jacobian) override
 
- Public Member Functions inherited from exotica::TaskMap
std::vector< KinematicFrameRequestGetFrames () const
 
virtual std::vector< TaskVectorEntryGetLieGroupIndices ()
 
virtual void InstantiateBase (const Initializer &init)
 
virtual void PreUpdate ()
 
virtual int TaskSpaceJacobianDim ()
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi, Eigen::MatrixXdRef dphi_dx, Eigen::MatrixXdRef dphi_du)
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi)
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi, Eigen::MatrixXdRef dphi_dx, Eigen::MatrixXdRef dphi_du, HessianRef ddphi_ddx, HessianRef ddphi_ddu, HessianRef ddphi_dxdu)
 
virtual void Update (Eigen::VectorXdRefConst q, Eigen::VectorXdRef phi, Eigen::MatrixXdRef jacobian, HessianRef hessian)
 
- Public Member Functions inherited from exotica::Object
std::string GetObjectName ()
 
void InstantiateObject (const Initializer &init)
 
 Object ()
 
virtual std::string Print (const std::string &prepend) const
 
virtual std::string type () const
 
virtual ~Object ()
 
- Public Member Functions inherited from exotica::InstantiableBase
 InstantiableBase ()=default
 
virtual ~InstantiableBase ()=default
 
- Public Member Functions inherited from exotica::Instantiable< JointVelocityBackwardDifferenceInitializer >
std::vector< InitializerGetAllTemplates () const override
 
Initializer GetInitializerTemplate () override
 
const JointVelocityBackwardDifferenceInitializer & GetParameters () const
 
virtual void Instantiate (const JointVelocityBackwardDifferenceInitializer &init)
 
void InstantiateInternal (const Initializer &init) override
 

Private Attributes

double backward_difference_params_
 Binomial coefficient parameters. More...
 
Eigen::MatrixXd I_
 Identity matrix. More...
 
int N_
 Number of dofs for robot. More...
 
Eigen::VectorXd q_
 Log of previous joint state. More...
 
Eigen::VectorXd qbd_
 x+qbd_ is a simplified estimate of the first time derivative. More...
 

Additional Inherited Members

- Public Attributes inherited from exotica::TaskMap
int id
 
bool is_used
 
std::vector< KinematicSolutionkinematics
 
int length
 
int length_jacobian
 
int start
 
int start_jacobian
 
- Public Attributes inherited from exotica::Object
bool debug_
 
std::string ns_
 
std::string object_name_
 
- Protected Attributes inherited from exotica::TaskMap
std::vector< KinematicFrameRequestframes_
 
ScenePtr scene_
 
- Protected Attributes inherited from exotica::Instantiable< JointVelocityBackwardDifferenceInitializer >
JointVelocityBackwardDifferenceInitializer parameters_
 

Detailed Description

Time-derivative estimation by backward differencing. JointVelocityBackwardDifference uses backward differencing to estimate the first time derivative of the joint state.

For more information see: http://mathworld.wolfram.com/BackwardDifference.html

Here, x+qbd_ represents the simplified estimate of the first time derivative.

Definition at line 48 of file joint_velocity_backward_difference.h.

Member Function Documentation

void exotica::JointVelocityBackwardDifference::AssignScene ( ScenePtr  scene)
overridevirtual

Reimplemented from exotica::TaskMap.

Definition at line 36 of file joint_velocity_backward_difference.cpp.

void exotica::JointVelocityBackwardDifference::SetPreviousJointState ( Eigen::VectorXdRefConst  joint_state)

Logs previous joint state. SetPreviousJointState must be called after solve is called in a Python/C++ script is called to ensure the time-derivatives are appropriately approximated. The new joint_state is set to q_. Finally, we compute the new qbd_.

Definition at line 62 of file joint_velocity_backward_difference.cpp.

int exotica::JointVelocityBackwardDifference::TaskSpaceDim ( )
overridevirtual

Implements exotica::TaskMap.

Definition at line 94 of file joint_velocity_backward_difference.cpp.

void exotica::JointVelocityBackwardDifference::Update ( Eigen::VectorXdRefConst  x,
Eigen::VectorXdRef  phi 
)
overridevirtual

Implements exotica::TaskMap.

Definition at line 74 of file joint_velocity_backward_difference.cpp.

void exotica::JointVelocityBackwardDifference::Update ( Eigen::VectorXdRefConst  x,
Eigen::VectorXdRef  phi,
Eigen::MatrixXdRef  jacobian 
)
overridevirtual

Reimplemented from exotica::TaskMap.

Definition at line 84 of file joint_velocity_backward_difference.cpp.

Member Data Documentation

double exotica::JointVelocityBackwardDifference::backward_difference_params_
private

Binomial coefficient parameters.

Definition at line 64 of file joint_velocity_backward_difference.h.

Eigen::MatrixXd exotica::JointVelocityBackwardDifference::I_
private

Identity matrix.

Definition at line 68 of file joint_velocity_backward_difference.h.

int exotica::JointVelocityBackwardDifference::N_
private

Number of dofs for robot.

Definition at line 65 of file joint_velocity_backward_difference.h.

Eigen::VectorXd exotica::JointVelocityBackwardDifference::q_
private

Log of previous joint state.

Definition at line 66 of file joint_velocity_backward_difference.h.

Eigen::VectorXd exotica::JointVelocityBackwardDifference::qbd_
private

x+qbd_ is a simplified estimate of the first time derivative.

Definition at line 67 of file joint_velocity_backward_difference.h.


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


exotica_core_task_maps
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sat Apr 10 2021 02:36:09