考虑代理质量的转向行为

发布于 2024-11-30 00:02:22 字数 544 浏览 1 评论 0原文

我正在模拟机器人上使用网络机器人中纸质转向行为的到达行为,

 target_offset = target - position
 distance = length (target_offset)
 ramped_speed = max_speed * (distance / slowing_distance)
 clipped_speed = minimum (ramped_speed, max_speed)
 desired_velocity = (clipped_speed / distance) * target_offset
 steering = desired_velocity - velocity

我遇到的问题是,如果我给它一个很大的减速距离,它就会起作用,并且机器人会以几毫米的误差到达目标,但是由于减速距离太大,需要很长时间才能到达目的地,当到达最后几厘米时,它的行进速度太慢,需要几秒钟才能稳定下来。如果我给它一个较小的减速距离,它就会开始超越目标并开始像寻找一样。我猜测这是因为公式没有考虑机器人的质量? desired_velocity 变为 0,但不会施加任何制动力。

I am using the arrive behaviour from the paper steering behaviours in webots on a simulated robot,

 target_offset = target - position
 distance = length (target_offset)
 ramped_speed = max_speed * (distance / slowing_distance)
 clipped_speed = minimum (ramped_speed, max_speed)
 desired_velocity = (clipped_speed / distance) * target_offset
 steering = desired_velocity - velocity

The problem I am experiencing is that if I give it a big slowing distance it works and robots arrives at its target with couple mm of error, however since slowing distance is so big it takes a long time to reach its destination by the time it reaches last couple of cms it is travelling so slow that it takes a couple of seconds to settle. If I give it a smaller slowing distance it begins to overshoot the target and begins acting like seek. I am gussing this is due to the formula not taking into account the mass of the robot? desired_velocity goes to 0 but never applies any breaking force.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神也荒唐 2024-12-07 00:02:22

可能您想看看典型的PID控制
质量影响速度,请考虑您之前的速度。

希望有帮助。

may be you want to have a look at the typical PID control
mass affects speed, take your previous speed into consideration.

hope it helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文