Question: Will be using arduino board, but a normal c++ visual studios code is fine. Thank you so much! c++ Write a program to control a
Will be using arduino board, but a normal c++ visual studios code is fine. Thank you so much!
c++
Write a program to control a robotic hand. The code must control 5 servo motors (5 fingers).
1) A Robot class with three private data members
a. x component of location of thumb
b. y component of location of all fingers
c. a char type variable "payload" to hold position of robot
2) The robot class must have the following public member functions
a. Default constructor that opens up each finger
b. Constructor that receives three parameters to initialize the private data members.
c. a set and get method for each private data member
d. Include the function print() that prints if the hand is open or closed
e. Function "pinch(int lx, ly) with int return type. A way to make the hand pinch thumb and forefinger together
f. method dropOff (int lx, int ly) with boolean return type. Similar to the pickup() function.
Method to move all fingers/servo motors
g. Method close pinky finger Movef5 with boolean return type.
h. Methode close ring finger Movef4 with boolean return type.
I. Method close middle finger Movef3 with boolean return type.
J. Method close pointer finger Movef2 with boolean return type.
k. Method close thumb Movef1 with boolean return type.
Write an int main function to test operation of hand.
Very confused, so whatever you can come up with that is close is greatly appreciated and will receive a thumbs up!
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
