开发者

Steering behaviours accounting for the mass of the agent

开发者 https://www.devze.com 2023-03-28 16:28 出处:网络
I am using the arrive behaviour from the paper steering behaviours in webots on a simulated robot, target_offset = target - position

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开发者_Python百科 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号