gpt4 book ai didi

Alternative to JointController::SetPositionPID in Gazebo Garden(Gazebo花园中JointController::SetPositionPID的替代方案)

转载 作者:bug小助手 更新时间:2023-10-25 15:27:23 27 4
gpt4 key购买 nike



I'm trying to port an old Gazebo plugin from Gazebo classic to Gazebo Garden, and I have got stuck trying to control joints with a PID.

我试图将一个旧的Gazebo插件从Gazebo经典版本移植到Gazebo花园,但我试图用一个PID控制关节时被卡住了。


In classic Gazebo I can write something like:

在经典的Gazebo中,我可以写下这样的话:


auto controller = model->GetJointController();
common::PID pid(P, I, D, imax, imin, cmdMax, cmdMin);
controller->SetPositionPID(joint_name, pid);

But in Gazebo Garden, not even the JointController class appears to exist.

但在Gazebo Garden中,甚至JointControler类似乎都不存在。


I have figured out I can control joints via JointForceCmd instead, so perhaps I could implement the rest myself, but is there anything closer to the classic way of doing things?

我已经知道我可以通过JointForceCmd来控制关节,所以也许我可以自己实现其余的操作,但有没有更接近经典的操作方式呢?


更多回答
优秀答案推荐
更多回答

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com