6 #include "gmock/gmock.h" 7 #include "gtest/gtest.h" 34 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
47 TEST(ControlParams, testSimple) {
79 EXPECT_TRUE(
"test_integer" ==
84 TEST(ControlParams, testIni) {
109 TEST(ControlParams, testVector) {
129 TEST(ControlParams, testYaml) {
155 TEST(ControlParams, CheckSimulatorDefaults) {
160 printf(
"Missing parameters:\n%s\n",
168 TEST(ControlParams, CheckMiniCheetahDefaults) {
173 printf(
"Missing parameters:\n%s\n",
181 TEST(ControlParams, CheckCheetah3Defulats) {
186 printf(
"Missing parameters:\n%s\n",
193 TEST(ControlParams, CheckTypeRecognition) {
201 TEST(ControlParams, DefineFromYaml) {
bool fpEqual(T a, T b, T tol)
ControlParameterCollection collection
ControlParameterValueKind _kind
#define MINI_CHEETAH_DEFAULT_PARAMETERS
bool isFullyInitialized()
ControlParameter test_float_param
typename Eigen::Matrix< T, 3, 1 > Vec3
#define SIMULATOR_DEFAULT_PARAMETERS
ControlParameterValuePtr _value
TEST(ControlParams, testSimple)
void initializeDouble(const std::string &name, double d)
ControlParameter test_double_param
std::string getConfigDirectoryPath()
void writeToYamlFile(const std::string &path)
void initializeVec3d(const std::string &name, Vec3< double > &v)
void initializeInteger(const std::string &name, s64 i)
ControlParameter & lookup(const std::string &name)
void writeToIniFile(const std::string &path)
ControlParameter test_double_param
EIGEN_MAKE_ALIGNED_OPERATOR_NEW TestVectorControlParameters()
#define CHEETAH_3_DEFAULT_PARAMETERS
bool almostEqual(const Eigen::MatrixBase< T > &a, const Eigen::MatrixBase< T > &b, T2 tol)
Utility functions for math.
void initializeFloat(const std::string &name, float f)
ControlParameter test_float_param
void defineAndInitializeFromYamlFile(const std::string &path)
Vec3< double > test_double
void initializeVec3f(const std::string &name, Vec3< float > &v)
Interface to set gains/control parameters for simulator and robot These are designed to be updated in...
void initializeFromIniFile(const std::string &path)
ControlParameter test_integer_param
ControlParameterValueKind getControlParameterValueKindFromString(const std::string &str)
void initializeFromYamlFile(const std::string &path)
std::string generateUnitializedList()
MX f(const MX &x, const MX &u)