Gazebo中的Joint驱动API

1. 位置驱动API

1.1. SetPosition

virtual bool SetPosition (const unsigned int _index,const double _position, const bool _preserveWorldVelocity = false )	

说明

The child links of this joint are updated based on desired position.

And all the links connected to the child link of this joint except through the parent link of this joint moves with the child link.

驱动该 Joint中的Child Links至期望位置。

除了该Joint的Parent Link之外,所有连接到该Joint的Child Link上的Links都将与Child Link一起移动。


参数

参数说明
[in] _indexIndex of the joint axis (degree of freedom).
该Joint的Axis索引号(自由度)
[in] _positionPosition to set the joint to. unspecified, pure kinematic teleportation.
该Joint所要设置到位置,忽略运动学。
[in] _preserveWorldVelocityIf true, the velocity of the child link with respect to the world frame will remain the same after setting the position. By default this is false, which means there are no guarantees about what the child link’s world velocity will be after the position is changed (the behavior is determined by the underlying physics engine).
如果为true,则在设置位置后Chilid Link相对于World Frame的速度将保持不变。 默认情况下为false,这意味着无法保证位置更改后Child Link在World下的速度是多少(行为由基础物理引擎决定)。

注意

{Only ODE and Bullet support _preserveWorldVelocitybeing true.}

{仅ODE和Bullet支持_preserveWorldVelocity为true。}


返回值

returns true if operation succeeds, false if it fails.

true-操作成功,false-操作失败。


Reimplemented in DARTJoint, ODEJoint, SimbodyJoint, and BulletJoint.

在DARTJoint, ODEJoint, SimbodyJoint和BulletJoint中实现。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值