- 3.0.2 rigid body dynamics module.
TaskspaceCostFunctionTest.h File Reference
#include <gtest/gtest.h>
#include "../../models/testhyq/RobCoGenTestHyQ.h"

Go to the source code of this file.

Functions

template<size_t state_dim, size_t control_dim>
void compareCostFunctionOutput (CostFunctionQuadratic< state_dim, control_dim > &costFunction, CostFunctionQuadratic< state_dim, control_dim > &costFunction2)
 This method is called from different unit tests in order to compare the cost, first and second order gradients of two cost functions. More...
 
 TEST (TaskspaceCostFunctionTests, TestTaskSpacePositionTerm)
 
 TEST (TaskspaceCostFunctionTests, TestTaskSpacePoseTerm)
 
 TEST (TaskspaceCostFunctionTests, TestTaskSpacePoseTermCG)
 

Function Documentation

◆ compareCostFunctionOutput()

template<size_t state_dim, size_t control_dim>
void compareCostFunctionOutput ( CostFunctionQuadratic< state_dim, control_dim > &  costFunction,
CostFunctionQuadratic< state_dim, control_dim > &  costFunction2 
)

This method is called from different unit tests in order to compare the cost, first and second order gradients of two cost functions.

Parameters
costFunctionthe first cost function to be compared
costFunction2the second cost function to be compared

Referenced by TEST().

◆ TEST() [1/3]

TEST ( TaskspaceCostFunctionTests  ,
TestTaskSpacePositionTerm   
)

◆ TEST() [2/3]

TEST ( TaskspaceCostFunctionTests  ,
TestTaskSpacePoseTerm   
)

◆ TEST() [3/3]

TEST ( TaskspaceCostFunctionTests  ,
TestTaskSpacePoseTermCG   
)