Skip to content
Snippets Groups Projects
Commit 9767d094 authored by Jon's avatar Jon
Browse files

Remove agent program description

parent fe64daba
No related branches found
No related tags found
No related merge requests found
......@@ -10,26 +10,6 @@ from vacuum_agent import VacuumAgent
DIRECTIONS = VacuumAgent.WHEELS_DIRECTIONS
"""
Agent implementing a search algorithm:
- The agent must first update the model of the world (a GridMap) with the following information:
1. The current tile set as visited ('X')
2. The location of the charging dock ('C') given by the sensor 'charging-dock-location-sensor'
3. Any wall the agent crashed against ('W')
4. The dirt in the adjacent cells ('D')
- The agent must start cleaning if it is not currently doing so and stop cleaning if
the whole environment has been cleaned
- The agent must activate the suction mechanism if there is dirt on the current tile
or deactivate it if there is not (to preserve the battery)
- Then, the agent must check the current battery level:
1. If the battery level is below 50%, the agent must use a search algorithm to
head back to the charging dock before getting out of battery
2. Otherwise, the agent must use a search algorithm to head to an unvisited
tile
In both cases, the agent will return an action to change the direction of the
wheels towards the goal state, based on the path found by the search algorithm
"""
# 1. We create a model of the environment using a GridMap
# this step is similar to Week 2 workshop when implementing
# the model based agents
......
......@@ -10,26 +10,6 @@ from vacuum_agent import VacuumAgent
DIRECTIONS = VacuumAgent.WHEELS_DIRECTIONS
"""
Agent implementing a search algorithm:
- The agent must first update the model of the world (a GridMap) with the following information:
1. The current tile set as visited ('X')
2. The location of the charging dock ('C') given by the sensor 'charging-dock-location-sensor'
3. Any wall the agent crashed against ('W')
4. The dirt in the adjacent cells ('D')
- The agent must start cleaning if it is not currently doing so and stop cleaning if
the whole environment has been cleaned
- The agent must activate the suction mechanism if there is dirt on the current tile
or deactivate it if there is not (to preserve the battery)
- Then, the agent must check the current battery level:
1. If the battery level is below 50%, the agent must use a search algorithm to
head back to the charging dock before getting out of battery
2. Otherwise, the agent must use a search algorithm to head to an unvisited
tile
In both cases, the agent will return an action to change the direction of the
wheels towards the goal state, based on the path found by the search algorithm
"""
# 1. We create a model of the environment using a GridMap
# this step is similar to Week 2 workshop when implementing
# the model based agents
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment