-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Citadel] [TPE] Add GetContactsFromLastStepFeature #61
Conversation
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Codecov Report
@@ Coverage Diff @@
## ign-physics2 #61 +/- ##
================================================
+ Coverage 82.10% 82.45% +0.35%
================================================
Files 106 106
Lines 3559 3585 +26
================================================
+ Hits 2922 2956 +34
+ Misses 637 629 -8
Continue to review full report at Codecov.
|
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
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.
when I tested it locally, I got the following error:
~/citadel_ws $ ign gazebo -v 2 shapes.sdf --physics-engine ignition-physics-tpe-plugin
[Wrn] [Component.hh:144] Trying to serialize component with data type [N3sdf2v95WorldE], which doesn't have `operator<<`. Component will not be serialized.
[Wrn] [Component.hh:144] Trying to serialize component with data type [N3sdf2v95ModelE], which doesn't have `operator<<`. Component will not be serialized.
ign gazebo server: symbol lookup error: /home/claire/citadel_ws/install/lib/libignition-physics2-tpelib.so.2: undefined symbol: _ZN8ignition7physics6tpelib17CollisionDetector15CheckCollisionsERKSt3mapImSt10shared_ptrINS1_6EntityEESt4lessImESaISt4pairIKmS6_EEEb
I just rebuilt ign-physics and ign-gazebo in two colcon worksapces and I can't reproduce the unresolved symbol error. I do see the component warning msgs. Could you try clean the build dir and rebuild to see if the problem still occurs? |
I did a clean build and the error went away. Thanks for double checking! |
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.
LGTM!
depends on pull request #59 and pull request #60
Add TPE implementation of
GetContactsFromLastStepFeature
. It returns contact points generated by the CollisionDetector introduced in pull request #60Since contacts are associated with collisions in ign-physics but TPE checks contacts on the model level, a workaround is implemented to return the first collision in the canonical link of the model.
The test added caught a bug in EntityManagementFeatures in which incorrect entity names were returned so I had to remove the static variables.