state-observation 1.8.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::odometry::LoContact Class Reference

---------------------------—Contacts--------------------------— More...

#include <legged-odometry-manager.hpp>

Inheritance diagram for stateObservation::odometry::LoContact:
[legend]
Collaboration diagram for stateObservation::odometry::LoContact:
[legend]

Public Member Functions

void resetContact () noexcept override
void lambda (double lambda)
void resetLifeTime ()
void lifeTimeIncrement (double dt)
void correctionWeightingCoeff (double weightingCoeff)
double lambda () const noexcept
double lifeTime () const noexcept
double correctionWeightingCoeff () const noexcept
Public Member Functions inherited from stateObservation::measurements::Contact
 Contact (unsigned id, std::string_view surfaceName)
unsigned id () const noexcept
const std::string & surfaceName () const noexcept
bool isSet () const noexcept
bool wasAlreadySet () const noexcept
void isSet (bool isSet)
void wasAlreadySet (bool wasAlreadySet)

Public Attributes

Kinematics worldRefKine_
Kinematics worldRefKineBeforeCorrection_
Kinematics newIncomingWorldRefKine_
bool useForOrientation_ = false
Kinematics worldBodyKineFromRef_
Kinematics currentWorldKine_
Kinematics bodyContactKine_
double lambda_ = 0.0
double lifeTime_ = 0.0
double correctionWeightingCoeff_

Additional Inherited Members

Protected Member Functions inherited from stateObservation::measurements::Contact
bool operator< (const Contact &rhs) const noexcept
Protected Attributes inherited from stateObservation::measurements::Contact
unsigned id_ = 0
bool isSet_ = false
bool wasAlreadySet_ = false
std::string surface_

Detailed Description

---------------------------—Contacts--------------------------—

Interface for the implementation of legged odometry. This odometry is based on the tracking of successive contacts for the estimation of the pose of the body of the robot.

The tilt cannot be estimated from this method (but the yaw can), it has to be estimated beforehand by another observer. One can decide to perform flat or 6D odometry. The flat odometry considers that the robot walks on a flat ground and corrects the estimated height accordingly, it is preferable in this use case.

The odometry manager must be initialized once all the configuration parameters are retrieved using LeggedOdometryManager::init(const Configuration &, const Vector7 &). Then, on every iteration, LeggedOdometryManager::initLoop must be called with the list of currently detected contacts, followed by LeggedOdometryManager::run(KineParams &).

Definition at line 84 of file legged-odometry-manager.hpp.

Member Function Documentation

◆ resetContact()

void stateObservation::odometry::LoContact::resetContact ( )
inlineoverridevirtualnoexcept

Reimplemented from stateObservation::measurements::Contact.

Definition at line 89 of file legged-odometry-manager.hpp.

◆ lambda() [1/2]

void stateObservation::odometry::LoContact::lambda ( double lambda)
inline

Definition at line 95 of file legged-odometry-manager.hpp.

◆ resetLifeTime()

void stateObservation::odometry::LoContact::resetLifeTime ( )
inline

Definition at line 100 of file legged-odometry-manager.hpp.

◆ lifeTimeIncrement()

void stateObservation::odometry::LoContact::lifeTimeIncrement ( double dt)
inline

Definition at line 104 of file legged-odometry-manager.hpp.

◆ correctionWeightingCoeff() [1/2]

void stateObservation::odometry::LoContact::correctionWeightingCoeff ( double weightingCoeff)
inline

Definition at line 108 of file legged-odometry-manager.hpp.

◆ lambda() [2/2]

double stateObservation::odometry::LoContact::lambda ( ) const
inlinenoexcept

Definition at line 113 of file legged-odometry-manager.hpp.

◆ lifeTime()

double stateObservation::odometry::LoContact::lifeTime ( ) const
inlinenoexcept

Definition at line 118 of file legged-odometry-manager.hpp.

◆ correctionWeightingCoeff() [2/2]

double stateObservation::odometry::LoContact::correctionWeightingCoeff ( ) const
inlinenoexcept

Definition at line 122 of file legged-odometry-manager.hpp.

Member Data Documentation

◆ worldRefKine_

Kinematics stateObservation::odometry::LoContact::worldRefKine_

Definition at line 129 of file legged-odometry-manager.hpp.

◆ worldRefKineBeforeCorrection_

Kinematics stateObservation::odometry::LoContact::worldRefKineBeforeCorrection_

Definition at line 131 of file legged-odometry-manager.hpp.

◆ newIncomingWorldRefKine_

Kinematics stateObservation::odometry::LoContact::newIncomingWorldRefKine_

Definition at line 133 of file legged-odometry-manager.hpp.

◆ useForOrientation_

bool stateObservation::odometry::LoContact::useForOrientation_ = false

Definition at line 135 of file legged-odometry-manager.hpp.

◆ worldBodyKineFromRef_

Kinematics stateObservation::odometry::LoContact::worldBodyKineFromRef_

Definition at line 138 of file legged-odometry-manager.hpp.

◆ currentWorldKine_

Kinematics stateObservation::odometry::LoContact::currentWorldKine_

Definition at line 140 of file legged-odometry-manager.hpp.

◆ bodyContactKine_

Kinematics stateObservation::odometry::LoContact::bodyContactKine_

Definition at line 143 of file legged-odometry-manager.hpp.

◆ lambda_

double stateObservation::odometry::LoContact::lambda_ = 0.0

Definition at line 146 of file legged-odometry-manager.hpp.

◆ lifeTime_

double stateObservation::odometry::LoContact::lifeTime_ = 0.0

Definition at line 148 of file legged-odometry-manager.hpp.

◆ correctionWeightingCoeff_

double stateObservation::odometry::LoContact::correctionWeightingCoeff_

Definition at line 150 of file legged-odometry-manager.hpp.


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