Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Introduction In this assignment you will implement a simulator environment for an automatic vacuum cleaner robot, a set of different reflex - based agent programs,
Introduction
In this assignment you will implement a simulator environment for an automatic vacuum cleaner robot, a set of different reflexbased agent programs, and perform a comparison study for cleaning a single room. Focus on the cleaning phase which starts when the robot is activated and ends when the last dirty square in the room has been cleaned. Someone else will take care of the agent program needed to navigate back to the charging station after the room is clean.
PEAS description of the cleaning phase
Performance Measure: Each action costs energy unit. The performance is measured as the sum of the energy units used to clean the whole room.
Environment: A room with ntimes n squares where n Dirt is randomly placed on each square with probability p For simplicity, you can assume that the agent knows the size and the layout of the room ie it knows n To start, the agent is placed on a random square.
Actuators: The agent can clean the current square action suck or move to an adjacent square by going north, east, south, or west.
Sensors: Four bumper sensors one for north, east, south, and west; a dirt sensor reporting dirt in the current square.
Task : Implement a simulation environment Points
The simple environment above is not very realistic. Your environment simulator needs to follow the PEAS description from above. It needs to:
Initialize the environment by storing the state of each square cleandirty and making some dirty. Help with random numbers and arrays in Python
Keep track of the agent's position.
Call the agent function repeatedly and provide the agent function with the sensor inputs.
React to the agent's actions. Eg by removing dirt from a square or moving the agent around unless there is a wall in the way.
Keep track of the performance measure. That is track the agent's actions until all dirty squares are clean and count the number of actions it takes the agent to complete the task.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started