Using an Existing Environment
The following code uses a function defined in DojoEnvironments
to create a pendulum Environment
. This Environment
is a wrapper around the Mechanism
for easy interfacing with other packages. As with Mechanism
s, you can use the existing templates as a starting point for your own Environment
s.
# ### Setup
using Dojo
using DojoEnvironments
# ### Get environment (check DojoEnvironment/environments files for kwargs)
environment = get_environment(:pendulum; timestep=0.01, horizon=200)