-
Notifications
You must be signed in to change notification settings - Fork 493
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
Sync with MoveIt1 #1900
Sync with MoveIt1 #1900
Conversation
- Fixup doc comments - Add API providing the translation vector = direction * distance - Simplify implementation
This allows performing a circular motion about a non-link origin.
gtest 1.8 doesn't provide SetUpTestSuite(). Thus, we cannot share the RobotModel across tests.
EXPECT_EQ(full_traj_len, traj.size()); // traj should not be cut | ||
EXPECT_NEAR(1.0, fraction, 0.01); | ||
} | ||
|
||
// Gracefully handle gtest 1.8 (Melodic) |
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.
You should be able to remove _OLD_GTEST everywhere
|
||
jmg->setSolverAllocators( | ||
[=](const JointModelGroup* jmg) -> kinematics::KinematicsBasePtr { | ||
kinematics::KinematicsBasePtr result = loader->createUniqueInstance(plugin); |
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.
@rhaschke apparently, we have some issues finding the plugin: C++ exception with description "According to the loaded plugin descriptions the class kdl_kinematics_plugin/KDLKinematicsPlugin with base class type kinematics::KinematicsBase does not exist. Declared types are " thrown in SetUpTestSuite().
(link). I also recall that there could be issues when loading plugins from the same package. I'm not sure if this was specific to ROS 2, though. Do you have any ideas?
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.
Looks like no plugins are found at all. No idea why. I don't have time to look into this next week.
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.
Could this PR be related?
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.
unsure, it would be weird if it was related, but I would certainly be happy about that surprise. This code works just fine in MoveIt 1 and we have no issues loading IK plugins or other in a normal launch. To me it looks like a bug (or lack of proper support) to use plugins from the same package that exports them (plugin xml), not a header-not-found kind of thing.
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've thought about this a bit more and I think we should move the test instance next to the IK plugin package. The test behavior really depends on the plugin implementation and we might want to test different plugins against the same behavior. Ideally, we would also test computeCartesianPath()
with a mock implementation of an IK solver so that we are not introducing solver-specific issues into our unit tests.
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 have opened #2099 to tackle this. I have commented out the tests for now so this PR can be merged
10030ef
to
90f3db7
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1900 +/- ##
==========================================
- Coverage 50.91% 50.84% -0.07%
==========================================
Files 391 391
Lines 32126 32147 +21
==========================================
- Hits 16355 16343 -12
- Misses 15771 15804 +33
... and 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
bc41692
to
6dbeda7
Compare
Description
Syncing the following commits
TODO:
Checklist