-
Notifications
You must be signed in to change notification settings - Fork 1
Squashed improvements #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
42f87ed
A new funciton, calculateDerivativesFromVelocity()
AndyZe 911102f
Fix sign of delta_v to backwardLimitComp()
AndyZe f50224d
Fix the streaming test/example
AndyZe 0cfe557
Fix the skipping of some elements in downSample()
AndyZe c974284
Add a new single-joint oscillation test
AndyZe 1e7c9f0
It works! Probably could be implemented more efficiently
AndyZe a6e8b58
Delete commented block of code from previous implementation
AndyZe 93a7566
Set up if-condition to skip splines, if necessary
AndyZe bd03348
Fix the crash in OscillatingUR5Test
AndyZe b9ee3dd
All tests pass except DurationExtension
AndyZe 6ba0ce1
Always use minimum possible duration for each joint
AndyZe d2d06d8
Add the if/else fix in backwardLimitComp (PR 57)
AndyZe c60e557
Add an example that should be able to execute faster
AndyZe 0ec5fa3
It works!
AndyZe 0ea5a96
Restore original kinematic limits. DownSample actually worked fine
AndyZe 2c916dd
position_tolerance can be a bit bigger
AndyZe dd0d065
Remove debug statements, add hints if failure on first waypoint
AndyZe d709306
Revert changes to three_dof_examples.cpp
AndyZe 68d623c
Small fixup to streaming_example.cpp for readability
AndyZe b63e02c
Reset desired_duration_ in reset() function, too.
AndyZe c8d4928
Delete extra loop in clipVector()
AndyZe a7c0c57
Change three_dof_examples to something that needs debugging
AndyZe 440ee3f
Fix spline interpolation
AndyZe ca03c4e
Convert simple_example to a good failure case
AndyZe 400656c
Derivative calculations in the middle of LimitComp often caused limit…
AndyZe 921f627
Better estimates for desired durations
AndyZe 15f1dc2
Clang format
AndyZe afa724e
Increase position_tolerance to help pass the first waypoint
AndyZe f44e3bc
Add checks on Timestep to every relevant unit test
AndyZe 4939981
Add arg for whether upsampling occurred
AndyZe f880a2f
Slightly tweak test conditions for tests that seem to be working well
AndyZe e967c3b
Fix the allocation of waypoints.elapsed_times, only 2 tests fail now
AndyZe 26a6cc9
Remove a few commented lines
AndyZe e01a912
Fix a typo in LimitCompensation test conditions
AndyZe 19791d1
Initialize index_last_successful_
AndyZe 9929cc2
Tweak simple_example.cpp for better accuracy
AndyZe a0ad0a9
Rebase, clang format, clang tidy
zultron 43724a1
single_joint_generator: Remove trailing `_` from function parameter …
zultron 0fc6930
Zultron/tracksuite refactor pt1 (#62)
zultron d3cf022
Don't need a warning for failure to comp at first waypoint
AndyZe 060dab4
Print warning if results directory doesn't exist
AndyZe 479e734
Fix small rebase mistake
AndyZe a28a7d4
Clang format
AndyZe 4b4f3f3
Add comment about duration extension constant
AndyZe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,8 @@ | |
| .DS_Store | ||
|
|
||
| # SSH Keys (used for Docker) | ||
| id_rsa | ||
| id_rsa | ||
|
|
||
| # Catkin tools | ||
| /.catkin-tools/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| /********************************************************************* | ||
| * Copyright (c) 2019, PickNik Consulting | ||
| * All rights reserved. | ||
| * | ||
| * Unauthorized copying of this file, via any medium is strictly prohibited | ||
| * Proprietary and confidential | ||
| *********************************************************************/ | ||
|
|
||
| /* Author: John Morris | ||
| Desc: Trajectory generator configuration. | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "trackjoint/limits.h" | ||
|
|
||
| namespace trackjoint | ||
| { | ||
| /** | ||
| * \brief Trajectory generator configuration. | ||
| */ | ||
| struct Configuration | ||
| { | ||
| Configuration(double timestep, double max_duration, const Limits& limits, const double position_tolerance, | ||
| bool use_streaming_mode) | ||
| : timestep(timestep) | ||
| , max_duration(max_duration) | ||
| , limits(limits) | ||
| , position_tolerance(position_tolerance) | ||
| , use_streaming_mode(use_streaming_mode) | ||
| { | ||
| } | ||
|
|
||
| Configuration() | ||
| { | ||
| } | ||
|
|
||
| double timestep; | ||
| double max_duration; | ||
| Limits limits; | ||
| double position_tolerance; | ||
| // If streaming mode is enabled, trajectories are clipped at | ||
| // kNumWaypointsThreshold so the algorithm runs very quickly. | ||
| // | ||
| // Streaming mode is intended for realtime streaming applications. | ||
| // | ||
| // There could be even fewer waypoints than that if the goal is very | ||
| // close or the algorithm only finds a few waypoints successfully. | ||
| // | ||
| // In streaming mode, trajectory duration is not extended until it | ||
| // successfully reaches the goal. | ||
| bool use_streaming_mode; | ||
| }; | ||
| } // namespace trackjoint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs to be a ptr otherwise any leftover excess_velocity computed in the function gets discarded
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, check this out...
So we keep the full delta_v if
!successful_compensation. If compensation is successful, it's assumed that delta_v is zero. The logic seems good either way, to me.