Tesseract 0.28.4
Loading...
Searching...
No Matches
ikfast::IkSolution< T > Class Template Reference

Default implementation of IkSolutionBase. More...

#include <ikfast.h>

Inheritance diagram for ikfast::IkSolution< T >:

Public Member Functions

 IkSolution (const std::vector< IkSingleDOFSolutionBase< T > > &vinfos, const std::vector< int > &vfree)
void GetSolution (T *solution, const T *freevalues) const override
 gets a concrete solution
void GetSolution (std::vector< T > &solution, const std::vector< T > &freevalues) const override
 std::vector version of GetSolution
const std::vector< int > & GetFree () const override
 Gets the indices of the configuration space that have to be preset before a full solution can be returned.
int GetDOF () const override
 the dof of the solution
virtual void Validate () const
virtual void GetSolutionIndices (std::vector< unsigned int > &v) const

Public Attributes

std::vector< IkSingleDOFSolutionBase< T > > _vbasesol
 solution and their offsets if joints are mimiced
std::vector< int > _vfree

Detailed Description

template<typename T>
class ikfast::IkSolution< T >

Default implementation of IkSolutionBase.

Member Function Documentation

◆ GetSolution() [1/2]

template<typename T>
void ikfast::IkSolution< T >::GetSolution ( T * solution,
const T * freevalues ) const
inlineoverridevirtual

gets a concrete solution

Parameters
[out]solutionthe result
[in]freevaluesvalues for the free parameters \se GetFree

Implements ikfast::IkSolutionBase< T >.

◆ GetSolution() [2/2]

template<typename T>
void ikfast::IkSolution< T >::GetSolution ( std::vector< T > & solution,
const std::vector< T > & freevalues ) const
inlineoverridevirtual

std::vector version of GetSolution

Reimplemented from ikfast::IkSolutionBase< T >.

◆ GetFree()

template<typename T>
const std::vector< int > & ikfast::IkSolution< T >::GetFree ( ) const
inlineoverridevirtual

Gets the indices of the configuration space that have to be preset before a full solution can be returned.

Returns
vector of indices indicating the free parameters

Implements ikfast::IkSolutionBase< T >.

◆ GetDOF()

template<typename T>
int ikfast::IkSolution< T >::GetDOF ( ) const
inlineoverridevirtual

the dof of the solution

Implements ikfast::IkSolutionBase< T >.