Mujoco KDL Wrapper  0.2.2
MuJoCo + KDL bridge for robot kinematics and dynamics
Loading...
Searching...
No Matches
admittance_ft Namespace Reference

Classes

struct  AdmState
struct  SceneHandles
class  Controller
struct  Metrics

Functions

double clamp (double v, double lo, double hi)
KDL::JntArray home_q (unsigned n)
KDL::Vector vclamp (const KDL::Vector &v, double limit)
double norm3 (const KDL::Vector &v)
KDL::Rotation mj_xmat_to_kdl_rot (const double *m)
KDL::Frame site_frame_by_id (const mjModel *model, const mjData *data, int id)
KDL::Frame current_tcp (KDL::ChainFkSolverPos_recursive &fk, const mj_kdl::Robot &robot)
KDL::Vector spiral_force (double t)
void admittance_update (AdmState &s, const KDL::Vector &force, double dt)
void set_body_wrench (mjModel *model, mjData *data, const char *body, const KDL::Vector &force)
void close_gripper (mjModel *model, mjData *data)
KDL::Vector tare_force (const mj_kdl::Robot &robot)
KDL::Vector measured_force (const mj_kdl::Robot &robot, const AdmState &s)
bool build_scene (SceneHandles &h)
KDL::Frame admittance_step (mj_kdl::Robot &robot, Controller &ctrl, AdmState &state, const KDL::Frame &nominal, const KDL::Vector &force, double dt)
void settle_and_tare (SceneHandles &h, Controller &ctrl, AdmState &state)
Metrics run_selfcheck (SceneHandles &h, Controller &ctrl, AdmState &state, const KDL::Frame &nominal)
int finish_headless (const Metrics &m)
void run_gui (SceneHandles &h, Controller &ctrl, AdmState &state, const KDL::Frame &nominal)
int run (int argc, char **argv, std::unique_ptr< Controller >(*make_controller)(SceneHandles &))

Function Documentation

◆ admittance_step()

KDL::Frame admittance_ft::admittance_step ( mj_kdl::Robot & robot,
Controller & ctrl,
AdmState & state,
const KDL::Frame & nominal,
const KDL::Vector & force,
double dt )
inline

◆ admittance_update()

void admittance_ft::admittance_update ( AdmState & s,
const KDL::Vector & force,
double dt )
inline

◆ build_scene()

◆ clamp()

double admittance_ft::clamp ( double v,
double lo,
double hi )
inline

Definition at line 42 of file admittance_ft_common.hpp.

Referenced by vclamp().

◆ close_gripper()

void admittance_ft::close_gripper ( mjModel * model,
mjData * data )
inline

Definition at line 130 of file admittance_ft_common.hpp.

Referenced by run_gui(), run_selfcheck(), and settle_and_tare().

◆ current_tcp()

KDL::Frame admittance_ft::current_tcp ( KDL::ChainFkSolverPos_recursive & fk,
const mj_kdl::Robot & robot )
inline

◆ finish_headless()

◆ home_q()

KDL::JntArray admittance_ft::home_q ( unsigned n)
inline

Definition at line 44 of file admittance_ft_common.hpp.

Referenced by run().

◆ measured_force()

◆ mj_xmat_to_kdl_rot()

KDL::Rotation admittance_ft::mj_xmat_to_kdl_rot ( const double * m)
inline

Definition at line 62 of file admittance_ft_common.hpp.

Referenced by site_frame_by_id().

◆ norm3()

double admittance_ft::norm3 ( const KDL::Vector & v)
inline

Definition at line 60 of file admittance_ft_common.hpp.

Referenced by admittance_update(), measured_force(), and run_selfcheck().

◆ run()

◆ run_gui()

◆ run_selfcheck()

◆ set_body_wrench()

void admittance_ft::set_body_wrench ( mjModel * model,
mjData * data,
const char * body,
const KDL::Vector & force )
inline

Definition at line 118 of file admittance_ft_common.hpp.

Referenced by run(), run_gui(), and run_selfcheck().

◆ settle_and_tare()

◆ site_frame_by_id()

KDL::Frame admittance_ft::site_frame_by_id ( const mjModel * model,
const mjData * data,
int id )
inline

Definition at line 67 of file admittance_ft_common.hpp.

References mj_xmat_to_kdl_rot().

Referenced by measured_force(), and tare_force().

◆ spiral_force()

KDL::Vector admittance_ft::spiral_force ( double t)
inline

Definition at line 91 of file admittance_ft_common.hpp.

Referenced by run_gui(), and run_selfcheck().

◆ tare_force()

◆ vclamp()

KDL::Vector admittance_ft::vclamp ( const KDL::Vector & v,
double limit )
inline

Definition at line 51 of file admittance_ft_common.hpp.

References clamp().

Referenced by admittance_update().