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

Go to the source code of this file.

Classes

class  MjcfLoadTest
class  MjcfGripperTest
class  JointEdgeCaseTest

Functions

 TEST_F (MjcfLoadTest, ChainFkMatchesTheModelFrames)
 TEST_F (MjcfLoadTest, JointLimitsFollowTheModel)
 TEST_F (MjcfLoadTest, SaveModelXmlRoundTrips)
 TEST_F (MjcfGripperTest, TcpChainMatchesThePinchSite)
 TEST_F (MjcfGripperTest, GripperDriverRangeAndCtrlrange)
 TEST_F (MjcfGripperTest, JointSlotReadsAGripperJointByName)
 TEST_F (MjcfGripperTest, ContactExclusionsAreAdded)
 TEST_F (MjcfGripperTest, AttachToABodyWithAnOffset)
 TEST_F (MjcfGripperTest, CamerasAreAddedWhereTheSpecSays)
 TEST_F (MjcfGripperTest, SitesAreAddedButAnAuthoredSiteWins)
 TEST (MjcfPathTest, RelativeModelPathWithRelativeMeshdir)
 TEST_F (JointEdgeCaseTest, ChainRefusesABodyWithTwoJoints)
 TEST_F (JointEdgeCaseTest, ChainRefusesABallJointOnThePath)
 TEST_F (JointEdgeCaseTest, PlainHingeChainStillBuilds)
 TEST_F (JointEdgeCaseTest, JointSlotRefusesWhatIsNotAScalarJoint)
 TEST (AttachToFrame, ARobotStandsOnAnObjectsNamedFrame)
int main (int argc, char *argv[])

Function Documentation

◆ main()

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

Definition at line 375 of file test_mjcf_load.cpp.

◆ TEST() [1/2]

◆ TEST() [2/2]

TEST ( MjcfPathTest ,
RelativeModelPathWithRelativeMeshdir  )

◆ TEST_F() [1/14]

TEST_F ( JointEdgeCaseTest ,
ChainRefusesABallJointOnThePath  )

Definition at line 326 of file test_mjcf_load.cpp.

References mj_kdl::init_env(), and mj_kdl::init_robot_from_mjcf().

◆ TEST_F() [2/14]

TEST_F ( JointEdgeCaseTest ,
ChainRefusesABodyWithTwoJoints  )

Definition at line 319 of file test_mjcf_load.cpp.

References mj_kdl::init_env(), and mj_kdl::init_robot_from_mjcf().

◆ TEST_F() [3/14]

TEST_F ( JointEdgeCaseTest ,
JointSlotRefusesWhatIsNotAScalarJoint  )

Definition at line 339 of file test_mjcf_load.cpp.

References mj_kdl::bind_scene_joint(), and mj_kdl::init_env().

◆ TEST_F() [4/14]

TEST_F ( JointEdgeCaseTest ,
PlainHingeChainStillBuilds  )

Definition at line 332 of file test_mjcf_load.cpp.

References mj_kdl::init_env(), and mj_kdl::init_robot_from_mjcf().

◆ TEST_F() [5/14]

◆ TEST_F() [6/14]

◆ TEST_F() [7/14]

TEST_F ( MjcfGripperTest ,
ContactExclusionsAreAdded  )

◆ TEST_F() [8/14]

TEST_F ( MjcfGripperTest ,
GripperDriverRangeAndCtrlrange  )

Definition at line 152 of file test_mjcf_load.cpp.

References mj_kdl::init_env(), and mj_kdl_examples::kGripperClosed.

◆ TEST_F() [9/14]

TEST_F ( MjcfGripperTest ,
JointSlotReadsAGripperJointByName  )

◆ TEST_F() [10/14]

◆ TEST_F() [11/14]

◆ TEST_F() [12/14]

TEST_F ( MjcfLoadTest ,
ChainFkMatchesTheModelFrames  )

◆ TEST_F() [13/14]

TEST_F ( MjcfLoadTest ,
JointLimitsFollowTheModel  )

Definition at line 70 of file test_mjcf_load.cpp.

◆ TEST_F() [14/14]

TEST_F ( MjcfLoadTest ,
SaveModelXmlRoundTrips  )

Definition at line 89 of file test_mjcf_load.cpp.

References mj_kdl::save_model_xml().