Question: Your task is to compose a single Hierarchical Finite State Machine that controls a system composed of two chompers, like those in the movie, together
Your task is to compose a single Hierarchical Finite State Machine that controls a system composed of two chompers, like those in the movie, together with the cleaning robot. Submit a drawing of your HFSM that clearly labels the states, transitions, transition events, and actions that take place in each state (if they are not synonymous with the state's name). Use hierarchy to prevent duplication of arcs with the same transition condition. Use parallelism as appropriate. Hierarchical Finite State Machine (HFSM) for Chompers and Robot: 1. Chompers State: 2. Robot State: This textual representation should give you a clear understanding of the states, transitions, and actions in the HFSM. If you need further clarification or a different representation, please let me know!
Your HFSM can employ the following events:
● Heartbeat Detected (H)
● No Heartbeat Detected (NH)
● Mess (M)
● No Mess (NM)
● nSec - n seconds have elapsed since entering a state
Your HFSM should have the following behaviors:
● While the chompers are active, the robot is idle.
● While the robot is active the chompers are idle. Assume idle chompers are open.
● Chompers begin in an armed state, waiting for anything with a heartbeat to arrive.
● They return to the armed state if the lifeform (or lifeforms) with the heartbeat escapes.
● Once active, chompers keep chomping until nothing with a heartbeat remains.
● The robot is only active when there is a mess.
● The robot returns to idle when the mess is gone. It never stays active more than 4 minutes.
● The robot cleans by sweeping the floor, hosing down the equipment, blasting everything
with a flamethrower, and then polishing out any remaining spots, each for 30 seconds. It
repeats this process indefinitely, until it is told to stop.
● Each chomper follows a regular, timed pattern where it opens, pauses, and closes.
● Each chomper takes a different amount of time to complete its pattern.
● Chomper A's first chomp is immediate. Chomper B's first chomp is 1 second later.
Sketch your HFSM here
I now need this converted to an actual sketch of an HFSM
Step by Step Solution
3.40 Rating (169 Votes )
There are 3 Steps involved in it
Hierarchical Finite State Machine HFSM Sketch for Chompers and Robot Chompers Armed On Heartbeat Detected Active Active On No Heartbeat Detected Armed Chomper A Open On nSec time for Chomper A to open ... View full answer
Get step-by-step solutions from verified subject matter experts
