I have a piece of code giving me an error on the following line
Reset cart is a function shown below. Can someone please tell me how I can fix this?
[pre_s, s, pre_a, a, x, x_dot, theta, theta_dot] = reset_cart(beta) # reset the cart pole to initial state
TypeError: 'NoneType' object is not iterable
[pre_s, s, pre_a, a, x, x_dot, theta, theta_dot] = reset_cart(beta)
def reset_cart(beta):
pre_s=1
s=1
pre_a=-1
a=-1
x = 0
x_dot = 0
theta = 0
theta_dot = 0.01