V-REP教程(十二) 关节力矩控制和物理引擎属性

关节力矩控制

vrep中在达到目标速度之前,输出力矩等于设定的最大力矩

简单写法
在这里插入图片描述
python 简洁写法

    def setJointTorque(joint_handle,torque):
            self.obj_set_force(joint_handle, torque)
            self.obj_set_velocity(joint_handle, self.joints_max_velocity * np.clip(torque, -1, +1))

在这里插入图片描述

物理引擎属性

在这里插入图片描述

全局修改和对特定物体的修改

在这里插入图片描述

在这里插入图片描述
全局的参数不建议修改
要注意的几个参数
1.Friction 明确说了能产生碰撞的物体之间才有摩擦力
2.Restution 恢复系数
3.Linear damping: 线性阻尼:线性运动阻尼值,增加线性阻力,增加稳定性。
4.Angular damping 角度阻尼
5.Sticky contact (only Bullet V2.78): when this item is checked, then contact points will be very strong, but might lead to instabilities. It is recommended to keep this disabled. This feature is not needed for Bullet versions after V2.78
粘性
6.Auto-shrink convex mesh和Custom collision margin factor不用管,默认就好

ODE
重要的只有线性阻尼和角度阻尼

Vortex
功能多了一些
1.Adhesive force: generates glue at the contact. 能让两个物体产生粘性

Newton
1.Linear drag: a linear drag value, which can improve stability.
2.Angular drag: an angular drag value, which can improve stability

joint 参数

在这里插入图片描述
Normal CFM: a constraint force mixing parameter used when away from limits.
Stop CFM: a constraint force mixing parameter at the limits.
超出限位时的阻力

最重要的是Vortex
Joint axis friction关节轴摩擦:允许定义沿着或围绕约束轴的内摩擦。
和拉力成比例Proportional: if true, friction is proportional to the tension in the constraint.
摩擦系数Coefficient: for proportional friction force, the friction is proportional to the tension * coefficient.

  • 5
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值