Cheetah Software
1.0
|
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "ControlParameters/ControlParameters.h"
#include "ControlParameters/RobotParameters.h"
#include "ControlParameters/SimulatorParameters.h"
#include "Math/MathUtilities.h"
Go to the source code of this file.
Classes | |
class | TestControlParameters |
class | TestVectorControlParameters |
Functions | |
TEST (ControlParams, testSimple) | |
TEST (ControlParams, testIni) | |
TEST (ControlParams, testVector) | |
TEST (ControlParams, testYaml) | |
TEST (ControlParams, CheckSimulatorDefaults) | |
TEST (ControlParams, CheckMiniCheetahDefaults) | |
TEST (ControlParams, CheckCheetah3Defulats) | |
TEST (ControlParams, CheckTypeRecognition) | |
TEST (ControlParams, DefineFromYaml) | |
TEST | ( | ControlParams | , |
testSimple | |||
) |
Definition at line 47 of file test_ControlParameters.cpp.
References ControlParameter::_kind, ControlParameter::_name, ControlParameter::_set, ControlParameter::_value, ControlParameters::collection, ControlParameterValuePtr::d, DOUBLE, ControlParameterValuePtr::f, FLOAT, ControlParameterValuePtr::i, ControlParameters::initializeDouble(), ControlParameters::initializeFloat(), ControlParameters::initializeInteger(), ControlParameters::isFullyInitialized(), ControlParameterCollection::lookup(), and S64.
TEST | ( | ControlParams | , |
testIni | |||
) |
Definition at line 84 of file test_ControlParameters.cpp.
References f(), fpEqual(), ControlParameters::generateUnitializedList(), ControlParameters::initializeDouble(), ControlParameters::initializeFloat(), ControlParameters::initializeFromIniFile(), ControlParameters::initializeInteger(), ControlParameters::isFullyInitialized(), TestControlParameters::test_double, TestControlParameters::test_float, TestControlParameters::test_integer, and ControlParameters::writeToIniFile().
TEST | ( | ControlParams | , |
testVector | |||
) |
Definition at line 109 of file test_ControlParameters.cpp.
References almostEqual(), f(), ControlParameters::initializeFromYamlFile(), ControlParameters::initializeVec3d(), ControlParameters::initializeVec3f(), ControlParameters::isFullyInitialized(), TestVectorControlParameters::test_double, TestVectorControlParameters::test_float, and ControlParameters::writeToYamlFile().
TEST | ( | ControlParams | , |
testYaml | |||
) |
Definition at line 129 of file test_ControlParameters.cpp.
References f(), fpEqual(), ControlParameters::initializeDouble(), ControlParameters::initializeFloat(), ControlParameters::initializeFromYamlFile(), ControlParameters::initializeInteger(), ControlParameters::isFullyInitialized(), TestControlParameters::test_double, TestControlParameters::test_float, TestControlParameters::test_integer, and ControlParameters::writeToYamlFile().
TEST | ( | ControlParams | , |
CheckSimulatorDefaults | |||
) |
Definition at line 155 of file test_ControlParameters.cpp.
References ControlParameters::generateUnitializedList(), getConfigDirectoryPath(), ControlParameters::initializeFromYamlFile(), ControlParameters::isFullyInitialized(), and SIMULATOR_DEFAULT_PARAMETERS.
TEST | ( | ControlParams | , |
CheckMiniCheetahDefaults | |||
) |
Definition at line 168 of file test_ControlParameters.cpp.
References ControlParameters::generateUnitializedList(), getConfigDirectoryPath(), ControlParameters::initializeFromYamlFile(), ControlParameters::isFullyInitialized(), and MINI_CHEETAH_DEFAULT_PARAMETERS.
TEST | ( | ControlParams | , |
CheckCheetah3Defulats | |||
) |
Definition at line 181 of file test_ControlParameters.cpp.
References CHEETAH_3_DEFAULT_PARAMETERS, ControlParameters::generateUnitializedList(), getConfigDirectoryPath(), ControlParameters::initializeFromYamlFile(), and ControlParameters::isFullyInitialized().
TEST | ( | ControlParams | , |
CheckTypeRecognition | |||
) |
Definition at line 193 of file test_ControlParameters.cpp.
References DOUBLE, FLOAT, getControlParameterValueKindFromString(), S64, VEC3_DOUBLE, and VEC3_FLOAT.
TEST | ( | ControlParams | , |
DefineFromYaml | |||
) |
Definition at line 201 of file test_ControlParameters.cpp.
References CHEETAH_3_DEFAULT_PARAMETERS, ControlParameters::collection, ControlParameters::defineAndInitializeFromYamlFile(), ControlParameterCollection::deleteAll(), getConfigDirectoryPath(), and MINI_CHEETAH_DEFAULT_PARAMETERS.