Mujoco KDL Wrapper  0.5.1
MuJoCo + KDL bridge for robot kinematics and dynamics
Loading...
Searching...
No Matches
test_control_modes.cpp File Reference
#include <gtest/gtest.h>
#include "mj_kdl_wrapper/mj_kdl_wrapper.hpp"
#include "common.hpp"
#include "example_paths.hpp"
#include <kdl/chaindynparam.hpp>
#include <cmath>
#include <filesystem>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  ArmCase
class  ArmModesTest
class  MotorWheelModesTest
class  AttachedArmModesTest

Functions

 TEST_P (ArmModesTest, TorqueGroupIsAddedAndStartsDisabled)
 TEST_P (ArmModesTest, PositionTracksAJointTrajectory)
 TEST_P (ArmModesTest, SwitchesBetweenPositionAndTorqueWithoutAJump)
 TEST_P (ArmModesTest, GravityIsCompensatedOnlyOutsideTorque)
 TEST_P (ArmModesTest, TorqueIsLimitedByTheModelsForcerange)
 TEST_P (ArmModesTest, QfrcAppliedIsLeftToTheUser)
 TEST_P (ArmModesTest, VelocityModeTracksTheJointVelocityCommand)
 TEST_P (ArmModesTest, TwoArmsRunDifferentModes)
 INSTANTIATE_TEST_SUITE_P (Arms, ArmModesTest, testing::ValuesIn(kArms), [](const auto &info) { return std::string(info.param.name);})
 TEST (GripperModesTest, GripperStaysInPositionWhileTheArmSwitches)
 TEST_F (MotorWheelModesTest, OnlyTheListedJointTakesModes)
 TEST_F (MotorWheelModesTest, VelocityTracksThenTorqueTakesOver)
 TEST_F (MotorWheelModesTest, SceneActuatorFlagsAClampedCommand)
 TEST_F (MotorWheelModesTest, ForceLimitsFollowTheActiveMode)
 TEST_F (AttachedArmModesTest, EachArmGetsGroupsOfItsOwn)
 TEST_F (AttachedArmModesTest, OneArmSwitchesAndHoldsWhileTheOtherStaysInPosition)
 TEST_F (AttachedArmModesTest, AnAttachmentWithoutModesGetsNone)
int main (int argc, char *argv[])

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( Arms ,
ArmModesTest ,
testing::ValuesIn(kArms) ,
[] (const auto &info) { return std::string(info.param.name);}  )

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 568 of file test_control_modes.cpp.

◆ TEST()

◆ TEST_F() [1/7]

TEST_F ( AttachedArmModesTest ,
AnAttachmentWithoutModesGetsNone  )

◆ TEST_F() [2/7]

TEST_F ( AttachedArmModesTest ,
EachArmGetsGroupsOfItsOwn  )

Definition at line 508 of file test_control_modes.cpp.

References mj_kdl::POSITION.

◆ TEST_F() [3/7]

TEST_F ( AttachedArmModesTest ,
OneArmSwitchesAndHoldsWhileTheOtherStaysInPosition  )

◆ TEST_F() [4/7]

◆ TEST_F() [5/7]

TEST_F ( MotorWheelModesTest ,
OnlyTheListedJointTakesModes  )

Definition at line 396 of file test_control_modes.cpp.

References mj_kdl::POSITION, and mj_kdl::set_control_mode().

◆ TEST_F() [6/7]

◆ TEST_F() [7/7]

◆ TEST_P() [1/8]

TEST_P ( ArmModesTest ,
GravityIsCompensatedOnlyOutsideTorque  )

◆ TEST_P() [2/8]

TEST_P ( ArmModesTest ,
PositionTracksAJointTrajectory  )

Definition at line 127 of file test_control_modes.cpp.

References mj_kdl::step(), and mj_kdl::update().

◆ TEST_P() [3/8]

TEST_P ( ArmModesTest ,
QfrcAppliedIsLeftToTheUser  )

◆ TEST_P() [4/8]

TEST_P ( ArmModesTest ,
SwitchesBetweenPositionAndTorqueWithoutAJump  )

◆ TEST_P() [5/8]

TEST_P ( ArmModesTest ,
TorqueGroupIsAddedAndStartsDisabled  )

Definition at line 113 of file test_control_modes.cpp.

References mj_kdl::POSITION.

◆ TEST_P() [6/8]

TEST_P ( ArmModesTest ,
TorqueIsLimitedByTheModelsForcerange  )

◆ TEST_P() [7/8]

◆ TEST_P() [8/8]