aligator  0.9.0
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>

Collaboration diagram for aligator::ContactMapTpl< _Scalar >:
[legend]

Public Types

using Scalar = _Scalar
 
using PoseVec = StdVectorEigenAligned<Vector3s>
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 ContactMapTpl (const std::vector< std::string > &contact_names, const std::vector< bool > &contact_states, const PoseVec &contact_poses)
 
void addContact (const std::string &name, const bool state, const Vector3s &pose)
 
void removeContact (const size_t i)
 
bool getContactState (const std::string &name) const
 
const Vector3s & getContactPose (const std::string &name) const
 
void setContactPose (const std::string &name, const Vector3s &ref)
 

Public Attributes

std::vector< std::string > contact_names_
 
std::vector< bool > contact_states_
 
PoseVec contact_poses_
 
std::size_t size_
 

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< std::string > & contact_names,
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 std::string & name,
const bool state,
const Vector3s & pose )
inline

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

◆ removeContact()

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

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

◆ getContactState()

template<typename _Scalar >
bool aligator::ContactMapTpl< _Scalar >::getContactState ( const std::string & name) const
inline

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

◆ getContactPose()

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

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

◆ setContactPose()

template<typename _Scalar >
void aligator::ContactMapTpl< _Scalar >::setContactPose ( const std::string & name,
const Vector3s & ref )
inline

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

Member Data Documentation

◆ contact_names_

template<typename _Scalar >
std::vector<std::string> aligator::ContactMapTpl< _Scalar >::contact_names_

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

◆ contact_states_

template<typename _Scalar >
std::vector<bool> aligator::ContactMapTpl< _Scalar >::contact_states_

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

◆ contact_poses_

template<typename _Scalar >
PoseVec aligator::ContactMapTpl< _Scalar >::contact_poses_

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

◆ size_

template<typename _Scalar >
std::size_t aligator::ContactMapTpl< _Scalar >::size_

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


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