Variables | |
a0 = np.zeros(model.nv) | |
acc | |
bl_id = model.getFrameId('base_link') | |
collision_model | |
data = model.createData() | |
list | feet_ids = [model.getFrameId(n) for n in feet_names] |
list | feet_names = ['FL_FOOT', 'FR_FOOT', 'HL_FOOT', 'HR_FOOT'] |
fext__bl = pin.Force(ls__bl[joint_ids.index(joint.id)]) | |
list | fs_ext = [pin.Force(np.zeros(6)) for _ in range(len(model.joints))] |
g_bl = g_grav[:6] | |
g_grav = pin.rnea(model, data, q0, v0, a0) | |
g_j = g_grav[6:] | |
Jc__feet_bl_T = np.zeros([6, 3 * ncontact]) | |
Jc__feet_j_T = np.zeros([12, 3 * ncontact]) | |
list | joint_ids = [model.getJointId(n) for n in joint_names] |
list | joint_names = ['FL_KFE', 'FR_KFE', 'HL_KFE', 'HR_KFE'] |
list | Js__feet_bl = [np.copy(J[:3, :6]) for J in Js__feet_q] |
list | Js__feet_q |
list | Js_feet3d_q = [np.copy(J[:3, :]) for J in Js__feet_q] |
list | Js_feet_j = [np.copy(J[:3, 6:]) for J in Js__feet_q] |
l_sp__bl = data.oMf[bl_id].actInv(data.oMf[foot_id].act(l_sp__f)) | |
l_sp__f = pin.Force(l__f, np.zeros(3)) | |
linewidth | |
ls = np.linalg.pinv(Jc__feet_bl_T) @ g_bl | |
list | ls__bl = [] |
ls__f = np.split(ls, ncontact) | |
mesh_dir = pinocchio_model_dir | |
model | |
model_path = join(pinocchio_model_dir, "example-robot-data/robots") | |
ncontact = len(feet_names) | |
pinocchio_model_dir = join(dirname(dirname(str(abspath(__file__)))), "models") | |
q0 | |
tau = g_j - Jc__feet_j_T @ ls | |
tau_rnea = pin.rnea(model, data, q0, v0, a0, fs_ext) | |
string | urdf_filename = "solo12.urdf" |
urdf_model_path | |
v0 = np.zeros(model.nv) | |
visual_model | |
static-contact-dynamics.a0 = np.zeros(model.nv) |
Definition at line 67 of file static-contact-dynamics.py.
static-contact-dynamics.acc |
Definition at line 159 of file static-contact-dynamics.py.
static-contact-dynamics.bl_id = model.getFrameId('base_link') |
Definition at line 82 of file static-contact-dynamics.py.
static-contact-dynamics.collision_model |
Definition at line 58 of file static-contact-dynamics.py.
static-contact-dynamics.data = model.createData() |
Definition at line 60 of file static-contact-dynamics.py.
list static-contact-dynamics.feet_ids = [model.getFrameId(n) for n in feet_names] |
Definition at line 81 of file static-contact-dynamics.py.
list static-contact-dynamics.feet_names = ['FL_FOOT', 'FR_FOOT', 'HL_FOOT', 'HR_FOOT'] |
Definition at line 80 of file static-contact-dynamics.py.
static-contact-dynamics.fext__bl = pin.Force(ls__bl[joint_ids.index(joint.id)]) |
Definition at line 145 of file static-contact-dynamics.py.
list static-contact-dynamics.fs_ext = [pin.Force(np.zeros(6)) for _ in range(len(model.joints))] |
Definition at line 142 of file static-contact-dynamics.py.
static-contact-dynamics.g_bl = g_grav[:6] |
Definition at line 74 of file static-contact-dynamics.py.
Definition at line 72 of file static-contact-dynamics.py.
static-contact-dynamics.g_j = g_grav[6:] |
Definition at line 75 of file static-contact-dynamics.py.
static-contact-dynamics.Jc__feet_bl_T = np.zeros([6, 3 * ncontact]) |
Definition at line 95 of file static-contact-dynamics.py.
static-contact-dynamics.Jc__feet_j_T = np.zeros([12, 3 * ncontact]) |
Definition at line 127 of file static-contact-dynamics.py.
list static-contact-dynamics.joint_ids = [model.getJointId(n) for n in joint_names] |
Definition at line 140 of file static-contact-dynamics.py.
list static-contact-dynamics.joint_names = ['FL_KFE', 'FR_KFE', 'HL_KFE', 'HR_KFE'] |
Definition at line 139 of file static-contact-dynamics.py.
list static-contact-dynamics.Js__feet_bl = [np.copy(J[:3, :6]) for J in Js__feet_q] |
Definition at line 92 of file static-contact-dynamics.py.
list static-contact-dynamics.Js__feet_q |
Definition at line 87 of file static-contact-dynamics.py.
list static-contact-dynamics.Js_feet3d_q = [np.copy(J[:3, :]) for J in Js__feet_q] |
Definition at line 158 of file static-contact-dynamics.py.
list static-contact-dynamics.Js_feet_j = [np.copy(J[:3, 6:]) for J in Js__feet_q] |
Definition at line 125 of file static-contact-dynamics.py.
Definition at line 111 of file static-contact-dynamics.py.
static-contact-dynamics.l_sp__f = pin.Force(l__f, np.zeros(3)) |
Definition at line 110 of file static-contact-dynamics.py.
static-contact-dynamics.linewidth |
Definition at line 5 of file static-contact-dynamics.py.
static-contact-dynamics.ls = np.linalg.pinv(Jc__feet_bl_T) @ g_bl |
Definition at line 100 of file static-contact-dynamics.py.
list static-contact-dynamics.ls__bl = [] |
Definition at line 108 of file static-contact-dynamics.py.
Definition at line 103 of file static-contact-dynamics.py.
static-contact-dynamics.mesh_dir = pinocchio_model_dir |
Definition at line 53 of file static-contact-dynamics.py.
static-contact-dynamics.model |
Definition at line 58 of file static-contact-dynamics.py.
static-contact-dynamics.model_path = join(pinocchio_model_dir, "example-robot-data/robots") |
Definition at line 52 of file static-contact-dynamics.py.
static-contact-dynamics.ncontact = len(feet_names) |
Definition at line 83 of file static-contact-dynamics.py.
static-contact-dynamics.pinocchio_model_dir = join(dirname(dirname(str(abspath(__file__)))), "models") |
Definition at line 50 of file static-contact-dynamics.py.
static-contact-dynamics.q0 |
Definition at line 62 of file static-contact-dynamics.py.
static-contact-dynamics.tau = g_j - Jc__feet_j_T @ ls |
Definition at line 131 of file static-contact-dynamics.py.
Definition at line 148 of file static-contact-dynamics.py.
string static-contact-dynamics.urdf_filename = "solo12.urdf" |
Definition at line 54 of file static-contact-dynamics.py.
static-contact-dynamics.urdf_model_path |
Definition at line 55 of file static-contact-dynamics.py.
static-contact-dynamics.v0 = np.zeros(model.nv) |
Definition at line 66 of file static-contact-dynamics.py.
static-contact-dynamics.visual_model |
Definition at line 58 of file static-contact-dynamics.py.