Repository navigation
Conversation
a7c6b92 to
352d4ae
Compare
Codecov Report
@@ Coverage Diff @@
## main #777 +/- ##
==========================================
- Coverage 55.58% 54.88% -0.70%
==========================================
Files 198 196 -2
Lines 21420 21360 -60
==========================================
- Hits 11905 11722 -183
- Misses 9515 9638 +123
Continue to review full report at Codecov.
|
| RCLCPP_ERROR(LOGGER, "Trajectory does not have enough points to smooth with Ruckig"); | ||
| return false; | ||
| } | ||
|
|
There was a problem hiding this comment.
Not really related to this PR, but something to keep in mind... The applySmoothing function is almost 200 lines long and contains complex logic. That's too long and should be, at some point, split into pieces. I'm thinking about just having helper functions that capture the phases of the smoothing correctly.
The trajectory processing functions are also all static class member functions meaning they really don't have to be in a class but can instead just be simple functions in some suitable namespace.
There was a problem hiding this comment.
Thanks @jliukkonen. I'm going to close this PR because some refactoring was done and it no longer applies. But I will try to do what you suggest in that PR.
72d544f to
009c949
Compare
|
Deprecated by #1076 |
For identical waypoints, Ruckig smoothing could get stuck in an infinite loop. The reason was, the
continuewent to the next iteration ofwhile, instead of continuing to the next waypoint.Also, I didn't have to copy the waypoint here since we just checked it was identical. We can leave it as it was.
*next_waypoint = trajectory.getWayPoint(waypoint_idx);