Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iris droidology patch 1 -> #12 #11 #10 #13

Open
wants to merge 5 commits into
base: edwin
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion simulation_ws/src/mars/launch/mars_full_sim.launch
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(arg world)"/>
<arg name="debug" value="$(arg debug)" />
gui = false
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="$(arg paused)"/>
<arg name="use_sim_time" value="$(arg use_sim_time)"/>
Expand All @@ -21,4 +22,4 @@

<include file="$(find mars)/launch/rover_mars.launch"/>
<node name="agent" pkg="mars" type="run_local_rl_agent.sh" output="screen" required="true"/>
</launch>
</launch>
3 changes: 1 addition & 2 deletions simulation_ws/src/rl-agent/markov/environments/mars_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,7 @@ def reward_function(self):
"""
progress = INITIAL_DISTANCE_TO_CHECKPOINT / self.current_distance_to_checkpoint

if progress >=1.3 and progress <1.7:
# Determine if Rover already received one time reward for reaching this waypoint
if progress >=1.3 and progress <1.7: # Determine if Rover already received one time reward for reaching this waypoint
if not self.reached_waypoint_1:
self.reached_waypoint_1 = True
print("Congratulations! The rover has reached waypoint 1!")
Expand Down