| 1 | 1. Open a terminal on the realtime computer that will run the WAM. |
| 2 | 1. Checkout a copy of the libbarrett library: |
| 3 | {{{ |
| 4 | svn co http://web.barrett.com/svn/libbarrett/branches/1.x/ ~/libbarrett |
| 5 | }}} |
| 6 | 1. Use the "cmake" program (http://www.cmake.org/cmake/help/cmake2.6docs.html) to generate Makefiles for your system: |
| 7 | {{{ |
| 8 | cd ~/libbarrett/ |
| 9 | cmake . <-- IMPORTANT: Notice the '.' at the end of this command. |
| 10 | }}} |
| 11 | 1. Use the "make" program to compile the library and important calibration utilities: |
| 12 | {{{ |
| 13 | cd ~/libbarrett/ |
| 14 | make |
| 15 | }}} |
| 16 | This creates the following files: |
| 17 | * src/libbarrett.so |
| 18 | * programs/bt-wam-gravitycal |
| 19 | * programs/bt-wam-zerocal |
| 20 | 1. Compile an example program: |
| 21 | {{{ |
| 22 | cd ~/libbarrett/examples/ |
| 23 | make ex01_initialize_wam |
| 24 | }}} |
| 25 | This uses the "examples/ex01_initialize_wam.cpp" file to create the "examples/ex01_initialize_wam" program. |
| 26 | 1. Run the program: |
| 27 | {{{ |
| 28 | cd ~/libbarrett/examples/ |
| 29 | ./ex01_initialize_wam |
| 30 | }}} |