+1-316-444-1378

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

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