Mujoco KDL Wrapper  0.1.0
MuJoCo + KDL bridge for robot kinematics and dynamics
Loading...
Searching...
No Matches
MjcfPickTest Class Reference
Inheritance diagram for MjcfPickTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void reset_scene ()
 
void run_phase (const KDL::JntArray &q_enter, const KDL::JntArray &q_target, double duration, double timeout, double settle_tol, double gripper_cmd)
 

Protected Attributes

fs::path root_
 
mjModel * model_ = nullptr
 
mjData * data_ = nullptr
 
mj_kdl::Robot s_
 
int fingers_act_ = -1
 
int cube_jnt_ = -1
 
unsigned n_ = 0
 
std::unique_ptr< KDL::ChainFkSolverPos_recursive > fk_
 
std::unique_ptr< KDL::ChainDynParam > dyn_
 
std::unique_ptr< KDL::ChainIkSolverVel_wdls > ik_vel_
 
KDL::JntArray q_home_
 
KDL::JntArray q_pregrasp_
 
KDL::JntArray q_grasp_
 
KDL::JntArray q_lift_
 

Detailed Description

Definition at line 103 of file test_mjcf_pick.cpp.

Member Function Documentation

◆ reset_scene()

◆ run_phase()

void MjcfPickTest::run_phase ( const KDL::JntArray &  q_enter,
const KDL::JntArray &  q_target,
double  duration,
double  timeout,
double  settle_tol,
double  gripper_cmd 
)
inlineprotected

◆ SetUp()

◆ TearDown()

void MjcfPickTest::TearDown ( )
inlineoverrideprotected

Definition at line 231 of file test_mjcf_pick.cpp.

References mj_kdl::cleanup(), data_, mj_kdl::destroy_scene(), model_, and s_.

Member Data Documentation

◆ cube_jnt_

int MjcfPickTest::cube_jnt_ = -1
protected

Definition at line 112 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), and SetUp().

◆ data_

mjData* MjcfPickTest::data_ = nullptr
protected

Definition at line 108 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), run_phase(), SetUp(), and TearDown().

◆ dyn_

std::unique_ptr<KDL::ChainDynParam> MjcfPickTest::dyn_
protected

Definition at line 116 of file test_mjcf_pick.cpp.

Referenced by run_phase(), and SetUp().

◆ fingers_act_

int MjcfPickTest::fingers_act_ = -1
protected

Definition at line 111 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), run_phase(), and SetUp().

◆ fk_

std::unique_ptr<KDL::ChainFkSolverPos_recursive> MjcfPickTest::fk_
protected

Definition at line 115 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ ik_vel_

std::unique_ptr<KDL::ChainIkSolverVel_wdls> MjcfPickTest::ik_vel_
protected

Definition at line 117 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ model_

mjModel* MjcfPickTest::model_ = nullptr
protected

Definition at line 107 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), SetUp(), and TearDown().

◆ n_

unsigned MjcfPickTest::n_ = 0
protected

Definition at line 113 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), run_phase(), and SetUp().

◆ q_grasp_

KDL::JntArray MjcfPickTest::q_grasp_
protected

Definition at line 119 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ q_home_

KDL::JntArray MjcfPickTest::q_home_
protected

Definition at line 119 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), and SetUp().

◆ q_lift_

KDL::JntArray MjcfPickTest::q_lift_
protected

Definition at line 119 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ q_pregrasp_

KDL::JntArray MjcfPickTest::q_pregrasp_
protected

Definition at line 119 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ root_

fs::path MjcfPickTest::root_
protected

Definition at line 106 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ s_

mj_kdl::Robot MjcfPickTest::s_
protected

Definition at line 110 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), run_phase(), SetUp(), and TearDown().


The documentation for this class was generated from the following file: