Skip to content
Snippets Groups Projects
Commit c2fed4b4 authored by Armin Co's avatar Armin Co
Browse files

Modified reward function

Car has to stay still at the end.
parent 640f456f
Branches
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ saved_agents
benchmarks
baselines
simple
final_wo_o
workspace.code-workspace
test
tech_demo.py
......
......@@ -263,12 +263,10 @@ class World:
r -= 0.02
done = False
if pos_diff < 1.2:
if pos_diff < 1.1 and v < 0.01:
done = True
r += 100
r += 150
if yaw_dif < 0.01:
r+= 100
if v < 0.01:
r+= 50
if self.collision_sensor.collision is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment