Classes | |
class | CartpoleDynamics |
class | PinocchioCasadi |
Functions | |
def | integrate_no_control (x0, nsteps) |
def | make_cartpole (ub=True) |
Variables | |
a0 = cartpole.acc_func(q0, v, u) | |
cartpole = CartpoleDynamics(timestep=dt) | |
float | dt = 0.02 |
model = cartpole.model | |
q0 = np.array([0.0, 0.95, 0.01]) | |
q_trajectory | |
def | qs_ = states_[: model.nq, :].T |
def | states_ = integrate_no_control(x0, nsteps=400) |
u = np.zeros(1) | |
v = np.zeros(model.nv) | |
viz | |
x0 = np.append(q0, v) | |
xnext = cartpole.forward(x0, u) | |
def cartpole.integrate_no_control | ( | x0, | |
nsteps | |||
) |
Definition at line 163 of file cartpole.py.
Definition at line 11 of file cartpole.py.
Definition at line 155 of file cartpole.py.
cartpole.cartpole = CartpoleDynamics(timestep=dt) |
Definition at line 146 of file cartpole.py.
cartpole.dt = 0.02 |
Definition at line 145 of file cartpole.py.
cartpole.model = cartpole.model |
Definition at line 147 of file cartpole.py.
cartpole.q0 = np.array([0.0, 0.95, 0.01]) |
Definition at line 151 of file cartpole.py.
cartpole.q_trajectory |
Definition at line 186 of file cartpole.py.
cartpole.qs_ = states_[: model.nq, :].T |
Definition at line 185 of file cartpole.py.
cartpole.states_ = integrate_no_control(x0, nsteps=400) |
Definition at line 172 of file cartpole.py.
cartpole.u = np.zeros(1) |
Definition at line 154 of file cartpole.py.
cartpole.v = np.zeros(model.nv) |
Definition at line 153 of file cartpole.py.
cartpole.viz |
Definition at line 176 of file cartpole.py.
Definition at line 159 of file cartpole.py.
Definition at line 160 of file cartpole.py.