Variables | |
data = model.createData() | |
ddq_dq = data.ddq_dq | |
ddq_dtau = data.Minv | |
ddq_dv = data.ddq_dv | |
lowerPositionLimit | |
model = pin.buildSampleModelHumanoidRandom() | |
In this short script, we show how to compute the derivatives of the forward dynamics, using the algorithms explained in: More... | |
q = pin.randomConfiguration(model) | |
tau = np.matrix(np.random.rand(model.nv,1)) | |
upperPositionLimit | |
v = np.matrix(np.random.rand(model.nv,1)) | |
forward-dynamics-derivatives.data = model.createData() |
Definition at line 14 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.ddq_dq = data.ddq_dq |
Definition at line 31 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.ddq_dtau = data.Minv |
Definition at line 33 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.ddq_dv = data.ddq_dv |
Definition at line 32 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.lowerPositionLimit |
Definition at line 18 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.model = pin.buildSampleModelHumanoidRandom() |
In this short script, we show how to compute the derivatives of the forward dynamics, using the algorithms explained in:
Analytical Derivatives of Rigid Body Dynamics Algorithms, Justin Carpentier and Nicolas Mansard, Robotics: Science and Systems, 2018
Definition at line 13 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.q = pin.randomConfiguration(model) |
Definition at line 21 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.tau = np.matrix(np.random.rand(model.nv,1)) |
Definition at line 23 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.upperPositionLimit |
Definition at line 19 of file forward-dynamics-derivatives.py.
forward-dynamics-derivatives.v = np.matrix(np.random.rand(model.nv,1)) |
Definition at line 22 of file forward-dynamics-derivatives.py.