




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
智能机器人智能机器人 实验报告实验报告 实验四实验四 连杆操作连杆操作 实验目的实验目的 理解 3D 点云运算 能够熟练编程实现连杆的空间运动模拟 实验条件实验条件 Ubuntu 系统 PCL 库 Opencv 库 实验原理实验原理 在对机器人运动学中旋转及平移操作进行充分理解的基础上 综 合运用旋转平移组合等操作 实现连杆移动的仿真 如下图所示 图中 3D 点云为单个连杆 运用 opencv 及 PCL 操作该连杆 实现两 连杆的连接以及旋转仿真 连杆 1连杆 2 连杆 1 连杆 2 45 度 85 度 实验内容实验内容 完成下列程序 要求使用完成下列程序 要求使用 opencvopencv 完成点云的旋转平移等操作 并将完成点云的旋转平移等操作 并将 操作后的点云转换为操作后的点云转换为 pclpcl 的的 PointCloudPointCloud 类型返回 以便之后的程序类型返回 以便之后的程序 显示结果 显示结果 pcl PointCloudpcl PointCloud linkageTransformationlinkageTransformation pcl PointCloud pcl PointCloud pointcloudinput pointcloudinput pcl PointCloudpcl PointCloud pointcloudoutput pointcloudoutput pleaseplease finishfinish thisthis programprogram toto implementimplement 3D3D pointspoints linkagelinkage Transformation Transformation input input pointcloudinputpointcloudinput output output pointcloudoutputpointcloudoutput description description calculatecalculate pointcloudoutputpointcloudoutput byby TransformatingTransformating linkagelinkage pointpoint cloudcloud cv Matcv Mat l1l1 cv Mat 3 pointcloudinput size CV 32F cv Mat 3 pointcloudinput size CV 32F cerrcerr endl endl for intfor int i 0 i pointcloudinput size i i 0 i pointcloudinput size i l1 at 0 l1 at 0 i i pointcloudinput at i x pointcloudinput at i x l1 at 1 l1 at 1 i i pointcloudinput at i y pointcloudinput at i y l1 at 2 l1 at 2 i i pointcloudinput at i z pointcloudinput at i z cerrcerr endl endl cv Matcv Mat l2l2 cv Mat 3 pointcloudinput size CV 32F cv Mat 3 pointcloudinput size CV 32F for intfor int i 0 i pointcloudinput size i i 0 i pointcloudinput size i l2 at 0 l2 at 0 i i pointcloudinput at i x pointcloudinput at i x l2 at 1 l2 at 1 i i pointcloudinput at i y pointcloudinput at i y l2 at 2 l2 at 2 i i pointcloudinput at i z pointcloudinput at i z cerrcerr endl endl cv Matcv Mat R1R1 cv Mat 3 3 CV 32F cv Mat 3 3 CV 32F R1 at 0 0 cos 3 14 4 R1 at 0 0 cos 3 14 4 R1 at 1 0 sin 3 14 4 R1 at 1 0 sin 3 14 4 R1 at 2 0 0 R1 at 2 0 0 R1 at 1 0 sin 3 14 4 R1 at 1 0 sin 3 14 4 R1 at 1 1 cos 3 14 4 R1 at 1 1 cos 3 14 4 R1 at 1 2 0 R1 at 1 2 0 R1 at 2 0 0 R1 at 2 0 0 R1 at 2 1 0 R1 at 2 1 0 R1 at 2 2 1 R1 at 2 2 1 l1l1 R1R1 l1 l1 cerrcerr endl endl cv Matcv Mat R2R2 cv Mat 3 3 CV 32F cv Mat 3 3 CV 32F R2 at 0 0 cos 1 48 R2 at 0 0 cos 1 48 R2 at 1 0 sin 1 48 R2 at 1 0 sin 1 48 R2 at 2 0 0 R2 at 2 0 0 R2 at 1 0 sin 1 48 R2 at 1 0 sin 1 48 R2 at 1 1 cos 1 48 R2 at 1 1 cos 1 48 R2 at 1 2 0 R2 at 1 2 0 R2 at 2 0 0 R2 at 2 0 0 R2 at 2 1 0 R2 at 2 1 0 R2 at 2 2 1 R2 at 2 2 1 l2l2 R2R2 l2 l2 cerrcerr endl endl for intfor int i i 0 0 i i pointcloudinput size i pointcloudinput size i l2 at 0 i l2 at 0 i 8 0f 8 0f cv Matcv Mat c c cv Mat 3 cv Mat 3 pointcloudinput size CV 32F pointcloudinput size CV 32F for intfor int i i 0 0 i i pointcloudinput size i pointcloudinput size i c at 0 i c at 0 i 2 344 2 344 c at 1 i c at 1 i 5 656 5 656 c at 2 i c at 2 i 0 0 l2l2 l2l2 c c pcl PointCloudpcl PointCloud pointcloudl1 pointcloudl2 pointcloudl1 pointcloudl2 pointcloudl1 resize l1 cols pointcloudl1 resize l1 cols pointcloudl2 resize l2 cols pointcloudl2 resize l2 cols for intfor int i i 0 0 i l1 cols i i l1 cols i pointcloudl1 at i xpointcloudl1 at i x l1 at 0 i l1 at 0 i pointcloudl1 at i ypointcloudl1 at i y l1 at 1 i l1 at 1 i pointcloudl1 at i zpointcloudl1 at i z l1 at 2 i l1 at 2 i pointcloudoutput push back pointcloudl1 at i pointcloudoutput push back pointcloudl1 at i for intfor int i i 0 0 i l2 cols i i l2 cols i pointcloudl2 at i xpointcloudl2 at i x l1 at 0 i l1 at 0 i pointcloudl2 at i ypointcloudl2 at i y l1 at 1 i l1 at 1 i pointcloudl2 at i zpointcloudl2 at i z l1 at 2 i l1 at 2 i pointcloudoutput push back point
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中国移动昭通市2025秋招技术岗专业追问清单及参考回答
- 黄山市中石油2025秋招笔试模拟题含答案数智化与信息工程岗
- 中国广电滨州市2025秋招笔试行测题库及答案互联网运营
- 国家能源浙江地区2025秋招笔试言语理解与表达题专练及答案
- 梧州市中石油2025秋招笔试模拟题含答案电气仪控技术岗
- 三门峡市中石化2025秋招笔试模拟题含答案炼化装置操作岗
- 珠海市中储粮2025秋招基建工程岗高频笔试题库含答案
- 临夏回族自治州中石油2025秋招面试半结构化模拟题及答案新材料与新能源岗
- 白酒营销策划方案
- 国家能源南充市2025秋招面试典型题目及答案
- 厨房规划和设计行业营销策略方案
- 综合仓储物流服务合同
- 高中英语:倒装句专项练习(附答案)
- 土地承包经营权长期转让协议
- 成人糖尿病食养指南(2023年版)
- 地方病防治技能理论考核试题
- 四川省高等教育自学考试自考毕业生登记表001汇编
- (2024版)初级茶叶加工工理论知识考试题库(含答案)
- 北京市-实验动物上岗证培训考试题库
- 不锈钢加工及安装合同集合
- 妊娠期高血压用药
评论
0/150
提交评论