Write program that solves problem according to behavior tree

Assignment Help JAVA Programming
Reference no: EM131909063

Introduction to Artificial Intelligence Assignment

Write Java program that solves problem according to Behavior Tree.

PROBLEM SET: BEHAVIOR TREES

Roomba's roaming

This new type of Roomba has very simple reflex rules. It will always check the battery level first. If the level is below 30%, it will plan a path to its charging base ("home"), go there, and start the docking procedure. If the battery is at a sufficient level, it will start the function it was commanded to perform. The available commands are:

1. Spot cleaning: it will perform a 20s intensive cleaning in a specific area

2. General cleaning: go around the room and vacuum dust until the battery falls under 30%

3. Do nothing

During general cleaning, if the dust sensor detects a particularly dirty spot, the Roomba will perform a 35s spot cleaning.

The goal of this problem set is to implement the provided behavior tree. As we talked about in class, trees can be represented with concatenated IF-THEN-ELSE rules. Trees can also be implemented through a standard recursive node definition.

Your implementation should accept a blackboard object as input (a regular hash map or dictionary). The blackboard contains the following elements:

1. BATTERY_LEVEL: an integer number between 0 and 100

2. SPOT: a Boolean value - TRUE if the command was requested, FALSE otherwise

3. GENERAL: a Boolean value - TRUE if the command was requested, FALSE otherwise

4. DUSTY_SPOT: a Boolean value - TRUE if the sensor detected a dusty spot during the cycle, FALSE otherwise

5. HOME_PATH: The path to the docking station

SPOT and GENERAL should not change until the command has been completed. The tree evaluation is called several times, each time simulates a 1s interval. Certain tasks should return RUNNING if they have not completed the job yet, and last for the specified number of cycles (20 cycles, or 35 cycles).

Except for DONE GENERAL and DONE SPOT, none of the other tasks will need to be implemented as printing a string with the name of the task and the state (SUCCEEDED, FAILED, RUNNING) will be sufficient. DONE GENERAL and DONE SPOT will set to FALSE the corresponding values in the blackboard.

Attachment:- Assignment File.rar

Reference no: EM131909063

Questions Cloud

Explore the world through music thread in forums : After your website is completed and published, post a link to your website in the WK8: Exploring the World through Music thread in Forums.
Opportunity cost of capital for type of equipment : Your company’s tax rate is 45%, and the opportunity cost of capital for this type of equipment is 12%. Is it profitable to replace the year old machine?
How does the video make you feel about the worlds future : What ideas that we have studied so far in class can help you better understand the facts and trends presented in the video? explain how they apply.
Which stock would you be likely to add to your portfolio : If you anticipated a major stock market rally, which stock would you be most likely to add to your portfolio? Why?
Write program that solves problem according to behavior tree : COMP 131 Introduction to Artificial Intelligence Assignment. Write Java program that solves problem according to Behavior Tree
Identify a health problem or need for health promotion : Identify a health problem or need for health promotion for a particular stage in the life span of a population from a specific culture in your area.
What types of scheduling decisions are management encounter : What types of scheduling decisions are management likely to encounter in the following operations? Describe the scheduling decisions in terms of the types.
Investment is how to construct investment portfolio : One of the most important concepts in investment is how to construct an investment portfolio.
Affect an individual life insurance premium : Discuss the factors that affect an individual’s life insurance premium.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Multiple inheritance and thunks

Then, pa and pc will contain the same value, but pb will contain a different value; it will contain the address of the B part of the C object. The fact that pb and pc do not contain the same value means that in C++, a cast sometimes has a run-time..

  Generate a random reference string of length

COSC 3406 - Generate a random reference string of length 30 and Draw a graph and show the relationship between number of frames vs number of page fault.

  Create a java application using swing components

Create a java application using Swing Components. The java program should consist of showing values of cars depending upon the year and model selections, for a vehicle.

  Hashtable and the hashmap

In JAVA programming: What are the differences between a Hashtable and the HashMap? Few examples

  Java test program

Write a Java test program, all your code should be in the main method, that determines what type of organization is indicated by a web address. Your program should allow the user to enter a web address

  What should a comment at the class level contain

How do you identify a comment so the Javadoc tool will recognize it and what should a comment at the class level contain?

  Write the flow of execution of application

Write the flow of execution of application step by step and briefly explain the functionality of each function being called (like the first step would be to instantiate Frame and then instantiate Panel and place it into the Frame).

  Implement a method on your graph using breadth first search

Choose your graph implementation allowing to build such graphs (you should be able to generate graphs up to 1000 nodes). Implement a method on your graph using breadth first search to check if all nodes are reachable from each other

  Java program that prompts for the gpa

This assignment will give you practice with interactive programs, if/else statements and methods that return values. Your program will prompt the user for information about two applicants and compute an overall score for each applicant. This is ..

  Define private instance variable to hold boolean value

Write a Java Enumeration "LetterGrade" that represents letter grades A through F including plus and minus grades. Define a private instance variable to hold a boolean value.

  Create a java class named headphone to represent a headphone

A private int data field named volume that specifies the volume. Create a Java class named HeadPhone to represent a headphone set.

  Draw a scheduling chart to show how the i/o and cpu

Draw a scheduling chart to show how the I/O and CPU are allocated and compute the average turnaround times for the CPU-bound and I/O bound task. Use the following table to keep track of all events and Ready/Blocked (I/O) queues.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd