Drake
QpOutput Class Reference

Output of the QP inverse dynamics controller. More...

#include <drake/attic/systems/controllers/qp_inverse_dynamics/qp_inverse_dynamics_common.h>

Public Member Functions

 QpOutput ()
 
 QpOutput (const std::vector< std::string > &dof_names)
 
bool is_valid (int num_vd) const
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 QpOutput (const QpOutput &)=default
 
QpOutputoperator= (const QpOutput &)=default
 
 QpOutput (QpOutput &&)=default
 
QpOutputoperator= (QpOutput &&)=default
 
Accessors
const std::vector< std::string > & dof_names () const
 
const std::string & dof_name (int index) const
 
const Vector3< double > & comdd () const
 Returns the center of mass acceleration. More...
 
const Vector6< double > & centroidal_momentum_dot () const
 
const VectorX< double > & vd () const
 Returns the generalized acceleration. More...
 
const std::unordered_map< std::string, BodyAcceleration > & body_accelerations () const
 
const VectorX< double > & dof_torques () const
 
const std::unordered_map< std::string, ResolvedContact > & resolved_contacts () const
 
const std::vector< std::pair< std::string, double > > & costs () const
 
const std::pair< std::string, double > & costs (size_t i) const
 
Vector3< double > & mutable_comdd ()
 Returns the center of mass acceleration. More...
 
Vector6< double > & mutable_centroidal_momentum_dot ()
 
VectorX< double > & mutable_vd ()
 Returns the generalized acceleration. More...
 
std::unordered_map< std::string, BodyAcceleration > & mutable_body_accelerations ()
 
std::unordered_map< std::string, ResolvedContact > & mutable_resolved_contacts ()
 
VectorX< double > & mutable_dof_torques ()
 
std::vector< std::pair< std::string, double > > & mutable_costs ()
 
std::pair< std::string, double > & mutable_cost (size_t i)
 

Detailed Description

Output of the QP inverse dynamics controller.

Constructor & Destructor Documentation

◆ QpOutput() [1/4]

QpOutput ( const QpOutput )
default

◆ QpOutput() [2/4]

QpOutput ( QpOutput &&  )
default

◆ QpOutput() [3/4]

QpOutput ( )
inline

◆ QpOutput() [4/4]

QpOutput ( const std::vector< std::string > &  dof_names)
inlineexplicit

Member Function Documentation

◆ body_accelerations()

const std::unordered_map<std::string, BodyAcceleration>& body_accelerations ( ) const
inline

◆ centroidal_momentum_dot()

const Vector6<double>& centroidal_momentum_dot ( ) const
inline

◆ comdd()

const Vector3<double>& comdd ( ) const
inline

Returns the center of mass acceleration.

◆ costs() [1/2]

const std::vector<std::pair<std::string, double> >& costs ( ) const
inline

◆ costs() [2/2]

const std::pair<std::string, double>& costs ( size_t  i) const
inline

◆ dof_name()

const std::string& dof_name ( int  index) const
inline

◆ dof_names()

const std::vector<std::string>& dof_names ( ) const
inline

◆ dof_torques()

const VectorX<double>& dof_torques ( ) const
inline

◆ is_valid()

bool is_valid ( int  num_vd) const

◆ mutable_body_accelerations()

std::unordered_map<std::string, BodyAcceleration>& mutable_body_accelerations ( )
inline

◆ mutable_centroidal_momentum_dot()

Vector6<double>& mutable_centroidal_momentum_dot ( )
inline

◆ mutable_comdd()

Vector3<double>& mutable_comdd ( )
inline

Returns the center of mass acceleration.

◆ mutable_cost()

std::pair<std::string, double>& mutable_cost ( size_t  i)
inline

◆ mutable_costs()

std::vector<std::pair<std::string, double> >& mutable_costs ( )
inline

◆ mutable_dof_torques()

VectorX<double>& mutable_dof_torques ( )
inline

◆ mutable_resolved_contacts()

std::unordered_map<std::string, ResolvedContact>& mutable_resolved_contacts ( )
inline

◆ mutable_vd()

VectorX<double>& mutable_vd ( )
inline

Returns the generalized acceleration.

◆ operator=() [1/2]

QpOutput& operator= ( QpOutput &&  )
default

◆ operator=() [2/2]

QpOutput& operator= ( const QpOutput )
default

◆ resolved_contacts()

const std::unordered_map<std::string, ResolvedContact>& resolved_contacts ( ) const
inline

◆ vd()

const VectorX<double>& vd ( ) const
inline

Returns the generalized acceleration.


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