下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、* Thisexampleexplainshowtoperformthehand-eyecalibrationfor* aSCARArobot.Inthiscase,thecameraisattachedtotherobottool* andthecalibrationobjectisstationarywithrespecttotherobot.*Providethedescriptionfileofthecalibrationplateandthe*cameraparametersofthepreviouslycalibratedcamera* 本示例說明如何執(zhí)行SCARA機(jī)器人的手眼校準(zhǔn)
2、。在這種情況下,照相機(jī)附接到機(jī)器人工具,校準(zhǔn)對象相對于機(jī)器人是靜止的。* 提供校準(zhǔn)板的描述文件和以前校準(zhǔn)的攝像機(jī)的攝像機(jī)參數(shù)CalibObjDescr:='calibrate_hand_eye_scara_setup_01_calplate.cpd'CameraParam:=0.004938,-10379.136,4.65138e-006,4.65e-006,617.294,534.687,1280,1024dev_close_window()dev_open_window_fit_size(0,0,1280,1024,640,-1,WindowHandle)set_displ
3、ay_font(WindowHandle,14,'mono','true','false')dev_update_off()* Acquirecalibrationimagesandcorrespondingrobotposes* 獲取校準(zhǔn)圖像和相應(yīng)的機(jī)器人姿勢* Createanewcalibrationmodelcreate_calib_data('hand_eye_scara_moving_cam',1,1,CalibDatalD)create_calib_data('hand_eye_scara_moving_ca
4、m',1,1,CalibDatalD1)* Setthecameraparametersinthecalibrationmodelset_calib_data_cam_param(CalibDataID1,0,'area_scan_division',CameraParam)set_calib_data_cam_param(CalibDataID,0,'area_scan_division',CameraParam)* Setthecalibrationplateinthecalibrationmodel* 在校準(zhǔn)模型中設(shè)置校準(zhǔn)板set_calib_da
5、ta_calib_object(CalibDataID,0,CalibObjDescr)forIndex:=1to10by1*Readthecalibrationimageread_image(CalibImage,'3dmachinevision/handeye/scaramovingcamsetup01calibJ_I_'+Index$'02')* Readthecorrespondingrobotpose(poseofthetoolinthe* robotbasecoordinatesystem)* 讀取相應(yīng)的機(jī)器人姿勢(機(jī)器人基座坐標(biāo)系中的刀具姿態(tài))re
6、ad_pose('scara_moving_cam_setup_01_tool_in_base_pose_'+Index$'02'+'.dat',ToolInBasePose)*Settherobotposeinthecalibrationmodelset_calib_data(CalibDatalD,'tool',Index,'tool_in_base_pose',ToolInBasePose)* Determinetheposeofthecalibrationplateinthecamera* coordina
7、tesystemandsettheposeinthecalibrationmodel* 確定相機(jī)坐標(biāo)系中校準(zhǔn)板的姿態(tài),并在校準(zhǔn)模型中設(shè)置姿態(tài)find_calib_object(CalibImage,CalibDataID,0,0,Index,)*Visualizedev_display(CalibImage)get_calib_data_observ_pose(CalibDataID,0,0,Index,ObjInCameraPose)disp_caltab(WindowHandle,CalibObjDescr,CameraParam,ObjInCameraPose,1)disp_messag
8、e(WindowHandle,'Calibrationimage'+Index+'of10','window',12,12,'black','true')wait_seconds(0.2)endfordisp_continue_message(WindowHandle,'black','true')stop()*2.Performthehand-eyecalibrationcalibrate_hand_eye(CalibDatalD,Errors)* 執(zhí)行手眼校準(zhǔn)* Getthere
9、sultofthecalibration,i.e.,theposeof* therobotbaseinthecameracoordinatesystem* 獲取校準(zhǔn)結(jié)果,即攝像機(jī)坐標(biāo)系中機(jī)器人基座的姿態(tài)get_calib_data(CalibDataID,'camera',0,'tool_in_cam_pose',ToollnCamPosePre)* Freethecalibrationmodelclear_calib_data(CalibDataID)* Visualizedisp_preliminary_result(WindowHandle,ToolInC
10、amPosePre,Errors)disp_continue_message(WindowHandle,'black','true')stop()* 3.Fixtheposeambiguity* WhencalibratingaSCARArobot,itisimpossibletodetermine* allposeparametersunambiguously.Incaseofamoving* camera,theZtranslationofObjInBasePosecannotbedetermined.* Therefore,itisnecessarytof
11、ixtheunknowntranslationin* Zbymovingtherobottoaposeofknownheightinthecamera* coordinatesystem.Becausenormallythecameradoesnotsee* theobjectifthetoolismovedtotheobject,therobotis* movedtotwoposes.Forthis,thecalibrationplateisplaced* atanarbitraryposition.Therobotisthenmanuallymovedsuch* thatthecamera
12、canobservethecalibrationplate.Now,animage* ofthecalibrationplateisacquiredandtherobotposeis* queried(->ToolInBasePoseRef1).Fromtheimage,theposeofthe* calibrationplateinthecameracoordinatesystemcanbe* determined(->ObjInCamPoseRef1).Afterwards,thetoolofthe* robotismanuallymovedtotheoriginoftheca
13、librationplate* (->ToolInBasePoseRef2).Thesethreeposesandtheresultofthe* calibration(ToolInCamPosePre)canbeusedtofixthe* Zambiguitybyusingtheprocedurefix_scara_ambiguity_moving_cam:* 校準(zhǔn)SCARA機(jī)器人時(shí),無法明確地確定所有姿態(tài)參數(shù)。在移動(dòng)攝像機(jī)的情況下,不能確定ObjInBasePose的Z平移。* 因此,需要通過在機(jī)器人坐標(biāo)系中將機(jī)器人移動(dòng)到已知高度的姿勢來固定Z中的未知翻譯。因?yàn)橥ǔG闆r下,* 如果將
14、工具移動(dòng)到物體上,相機(jī)不會看到物體,則機(jī)器人將移動(dòng)到兩個(gè)姿勢。為此,校準(zhǔn)板被放置在任意位置。* 然后手動(dòng)移動(dòng)機(jī)器人,使得相機(jī)可以觀察校準(zhǔn)板?,F(xiàn)在,獲取校準(zhǔn)板的圖像,* 并查詢機(jī)器人姿勢(->ToolInBasePoseRefl)。從圖像中可以確定攝像機(jī)坐標(biāo)系中校準(zhǔn)板的姿態(tài)* (->ObjInCamPoseRefl)。然后,將機(jī)器人的工具手動(dòng)移動(dòng)到校準(zhǔn)板的原點(diǎn)* (->ToolInBasePoseRef2)。這三個(gè)姿勢和校準(zhǔn)結(jié)果(ToolInCamPosePre)read_image* 可用于通過使用過程fix_scara_ambiguity_moving_cam來修復(fù)Z模糊性
15、:(ImageRef1,'3dmachinevision/handeye/scaramovingcamsetup01calibJ_I_ref_1')get_calib_plate_pose(ImageRef1,CameraParam,CalibObjDescr,ObjInCamPoseRef1)read_pose('scara_moving_cam_setup_01_tool_in_base_pose_ref_1.dat',ToolInBasePoseRef1)read_pose('scara_moving_cam_setup_01_tool_in_ba
16、se_pose_ref_2.dat',ToolInBasePoseRef2)(ToolInCamPosePre,ToolInBasePoseRef1,0,0,ZCorrection,fix_scara_ambiguity_moving_camObjInCamPoseRef1,ToolInBasePoseRef2,ZCorrection)set_origin_pose(ToolInCamPosePre,ToolInCamPose)* Visualizedisp_final_results(WindowHandle,ToolInCamPosePre,ToolInCamPose)disp_e
17、nd_of_program_message(WindowHandle,'black','true')* Afterthehand-eyecalibrationisperformed,theresultingpose* ToolInCamPosecanbeusedinroboticgraspingapplications:* Letusassumethatthecameraacquiresanimageoftheobjectthat* shouldbegrasped.Thisimagewastakenatacertainrobotpose* (->ToolI
18、nBasePose).Fromtheimage,theposeoftheobjectinthe* cameracoordinatesystemmustbedetermined(->ObjInCamPose)by* usingimageprocessing.* Basedonthesetwoposesandtheresultofthecalibration* (ToolInCamPose),therobotposecanbecomputedthatisnecessary* tograsptheobject(->ObjInBasePose):*執(zhí)行手眼校準(zhǔn)后,所得到的姿勢ToolInCamPose可用于機(jī)器人掌握應(yīng)用:讓我們假設(shè)相機(jī)獲取應(yīng)掌握的物體的圖像。該圖像是在某個(gè)機(jī)器人姿勢(->ToolInBasePose)拍攝的。從圖像中,必須通過使用圖像處理來確定攝像機(jī)坐標(biāo)系中物體的姿態(tài)(->ObjInCamPose)。*基于這兩種姿勢和校準(zhǔn)結(jié)果(ToolInCamPose
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 電腦配送合同范本
- 房屋合建設(shè)協(xié)議書
- 糧食代烘干協(xié)議書
- 給商城供貨協(xié)議書
- 租賃轉(zhuǎn)包合同范本
- 儲蓄銀行協(xié)議書
- 油管供貨合同范本
- 戀愛合同合法協(xié)議
- 代支付合同協(xié)議
- 電腦培訓(xùn)合同范本
- 《阿拉善右旗阿拉騰敖包鐵礦、螢石礦開采方案》評審意見書
- 國際胰腺病學(xué)會急性胰腺炎修訂指南(2025年)解讀課件
- 2025年《稅收征收管理法》新修訂版知識考試題庫及答案解析
- 帶隙基準(zhǔn)電路的設(shè)計(jì)
- 2025年《廣告策劃與創(chuàng)意》知識考試題庫及答案解析
- 壓力管道安裝交叉作業(yè)方案
- 2025年副高消化內(nèi)科試題及答案
- 九年級上冊《道德與法治》期中必背大題
- 2025年幼兒教育政策和法規(guī)試題(卷)附答案
- 協(xié)助老年人洗浴
- 2025年骨質(zhì)疏松知識考試練習(xí)題及答案
評論
0/150
提交評論