opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
opyn::IKMeasurements< T > Class Template Referencefinal

#include <inverse_kinematics.h>

Public Member Functions

template<typename U >
requires std::constructible_from<T, U>
 IKMeasurements (const Symbol &model_component, U &&value, double time=0.0, double weight=1.0)
 
 IKMeasurements (const Symbol &model_component, std::vector< double > times, std::vector< T > values)
 
 IKMeasurements (const Symbol &model_component, std::vector< double > times, std::vector< T > values, std::vector< double > weights)
 
const Symbol & model_component () const
 
size_t size () const
 Returns the number of measurements in the sequence.
 
double time (size_t i) const
 Returns the measurement time of the ith measurement in the sequence.
 
const T & value (size_t i) const
 Returns the value of the ith measurement in the sequence.
 
double weight (size_t i) const
 Returns the weight of the ith measurement in the sequence.
 

Detailed Description

template<typename T>
class opyn::IKMeasurements< T >

Represents a sequence of IK measurements associated to one component in the model.

Constructor & Destructor Documentation

◆ IKMeasurements() [1/3]

template<typename T >
template<typename U >
requires std::constructible_from<T, U>
opyn::IKMeasurements< T >::IKMeasurements ( const Symbol &  model_component,
U &&  value,
double  time = 0.0,
double  weight = 1.0 
)
inlineexplicit

Constructs a single-element measurement sequence associated with model_component with given value, time, and weight.

◆ IKMeasurements() [2/3]

template<typename T >
opyn::IKMeasurements< T >::IKMeasurements ( const Symbol &  model_component,
std::vector< double >  times,
std::vector< T >  values 
)
inlineexplicit

Constructs a measurement sequence associated with model_component of values at times, where all values have equal weight (1.0).

The number of times must be equal to the number of values.

◆ IKMeasurements() [3/3]

template<typename T >
opyn::IKMeasurements< T >::IKMeasurements ( const Symbol &  model_component,
std::vector< double >  times,
std::vector< T >  values,
std::vector< double >  weights 
)
inlineexplicit

Constructs a measurement sequence associated with model_component of values at times with weights.

The number of times, values, and weights must be equal.

Member Function Documentation

◆ model_component()

template<typename T >
const Symbol & opyn::IKMeasurements< T >::model_component ( ) const
inline

Returns a Symbol that can be used to look up the component in the model that's associated with these measurements.

◆ size()

template<typename T >
size_t opyn::IKMeasurements< T >::size ( ) const
inline

Returns the number of measurements in the sequence.

◆ time()

template<typename T >
double opyn::IKMeasurements< T >::time ( size_t  i) const
inline

Returns the measurement time of the ith measurement in the sequence.

◆ value()

template<typename T >
const T & opyn::IKMeasurements< T >::value ( size_t  i) const
inline

Returns the value of the ith measurement in the sequence.

◆ weight()

template<typename T >
double opyn::IKMeasurements< T >::weight ( size_t  i) const
inline

Returns the weight of the ith measurement in the sequence.


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