Add Trajectory Cache Example For Refactor #940
+2,354
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR builds on top of, and is related to:
In the same way that
This PR changes the demo code to support the TrajectoryCache refactor.
It also ADDS VIDEOS AND IMAGES.
Setup
Running
NOTE: Sometimes a randomly generated demo goal is unreachable (or there's a weird move_group issue). Just restart the demo to resolve the issue.
Demo
The demo is a 4-phase demo. Hit
next
on the rviz visual tools dialog to advance the demo!See video: It showcases cache population, pruning, and fetching (4x speed)
For (4), you should see the robot arm "snap" to the fetched trajectory. The diff of the robot's start position to the trajectory is visualized in red to be obvious.
Screenrecording2024-07-3012.33.03AM-ezgif.com-crop-video.2.webm
Additional Notes
PS: I fully recognize that the template instantiations can look a bit intimidating.
e.g.
These can be mitigated by using declarations to carve out the namespaces. But I left it in for explanatory purposes.
(example cleaned up version)