Introduction
In the previous page, I described a brief explanation on the kinematics. Here I show you my implementation of the algorithm of a six-axis-arm system in C++.
Demo
Development Environment
- Mac OS X 10.8.4
- Processor:3.06 GHz Intel Core 2 Duo
- Memory:4GB
- Xcode4.6.2 with Apple LLVM 4.2(C++ Language Dialect → C++11, C++ Standard Library → libc++)
- boost-1.54.0(built by Apple LLVM 4.2 compiler)
Source
Here is my source code.
Usage
A file
robot.dat
passed as an argument determines a form of the arm system.
The format of the file is expressed in 1.
Using keyboard,
- 'c' starts the program,
- 'b' inverts the movement of the target sphere,
- 'a' restores the movement,
- and
escape
stops the program.
References
- OpenGL 3Dグラフィックス入門 第2版 三浦憲二郎 朝倉書店 (In Japanese)
0 件のコメント:
コメントを投稿