Hi,
It is possible to let the AGV drive forward as much as possible? The AGV can only rotate on the spot, but when it rotates it could choose between +90 degrees or -90 degrees. Depending on this choice the AGV will travel backward or forward after the rotation. Since traveling backwards is much slower it would in this model be best if the AGV rotates such that it will travel forward after the rotation.
We have been playing with the Turn Around Threshold in the AGV Network. Setting this value below 90 will let the AGV change travel direction all the time. Setting this value above 91 will never let the AGV change direction. You can play a little bit with these numbers in the attached model.
Would there be some kind of setting to let the AGV drive forward as much as possible?
One thing we thought about was to change the rotation in the custom delegate node. But one of the conditions there is:
- The cumulative distances of the z parameters of all addkinematic() calls should be exactly rotation (param(2)).
So the end result of the rotation will never change. In the second model (RotateTestSolve_1) we tried to play around with this a little bit (ignoring the rule mentioned above). Getting the rotation correct is possible, but it won’t result in the correct driving speeds. So this is probably not a good solution!
Any help on this would be highly appreciated.
Patrick