Handeye_movingcam_calibration

基于halcon的手眼标定

Handeye_movingcam_calibration.hdev   运动相机

1.  由函数gen_caltab( : :XNum, YNum, MarkDist, DiameterRatio, CalPlateDescr, CalPlatePSFile : )生成标定板文件

2.  机器人位姿的获取

handeye_create_robot_poses.hdev例程可写出对应的机器人位姿文件(ToolInBasePose)。调用input_pose_type ()确定机器人位姿的类型,由你的机器人决定你的类型是xyz,zyx,还是zyz。调用input_pose()输入末端的位姿。创建halcon可直接读取的dat文件。

robotpose有很多种输入的形式,最常用的是xyz的输入形式,它表示机械手末端坐标系相对于世界坐标系此即为机器人基准坐标系)的坐标点与三轴旋转角度。同时考虑以下几点:

(1)三轴旋转角度的参考系一直是世界坐标系(绕固定坐标系旋转),不是绕某个轴运动之后的坐标系,且旋转正方向以右手螺旋取得。

(2)相机的xyz轴是被默认规定的,即z轴方向延镜头向外,x轴方向为垂直z 方向向图片的正右方,y轴方向以右手螺旋定则确定。

(3)机械手基坐标(即世界坐标系)的选取中x 轴方向须与摄像头的x 轴方向一致,否则结果会产生一定偏差,同时也不利于标定结果的验证。然后按照此流程重复多遍,得到多组机器人的位姿文件。在HDevelop中对机器人位姿文件的读取可直接调用read_pose函数来实现。


NODES / dummy_handeye (tf/static_transform_publisher) easy_handeye_calibration_server_robot (easy_handeye/robot.py) rviz_yzy_desktop_13220_2121391253788155443 (rviz/rviz) /panda_eob_calib_eye_on_base/ calibration_mover (rqt_easy_handeye/rqt_calibrationmovements) easy_handeye_calibration_server (easy_handeye/calibrate.py) namespace_yzy_desktop_13220_7187112120234573977_rqt (rqt_easy_handeye/rqt_easy_handeye) ROS_MASTER_URI=http://localhost:11311 process[dummy_handeye-1]: started with pid [13245] process[easy_handeye_calibration_server_robot-2]: started with pid [13246] process[panda_eob_calib_eye_on_base/easy_handeye_calibration_server-3]: started with pid [13247] process[panda_eob_calib_eye_on_base/namespace_yzy_desktop_13220_7187112120234573977_rqt-4]: started with pid [13253] process[panda_eob_calib_eye_on_base/calibration_mover-5]: started with pid [13254] process[rviz_yzy_desktop_13220_2121391253788155443-6]: started with pid [13255] [ INFO] [1741851788.148600882]: rviz version 1.14.25 [ INFO] [1741851788.148655286]: compiled against Qt version 5.12.8 [ INFO] [1741851788.148665365]: compiled against OGRE version 1.9.0 (Ghadamon) [ INFO] [1741851788.156082486]: Forcing OpenGl version 0. [INFO] [1741851788.317757]: Loading parameters for calibration panda_eob_calib_eye_on_base/ from the parameters server [ INFO] [1741851788.334001627]: Loading robot model 'panda'... [ INFO] [1741851788.387174978]: Stereo is NOT SUPPORTED [ INFO] [1741851788.387347746]: OpenGL device: llvmpipe (LLVM 12.0.0, 256 bits) [ INFO] [1741851788.387378425]: OpenGl version: 3.1 (GLSL 1.4). Traceback (most recent call last): File "/home/yzy/catkin_ws/devel/lib/easy_handeye/calibrate.py", line 15, in <module> exec(compile(fh.read(), python_script, 'exec'), context) File "/home/yzy/catkin_ws/src/easy_handeye/easy_handeye/scripts/calibrate.py", line 5, in <module> from easy_handeye.handeye_server import HandeyeServer File "/home/yzy/catkin_ws/src/easy_handeye/easy_handeye/src/easy_handeye/handeye_server.py", line 13, in <module> from easy_handeye.handeye_calibration_backend_opencv import HandeyeCalibrationBackendOpenCV File "/home/yzy/catkin_ws/src/easy_handeye/easy_handeye/src/easy_handeye/handeye_calibration_backend_opencv.py", line 4, in <module> import transforms3d as tfs ModuleNotFoundError: No module named 'transforms3d' [panda_eob_calib_eye_on_base/easy_handeye_calibration_server-3] process has died [pid 13247, exit code 1, cmd /home/yzy/catkin_ws/devel/lib/easy_handeye/calibrate.py __name:=easy_handeye_calibration_server __log:=/home/yzy/.ros/log/5385e6f4-ffd7-11ef-8f23-634c3b6e1240/panda_eob_calib_eye_on_base-easy_handeye_calibration_server-3.log]. log file: /home/yzy/.ros/log/5385e6f4-ffd7-11ef-8f23-634c3b6e1240/panda_eob_calib_eye_on_base-easy_handeye_calibration_server-3*.log arguments: Namespace(quiet=False) unknowns: [] [INFO] [1741851789.105648]: Configuring for calibration with namespace: /panda_eob_calib_eye_on_base/ [INFO] [1741851789.107053]: Loading parameters for calibration /panda_eob_calib_eye_on_base/ from the parameters server [ INFO] [1741851789.455667130]: Ready to take commands for planning group panda_arm. [ INFO] [1741851791.668242645]: Loading robot model 'panda'... [ INFO] [1741851791.742404861]: Starting planning scene monitor [ INFO] [1741851791.744487400]: Listening to '/move_group/monitored_planning_scene' [ INFO] [1741851792.017343269]: Constructing new MoveGroup connection for group 'panda_arm' in namespace '' [ INFO] [1741851793.077979909]: Ready to take commands for planning group panda_arm.
03-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值