配置UR5ForceControl

1.软件源代码来自github:

2.配置gsl库文件:sudo apt-get install libgsl-dev

注:出现无法定位软件包,则sudo apt-get update

3.更新库:sudo ldconfig

4.解决方法三:程序不使用libGL库

修改/opt/Qt5.7.0/5.7/gcc_64/mkspecs/common/linux.conf

把QMAKE_LIBS_OPENGL = -lGL注释掉

 

 

4.配置ros环境,参考上一篇ros安装环境配置

5.编译生成:先make clean(必须) 在make

6. ./start

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
## UR5 Realtime client Lightweight python library for controlling UR5 robot from Universal Robot family. Robot kinematics are calculated based on the following paper: [tech report](https://smartech.gatech.edu/handle/1853/50782) ### Requirements * UR Control Box (simulated or real) * Tested on UR Robot software 3.5.1 ### Try it out! ```python >>> from realtime_client import RTClient >>> import numpy as np # connect to address 127.0.0.1 and port 30003 >>> rtc = RTClient('127.0.0.1', 30003) # move end effector to joint goal [q1, q2, q3, q4, q5, q6] >>> joint_values = [d * (np.pi / 180) for d in [-90, -90, -90, -90, 89, 5]] >>> rtc.move_j(joint_values) # move end effector to pose goal [x,y,z,rx,ry,rz] (3D translation and 3D rotation) >>> pose = np.array([-0.46481069, -0.18235116, 0.13827986, -1.58136603, -2.69628063, -0.01169701]) >>> rtc.move_l(pose) # velocity-based controller, move to pose goal [x,y,z,rx,ry,rz] >>> pose = np.array([0.470, -0.491, 0.430, 0.13, 3.15, -0.00]) >>> rtc.move_v(pose) # kinematic test >>> from kinematics import KinematicsUR5 >>> from math_tools import pose2tf >>> kin = KinematicsUR5() >>> target_ee = np.array([-1.10586325e-01, -4.86899999e-01, 4.31871547e-01, -1.36273738e-01, -3.12118227e+00, 1.18929713e-03]) >>> target_pose = pose2tf(target_ee) >>> solutions = kin.inv_kin(target_pose) >>> closest_solution = kin.get_closest_solution(solutions, rtc.get_feedback('joint_values')) >>> rtc.move_j(closest_solution) >>> assert np.allclose(rtc.get_feedback('tool_pose'), target_ee) >>> rtc.close_connection() ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值