You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to generate a very short and straight path (only several centimeters only), the generated path coordinates overshoot and undershoot the target. The velocity does not agree with the change in the x.
This commit prints the following when squiggles_tst is executed.
Notice, the X position changes sign but the velocity remains positive. The result is that the robot moves smoothly really far in a straight line (when no path following algorithm is used).
Thank you for catching this! I'm not entirely sure why this is happening off the top of my head, but my hunch is that something is a bit off with the math in Squiggles and this is the result. I'm quite busy these days and it'll likely be a little bit until I can get a fix merged up into Okapilib, but I'll definitely take a look to try and get this fixed!
Hi @bnhrkn , sorry it's taken me so long to get back to you on this! A couple of findings on this:
best I can tell, the root of the issue lies in the gradient descent algorithm used to find the ideal start/end velocity for a given path. You can avoid this algorithm by manually setting the start/end velocity of your path to a non-zero value, as a workaround.
It's tricky to find sane defaults for those velocities in the gradient descent algorithm that will result in nice looking paths for more typical paths (like those included in the tests and visualization example currently) while also supporting tiny paths like this. I'm working on a solution to that in my baylessj/52-small-paths branch on this repo 😄
When I want to generate a very short and straight path (only several centimeters only), the generated path coordinates overshoot and undershoot the target. The velocity does not agree with the change in the x.
This commit prints the following when
squiggles_tst
is executed.Notice, the X position changes sign but the velocity remains positive. The result is that the robot moves smoothly really far in a straight line (when no path following algorithm is used).
Output
The text was updated successfully, but these errors were encountered: