-
Notifications
You must be signed in to change notification settings - Fork 46
Fix issue with tolerance size #535
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #535 +/- ##
==========================================
- Coverage 79.96% 79.87% -0.10%
==========================================
Files 248 248
Lines 16349 16369 +20
==========================================
Hits 13074 13074
- Misses 3275 3295 +20
🚀 New features to boost your workflow:
|
4d4f3b7 to
d06cf98
Compare
d06cf98 to
be2e055
Compare
|
I think we should probably add an |
be2e055 to
8748738
Compare
8748738 to
3658303
Compare
An exception if not size 1 or 6 sounds like a good idea. This also has to be implemented for multiple coeffs, I'll look into that. I'm not sure the xml parsing code is the best location for this, though, as currently all handling of |
fb4d2d1 to
129f95f
Compare
|
Done. |
|
This is ready for review/merger, @Levi-Armstrong |
|
Can you make the same change to the trajopt ifopt one also? I |
6822209 to
758965b
Compare
|
Once the changes are also made to TrajOpt IFOPT this will be ready to merge. |
I believe this is already correctly handled in Trajopt-Ifopt, see here, for example. |
Sorry, I should have been more specific. I think we should also update the TrajOptIfoptCartesianWaypointConfig to leverage Eigen::VectorXd to align with your changes to the TrajOpt changes you made. |
758965b to
b5d64da
Compare
b5d64da to
03c699d
Compare
With the new toleranced waypoints, the tolerance variable type was introduced as a fixed Matrix (effectively Vector6d), always requiring 6 values. Here and here, however, a resize was still attempted, leading to silent errors, except for debug builds, where Eigen asserted an error.
This PR changes the types to a VectorXd, bringing the behavior in line with the coefs, allowing either 1 or 6 values, and fixing the
resize()assert.