Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save YannBerthelot/1b1b7c2c83e330ce5003bd4ce42301d5 to your computer and use it in GitHub Desktop.
Save YannBerthelot/1b1b7c2c83e330ce5003bd4ce42301d5 to your computer and use it in GitHub Desktop.
states and actions
def states(self):
return dict(type="float", shape=(self.STATES_SIZE,)) #self.STATES_SIZE = 4
def actions(self):
return {
"thrust": dict(type="int", num_values=self.NUM_THRUST), #self.NUM_THRUST = 6 (50,60,70,80,90,100)
"theta": dict(type="int", num_values=self.NUM_THETA), #self.NUM_THETA = 16 (from 0 to 15°)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment