Next: About this document ...
Up: Assessment
Previous: Extensions of the Robot's
In this project we will practice adding new features to a C++ program
so it can solve a more complex problem.
Consider the robot arm.
With the information in the link diagram, plus the values of the angles
of the robot arm joints, it is possible to determine the
X-Y positions of the robot arm joints.
- Determine the equations for locating the elbow and wrist joints.
- Copy the file rbtjnts.cpp into the file
robotEW.cpp and save it in your directory cs2503Programs.
- Change directory into your cs2503Programs directory.
- Modify the robotEW.cpp program as follows:
- The program shall ask the user for the current angles of the
robotic arm shoulder, and elbow joints. The angles shall be input in
degrees. The angles shall be input as real numbers.
- The program shall use the input angles and the values shown
in the link diagram to compute the positions of the
robotic arm elbow, and wrist joints.
- The program shall print out the X and Y coordinates of the
robotic arm elbow, and wrist joints.
- Modify the program robotEW.cpp so that it prints out to the screen
the input it received.
Make sure that when it prints, it identifies the values it is printing.
- Modify the program so that it reads from a file named robotEWin.txt.
Further modify your program so that all printing is done to
a file named robotEWresults.txt.
- Once you have saved the file robotEW.cpp , and it works correctly,
handin the files robotEW.cpp , robotEWin.txt, and
robotEWresults.html.
- Copy the files robotEWin.txt, and robotEWresults.txt
into your public_html/cs2503Reports directory.
- Change directory to your public_html/cs2503Reports directory.
- Write a file robotArmEqs.html that describes the
equations required for computing the elbow and wrist joints.
Provide a description of each parameter, and
identify which are known and which are determined.
- Create the report file robotEWreport.html which explains the project
and includes relative links to robotArmEqs.html, robotEWin.txt, and
robotEWresults.txt.
- Modify your cs2503.html file to place a link to the report file.
- Handin the report file robotEWreport.html and your modified
cs2503.html.
- Clean up your home directory and any of your public areas to
make sure that no files containing your program or portion
thereof are accessible by any user.
Next: About this document ...
Up: Assessment
Previous: Extensions of the Robot's
J. C. Diaz
2004-01-19