First, see Installation to get the
holodeck package and
A minimal Holodeck usage example is below:
import holodeck import numpy as np env = holodeck.make("UrbanCity-MaxDistance") # The UAV takes 3 torques and a thrust as a command. command = np.array([0, 0, 0, 100]) env.reset() for _ in range(180): state, reward, terminal, info = env.step(command)
You pass the name of a scenario into
See Packages for all of the different worlds and scenarios that are available.
The interface of Holodeck is designed to be familiar to OpenAI Gym
- You must call
You can access data from a specific sensor with the state dictionary:
location_data = state["LocationSensor"]
That’s it! Holodeck is meant to be fairly simple to use.