aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::ContactMapTpl< _Scalar > Struct Template Reference

Contact map for centroidal costs and dynamics. More...

#include <aligator/modelling/contact-map.hpp>

Public Types

using Scalar = _Scalar
 
using PoseVec = StdVectorEigenAligned<Vector3s>
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 ContactMapTpl (const std::vector< bool > &contact_states, const PoseVec &contact_poses)
 
void addContact (const bool state, const Vector3s &pose)
 
void removeContact (const size_t i)
 
const std::vector< bool > & getContactStates () const
 
bool getContactState (const std::size_t i) const
 
const PoseVecgetContactPoses () const
 
const Vector3s & getContactPose (const std::size_t i) const
 
std::size_t getSize () const
 

Detailed Description

template<typename _Scalar>
struct aligator::ContactMapTpl< _Scalar >

Contact map for centroidal costs and dynamics.

Definition at line 8 of file contact-map.hpp.

Member Typedef Documentation

◆ Scalar

template<typename _Scalar >
using aligator::ContactMapTpl< _Scalar >::Scalar = _Scalar

Definition at line 9 of file contact-map.hpp.

◆ PoseVec

template<typename _Scalar >
using aligator::ContactMapTpl< _Scalar >::PoseVec = StdVectorEigenAligned<Vector3s>

Definition at line 11 of file contact-map.hpp.

Constructor & Destructor Documentation

◆ ContactMapTpl()

template<typename _Scalar >
aligator::ContactMapTpl< _Scalar >::ContactMapTpl ( const std::vector< bool > & contact_states,
const PoseVec & contact_poses )
inline

Definition at line 13 of file contact-map.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename _Scalar >
aligator::ContactMapTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ addContact()

template<typename _Scalar >
void aligator::ContactMapTpl< _Scalar >::addContact ( const bool state,
const Vector3s & pose )
inline

Definition at line 25 of file contact-map.hpp.

◆ removeContact()

template<typename _Scalar >
void aligator::ContactMapTpl< _Scalar >::removeContact ( const size_t i)
inline

Definition at line 31 of file contact-map.hpp.

◆ getContactStates()

template<typename _Scalar >
const std::vector< bool > & aligator::ContactMapTpl< _Scalar >::getContactStates ( ) const
inline

Definition at line 41 of file contact-map.hpp.

◆ getContactState()

template<typename _Scalar >
bool aligator::ContactMapTpl< _Scalar >::getContactState ( const std::size_t i) const
inline

Definition at line 43 of file contact-map.hpp.

◆ getContactPoses()

template<typename _Scalar >
const PoseVec & aligator::ContactMapTpl< _Scalar >::getContactPoses ( ) const
inline

Definition at line 45 of file contact-map.hpp.

◆ getContactPose()

template<typename _Scalar >
const Vector3s & aligator::ContactMapTpl< _Scalar >::getContactPose ( const std::size_t i) const
inline

Definition at line 47 of file contact-map.hpp.

◆ getSize()

template<typename _Scalar >
std::size_t aligator::ContactMapTpl< _Scalar >::getSize ( ) const
inline

Definition at line 51 of file contact-map.hpp.


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