Question: please do this asap 8 Programming question 1 In python use numpy, opencv, or code your own functions to verify your answers are correct for


please do this asap
8 Programming question 1 In python use numpy, opencv, or code your own functions to verify your answers are correct for parts 1-6. Or you can use c++ with eigen(https://eigen.tuxfamily.org/index.php?title=Main_Page) or install opencv in c++, to verify your answers for parts 1-6. Submit as .py or .cpp file. I should be able to run your code and get the answers for parts 1-6. 9 Programming question 2 Create a class in python or c++ to represent a 2D frame object. Make sure to include at least parent frame, child frame and pose. 1. Write a function for multiplying frames. This should return a new frame object. 2. Write a function that takes as input a point, rotation, and translation, then returns a new point that has been rotated and translated. 3. Write a function that takes from_frame, to_frame, and a point in from frame as input, and returns the point in to_frame. 4. Use your class to verify your answers from part 7. submit the .py or .cpp files you created 7 Frames, translations and rotations Given frames: Frame {A}= universe, Frame {B}={BAR=[cos(135)sin(135)sin(135)cos(135)],APBorg=[34]}, Frame {C}={CBR=[cos(30)sin(30)sin(30)cos(30)],BPCorg=[22]}, Frame {D}={DAR=[cos(0)sin(0)sin(0)cos(0)],APDorg=[33]}, Frame {E}={EAR=[cos(60)sin(60)sin(60)cos(60)],APEorg=[00]} Frame {G}={GFR=[cos(90)sin(90)sin(90)cos(90)],FPGorg=[25]} Given points: AP1=[32],BP2=[86],CP3=[35],DP4=[24],EP5=[.7.7] FP6=[3.142.718],GP7=[34] Questions: 1. Draw the frames and points given above. 2. Compute CAT and GAT. 3. Find DP1 and AP4. 4. Find EP1 and AP5. 5. Find BP1 and AP2. 6. Find FP1 and AP6. 7. Find FP2 and BP6. 8. Find DP5 and EP4. 9. Find CP7 and GP3. A. Apply a rotation of 80 and translate by vector v=[67] to AP1. B. Apply a rotation of 130 and translate by vector v=[42] to CP7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
