<gh_stars>0
import numpy as np
import gym

import sds_numpy
from sds_numpy.envs.quanser.qube.ctrl import SwingUpCtrl

# quanser cartpole env
env = gym.make('QQube-ID-v0')
env._max_episode_steps = 10000

ctrl = SwingUpCtrl(ref_energy=0.04, energy_gain=30.0, acc_max=3.0)

obs = env.reset()
done = False
while not done:
    env.render()
    act = ctrl(obs)
    obs, _, _, _ = env.step(act)

import numpy as np
import gym

import sds_numpy
from sds_numpy.envs.quanser.qube.ctrl import SwingUpCtrl

# quanser cartpole env
env = gym.make('QQube-ID-v0')
env._max_episode_steps = 10000

ctrl = SwingUpCtrl(ref_energy=0.04, energy_gain=30.0, acc_max=3.0)

obs = env.reset()
done = False
while not done:
    env.render()
    act = ctrl(obs)
    obs, _, _, _ = env.step(act)
# quanser cartpole env