MOVEIT PYTHON应用:编程实现速度和加速度设置

Moveit!提供一个Python接口用于实现move_group:

import moveit_commander

moveit_commander这个class中,预留了速度和加速度的设置:

def 	set_max_velocity_scaling_factor (self, value)

def 	set_max_velocity_scaling_factor (self, value)

作用分别是 Set a scaling factor for optionally reducing the maximum joint velocity/acceleration. Allowed values are in (0,1]. 这直接对应RVIZ里MotionPlanning–Planning–options中的Velocity Scaling 和Acceleration Scaling。
RVIZ里MotionPlanning

而最大的速度和加速度设置是在robot_moveit_config/config/joint_limits.yaml文件(应该与实际的顶层设置匹配)中:

joint:
	has_position_limits: true 
	min_position: -1.57
	max_position: 1.57
	has_velocity_limits: true
	max_velocity: 1.5
	has_acceleration_limits: false
	max_acceleration: 0.0
	has_jerk_limits: false
	max_jerk: 0
	has_effort_limits: true
	max_effort: 255

也可以在生成robot_moveit_config之前,在urdf的joint tag中提前设置好:

...
	  <joint
	    name="joint_name"
	    type="revolute">
		...
	    <limit
	      lower="0"
	      upper="1.047"
	      effort="20"
	      velocity="${velocity_value}" />
	  </joint>
...

一般来说,urdf的joint tag中设置了的参数会在joint_limits.yaml中显示,否则has_xxx_limits 会显示为false。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值