Skip to content

Commit

Permalink
Some experiments with one leg
Browse files Browse the repository at this point in the history
  • Loading branch information
erdnaxe committed Jul 30, 2020
1 parent e80b971 commit 7fae409
Show file tree
Hide file tree
Showing 4 changed files with 1,122 additions and 317 deletions.
7 changes: 4 additions & 3 deletions gym_kraby/envs/one_leg_bullet_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ def _get_reward(self):
target_distance = np.square(position - self.target_position).sum()

# Comsuption is speed * torque
speeds = self.observation[1:-6:2]
torques = self.torques
comsuption = self.dt * abs(sum(speeds * torques))
#speeds = self.observation[1:-6:2]
#torques = self.torques
#comsuption = self.dt * abs(sum(speeds * torques))
comsuption = 0
w = 0 # comsuption weight, FIXME: disabled

# Compute reward
Expand Down
80 changes: 0 additions & 80 deletions notebooks/stablebaselines/one_leg_training.ipynb

This file was deleted.

234 changes: 0 additions & 234 deletions notebooks/stablebaselines/plot.ipynb

This file was deleted.

0 comments on commit 7fae409

Please sign in to comment.