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
{{ message }}
Repository navigation
Ruckig-smoothed trajectories could be faster if waypoint durations were extended individually #1966
The Ruckig trajectory smoothing plugin extends the duration of all waypoints if smoothing isn't successful. It's an iterative process until success is achieved. Attempt smoothing --> extend the duration --> attempt smoothing again.
for (size_t time_stretch_idx = 1; time_stretch_idx < num_waypoints; ++time_stretch_idx)
{
The resulting trajectory could be faster if only the failing waypoint durations were extended. There's no reason to extend all of them at every iteration.
I would like to take this up, if not already done.
We could do this by initializing the waypoint counter outside the for loop here.
And then, instead of extending all waypoint durations , we can set time_stretch_idx to be waypoint_idx+1
This would mean we only update for the current segment that failed, and can continue with original durations for the rest.
Does the changes in the PR come close to what you had in mind ?
Activity
ibrahiminfinite commentedon Mar 5, 2023
Hi @AndyZe
I would like to take this up, if not already done.
We could do this by initializing the waypoint counter outside the for loop here.
And then, instead of extending all waypoint durations , we can set
time_stretch_idxto bewaypoint_idx+1This would mean we only update for the current segment that failed, and can continue with original durations for the rest.
Does the changes in the PR come close to what you had in mind ?
Thanks.