APP下载

基于OpenGL的机械臂运动学仿真方案

2020-12-23朱森光

微型电脑应用 2020年11期
关键词:机械臂仿真

朱森光

摘 要:使用OpenGL技术建立机械臂的三维模型,通过C++编程技术计算机械臂上的机械手末端作直线或曲线运动时对应的机械臂各关节角度的变化数据,使用这些角度数据去动态绘制机械臂三维模型实现机械臂运动的动画效果,机械臂运动时将轨迹数据和对应的关节角度数据记录下来供后续分析为机械臂设计和现场应用中的轨迹规划提供理论依据从而达到了运动学仿真的目的。

关键词:机械臂;机械手;运动学;工具中心点;OpenGL;仿真

中图分类号:TP242

文献标志码:A

文章编号:1007-757X(2020)11-0118-05

Abstract:OpenGL technology is used to establish the 3D model of the robotic arm. The C++ programming technique is used to calculate the changing data of the joint angle of the arm when the manipulator end on the arm is used for linear or curved motion. These angle data are used to dynamically draw the 3D model of the robotic arm, and output animation effect of the robot arm movement. The trajectory data and the corresponding joint angle data are recorded. They can be used for the subsequent analysis and provide a theoretical basis for the trajectory planning in the robot arm design and field application. Thereby it achieves the purpose of kinematics simulation.

Key words:robotic arm;manipulator;kinematics;TCP;OpenGL;simulation

0 引言

随着工业4.0时代的到来,越来越多的工厂使用机械臂代替人进行枯燥和重复性的劳动。机械臂实体结构复杂、体积庞大且价格昂贵,由于机械臂是运动装置使用不当可能还会带来一定的危险。借助于计算机图形仿真技术,通过电脑仿真研究机械臂成为一种既经济又安全的方法,本研究基于OpenGL编程技术[1-2]实现了一种机械臂运动学仿真的方案,可以让用户无需购买昂贵的机械臂实体,仅凭一台普通的电脑即可达到分析机械臂运动学特征和论证项目可行性的目的。

1 机械臂建模

建立机械臂模型是实现对机械臂运动学进行仿真研究的重要前提,本研究将以典型的六轴联动机械臂为例进行介绍,使用OpenGL技术建立的一个机械臂简单模型,如图1所示。

在图1中,在关节1处建立一个大地坐标系XYZ,关节1可以绕Y轴旋转;在关节2处建立坐标系X1Y1Z1,关节2可以绕Z1轴旋转……

登录APP查看全文

猜你喜欢

机械臂仿真
基于智能车技术的图书馆书籍整理机器人
机械臂平面运动控制与分析
机械臂工作空间全局相对可操作度图的构建方法
一种帮助幼儿车内脱险应急装置的仿真分析
人机交互课程创新实验
Buck开关变换器的基本参数设计及仿真分析
试析PLC控制下的自动化立体仓库仿真情况分析
基于MADYMO的航空座椅约束系统优化设计
中国体态假人模型与FAA Hybrid Ⅲ 型假人模型冲击差异性分析
定点巡视与带电清理平台的研究与设计