train_pybullet_racecar.py works, self-driving car drives towards the ball using OpenAI baselines DQN :-)

See https://www.youtube.com/watch?v=DZ5Px-ocelw for video and how-to-install.
This commit is contained in:
erwincoumans
2017-06-10 18:46:36 -07:00
parent 4a7469a1ba
commit 1752aa55ca
5 changed files with 50 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ class Racecar:
def reset(self):
self.racecarUniqueId = p.loadURDF("racecar/racecar.urdf", [0,0,.2])
self.maxForce = 10
self.maxForce = 20
self.nMotors = 2
self.motorizedwheels=[2]
self.inactiveWheels = [3,5,7]
@@ -21,7 +21,7 @@ class Racecar:
self.motorizedWheels = [2]
self.steeringLinks=[4,6]
self.speedMultiplier = 10.
self.speedMultiplier = 4.
def getActionDimension(self):