Implement the control mechanism for the robot, Programming Languages

Assignment Help:

You must implement the control mechanism for the robot arm so that it can safely move the blocks from the source pile to their destination, without colliding with any obstacles or other blocks that have already been moved.

The control mechanism for the robot is implemented in the control() method of the RobotControl class, this has been divided up into three separate methods for you to work on - controlPartA(), controlPartB() and controlPartC() so there is a new method for each scenario. There are three scenarios in total for which you need to implement control mechanism for.

Scenario A--Fixed size blocks and obstacles

Initially you may assume that the obstacles and blocks will be of fixed size--the blocks are of heights 1, 2, 1 and 2 (the last block is always at the top of the source pile) and all obstacles are of height 4.

The robot will start off with code in the control() method, which demonstrates how the different movements may be combined to transport the first block from the source pile to the its target position.

You will need to update the control method so that it picks up each block and moves it to one of the obstacles, starting from the last obstacle and working backwards.

You can do this by repeating the code segment for moving the first block for each new block and making the necessary adjustments to the degree the arm moves in each direction, to reflect  the location of the top of the next block in the source pile, and the target pile that particular block should be dropped on (if you can do it more efficiently then that's okay too).


Related Discussions:- Implement the control mechanism for the robot

Program to finds central individuals in arbitrary networks, Identifying the...

Identifying the Central Individual in a Social Network 1. Introduction You have just been hired by a social networking company! The division you are working in is particul

Program for hold details of all the cabins for travellers, Scenario A ca...

Scenario A campsite provides cabins for travellers to stay in overnight. A 'cabin' is a small wooden hut, containing bunk beds, table and chairs, a heater, and a small cookin

Kinect help, My kinect hand cursor only works for main menu but when it go...

My kinect hand cursor only works for main menu but when it goes to another page it wouldn''t work.. especially when there is for camera feed

Draw data structure and analyse on xml, The scenario As an XML expert y...

The scenario As an XML expert you are required to model a system for an online furniture shop. After an interview with the shop manager you have the following information: T

Document type definition schema, Create a DTD which describes the structure...

Create a DTD which describes the structure of the document which you prepared in Question 1. Make sure that you use all appropriate DTD ingredients to constrain valid documents as

Write a program for random number generator, * Comments in your code are re...

* Comments in your code are required * Main Program Operation:  # Your program should first prompt the user for an integer to seed the random number Generator. "Enter an seed

Project on automatic payments to employees, A large logistics company requi...

A large logistics company requires a software system to support the business processes associated with managing shift patterns of employees and making the associated payments. The

Unix, 1. Write a shell script to locate executable files. This script takes...

1. Write a shell script to locate executable files. This script takes a list of file names from the command line and determines which would be executed had these names been given a

Implement a two-dimensional table in prolog, Implement a two-dimensional ta...

Implement a two-dimensional table in Prolog. Your program will contain: An insert_entry predicate that takes a table, row, column and an entry and inserts the entry at the g

Write Your Message!

Captcha
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