Public Member Functions | |
def | __init__ (self, pin.Model model, timestep=0.05) |
def | create_discrete_dynamics (self) |
def | create_dynamics (self) |
def | forward (self, x, u) |
def | residual_fwd (self, x, u, xnext) |
Public Attributes | |
acc | |
acc_func | |
cdata | |
cmodel | |
dq_ | |
dyn_qv_fn_ | |
model | |
q_dq | |
q_node | |
timestep | |
u_node | |
v_node | |
Take a Pinocchio model, turn it into a Casadi model and define the appropriate graphs.
Definition at line 60 of file cartpole.py.
def cartpole.PinocchioCasadi.__init__ | ( | self, | |
pin.Model | model, | ||
timestep = 0.05 |
|||
) |
Definition at line 65 of file cartpole.py.
def cartpole.PinocchioCasadi.create_discrete_dynamics | ( | self | ) |
Create the map `(q,v) -> (qnext, vnext)` using semi-implicit Euler integration.
Definition at line 93 of file cartpole.py.
def cartpole.PinocchioCasadi.create_dynamics | ( | self | ) |
Create the acceleration expression and acceleration function.
Definition at line 73 of file cartpole.py.
def cartpole.PinocchioCasadi.forward | ( | self, | |
x, | |||
u | |||
) |
Definition at line 119 of file cartpole.py.
def cartpole.PinocchioCasadi.residual_fwd | ( | self, | |
x, | |||
u, | |||
xnext | |||
) |
Definition at line 129 of file cartpole.py.
cartpole.PinocchioCasadi.acc |
Definition at line 90 of file cartpole.py.
cartpole.PinocchioCasadi.acc_func |
Definition at line 91 of file cartpole.py.
cartpole.PinocchioCasadi.cdata |
Definition at line 68 of file cartpole.py.
cartpole.PinocchioCasadi.cmodel |
Definition at line 67 of file cartpole.py.
cartpole.PinocchioCasadi.dq_ |
Definition at line 85 of file cartpole.py.
cartpole.PinocchioCasadi.dyn_qv_fn_ |
Definition at line 111 of file cartpole.py.
cartpole.PinocchioCasadi.model |
Definition at line 66 of file cartpole.py.
cartpole.PinocchioCasadi.q_dq |
Definition at line 103 of file cartpole.py.
cartpole.PinocchioCasadi.q_node |
Definition at line 83 of file cartpole.py.
cartpole.PinocchioCasadi.timestep |
Definition at line 69 of file cartpole.py.
cartpole.PinocchioCasadi.u_node |
Definition at line 82 of file cartpole.py.
cartpole.PinocchioCasadi.v_node |
Definition at line 84 of file cartpole.py.