mj-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_pinv > ik_vel_
 
std::unique_ptr< KDL::ChainIkSolverPos_NR_JL > ik_
 
KDL::JntArray q_home_
 
KDL::JntArray q_pregrasp_
 
KDL::JntArray q_grasp_
 
KDL::JntArray q_lift_
 

Detailed Description

Definition at line 60 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 189 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 69 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), and SetUp().

◆ data_

mjData* MjcfPickTest::data_ = nullptr
protected

Definition at line 65 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 73 of file test_mjcf_pick.cpp.

Referenced by run_phase(), and SetUp().

◆ fingers_act_

int MjcfPickTest::fingers_act_ = -1
protected

Definition at line 68 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 72 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ ik_

std::unique_ptr<KDL::ChainIkSolverPos_NR_JL> MjcfPickTest::ik_
protected

Definition at line 75 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ ik_vel_

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

Definition at line 74 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ model_

mjModel* MjcfPickTest::model_ = nullptr
protected

Definition at line 64 of file test_mjcf_pick.cpp.

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

◆ n_

unsigned MjcfPickTest::n_ = 0
protected

Definition at line 70 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 77 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ q_home_

KDL::JntArray MjcfPickTest::q_home_
protected

Definition at line 77 of file test_mjcf_pick.cpp.

Referenced by reset_scene(), and SetUp().

◆ q_lift_

KDL::JntArray MjcfPickTest::q_lift_
protected

Definition at line 77 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ q_pregrasp_

KDL::JntArray MjcfPickTest::q_pregrasp_
protected

Definition at line 77 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ root_

fs::path MjcfPickTest::root_
protected

Definition at line 63 of file test_mjcf_pick.cpp.

Referenced by SetUp().

◆ s_

mj_kdl::Robot MjcfPickTest::s_
protected

Definition at line 67 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: