ITEC 4270 Object Oriented Python Code Robot Car Assignment

ITEC 4270 Object Oriented Python Code Robot Car Assignment

[ad_1]

ITEC 4270 Object Oriented Python Code Robot Car Assignment

Write Python code including object-oriented classes for a robot car’s major components: Controller(Raspberry Pi), Sensor(Anti Collision Sensor, End effector(Wheel), and Actuator(Motor).

Each of these component classes will be used to create objects that will be a part of the car robot’s type. At least one object of each of the component types must be a member of the car’s class: one robot object will have one controller and at least one object of the rest of the component classes. These component objects will be data variables of the car’s class meaning that when a car object is created, it will contain a software representation of each component, making the class a proper simulation.

(a) Define a constructor function that defines and initializes the data variables
(b) Declare objects for at least one of each robot component described as data variables
(c) Add code to make your car trigger its controller to activate its other components
(d)Add code to make your car read the value of its sensor

The Controller class:
(a) Must declare a function that can read data from a sensor object. The object is
passed in as a parameter to the function
(b) Must declare a function that sends a signal to an actuator object. The object is
passed in as a parameter to the function
i. It must print out the label/type of the controller sending the signal, and the
type of the actuator receiving it, and the ’signal’ being sent (use a string like
’go’ if you wish)
(c) Must define a class data variable for the type/label of the controller (for example
’microprocessor’). Make it a string type. Object Oriented Python Code Robot Car Assignment

The Sensor class:
(a) must declare a class data variable that stores the type of sensor, as a string
(b) must declare a class data variable that hold the data value for this sensor
(c) must define a function that returns data value retrieved from this sensor
In the function body, print out what is happening

The Actuator class:
(a) must declare a class data variable that stores the type of this actuator as a string
(e.g. ’motor’)
(b) must declare a class data variable to store the end effector object that this actuator
will actuate
(c) must declare a function that applies motion to an end effector object that is passed
in as a parameter.
In the function print out what is happening to the object

The End Effector class:
(a) must declare a class data variable that stores the type of this effector as a string
(e.g. ’wheel’)
(b) must declare a function that manipulates a real-world object that is passed in as
a parameter
The real world object can be stored as an object or as a string, at your option.
In the function body code, print out what is happening to the object

ITEC 4270 Object Oriented Python Code Robot Car Assignment

Need Help with a similar Assignment?

The post ITEC 4270 Object Oriented Python Code Robot Car Assignment appeared first on homeworkcrew.

[ad_2]

Source link

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top