3D Robot Manipulator Simulation using OpenGL and GLUT
Made by YANG (2023/01/31)
This project implements a 3D robot manipulator simulation with inverse kinematics using OpenGL and GLUT. The simulation includes multiple versions with different degrees of freedom and provides real-time visualization of robot arm movements.
- 3D Visualization: Real-time OpenGL rendering of robot manipulator
- Inverse Kinematics: Automatic calculation of joint angles for target positions
- Interactive Controls: Camera movement and angle adjustment
- Multiple Versions: Different degrees of freedom implementations
- Trajectory Display: Visual representation of arm movement paths
code/
├── 3.0/ # Final version (4+1 DOF manipulator)
├── 20t1126n(YANG GUANGZE)/
│ ├── 1_0/ # 3 DOF manipulator
│ └── 2_0/ # 4 DOF manipulator
├── sample/ # Sample programs
├── test/ # Test programs
└── makefile/ # Build configuration
setup/ # GLUT setup files
OpenGL_study/ # OpenGL learning materials
- Version 1.0: 3次元3自由度ロボットマニピュレータ (3D 3-DOF Robot Manipulator)
- Version 2.0: 3次元4自由度ロボットマニピュレータ (3D 4-DOF Robot Manipulator)
- Version 3.0: 最終版 (Final version with 4+1 DOF)
| Key | Function |
|---|---|
F1 |
実行 (Execute/Run simulation) |
W S A D Q E |
カメラ移動 (Camera movement) |
↑ ↓ ← → |
カメラ角度 (Camera angle) |
0 |
原点復帰 (Return to origin) |
- Compiler: Borland C++ Compiler (BCC32)
- Graphics: OpenGL and GLUT libraries
- OS: Windows (tested on Windows NT/95/XP and later)
-
Install GLUT: Run setup scripts in
setup/directorycd setup glut-setup.bat bcc-setup.bat -
Set Environment: Configure Borland compiler paths
cd code/makefile setpath.bat
cd code/3.0
makeinvK3d.exe- Inverse Kinematics: Jacobian matrix-based calculation
- Sampling Time: 0.005 seconds
- Simulation Time: 15.0 seconds
- Control Gain: KP = 20.0
- Target Position: Configurable in source code
invK3d.c: Main simulation programinvK3d_l.c: Inverse kinematics libraryglwindow.c: OpenGL window managementglshapes.c: 3D shape renderingarmIK.dat: Arm parametersangles.dat: Joint angle output
- 工夫点.pdf: Technical improvements and features (Japanese)
OpenGL_study/doc/: OpenGL learning materials
MIT License - see LICENSE file for details.
UTF-8