-
Notifications
You must be signed in to change notification settings - Fork 276
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
Populate names of colliding entities in contact points message #1351
Merged
adityapande-1995
merged 10 commits into
ign-gazebo6
from
aditya/contact_pts_set_entity_names
Feb 28, 2022
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e5d4de8
Add names to collision entities
adityapande-1995 c549793
Add complete names of entities
adityapande-1995 04e0439
Added test case
adityapande-1995 b683fe7
Changed delimiter, removed entity types from name, minor cleanup
adityapande-1995 e08983e
Added parameter to disable populating colliding entity names
adityapande-1995 ed305a9
Minor refactoring, added docstring
adityapande-1995 9cc5fab
Merge branch 'ign-gazebo6' into aditya/contact_pts_set_entity_names
adityapande-1995 8fd3463
Merge branch 'ign-gazebo6' into aditya/contact_pts_set_entity_names
adityapande-1995 d915bef
Merge branch 'ign-gazebo6' into aditya/contact_pts_set_entity_names
azeey 84faae9
Added default value of parameter, test case without the sdf tag
adityapande-1995 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
This file contains 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 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 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 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,109 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.6"> | ||
<world name="contact_sensor"> | ||
<physics name="fast" type="ignored"> | ||
<real_time_factor>0</real_time_factor> | ||
</physics> | ||
|
||
<plugin | ||
filename="ignition-gazebo-physics-system" | ||
name="ignition::gazebo::systems::Physics"> | ||
<contacts> | ||
<include_entity_names>true</include_entity_names> | ||
</contacts> | ||
</plugin> | ||
<plugin | ||
filename="ignition-gazebo-contact-system" | ||
name="ignition::gazebo::systems::Contact"> | ||
</plugin> | ||
|
||
<model name="contact_model"> | ||
<pose>0 0 3.0 0 0.0 0</pose> | ||
<link name="link"> | ||
<collision name="collision_sphere1"> | ||
<pose>0 1 0.0 0 0.0 0</pose> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
</collision> | ||
<collision name="collision_sphere2"> | ||
<pose>0 -1 0.0 0 0.0 0</pose> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
</collision> | ||
<visual name="visual_sphere1"> | ||
<pose>0 1 0.0 0 0.0 0</pose> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
</visual> | ||
<visual name="visual_sphere2"> | ||
<pose>0 -1 0.0 0 0.0 0</pose> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
</visual> | ||
<sensor name='sensor_contact' type='contact'> | ||
<contact> | ||
<collision>collision_sphere1</collision> | ||
<collision>collision_sphere2</collision> | ||
<topic>/test_multiple_collisions</topic> | ||
</contact> | ||
<always_on>1</always_on> | ||
<update_rate>1000</update_rate> | ||
</sensor> | ||
</link> | ||
</model> | ||
|
||
<model name="box1"> | ||
<static>1</static> | ||
<pose>-0.75 0 0.5 0 0 0</pose> | ||
<link name="link"> | ||
<collision name="collision_box1_box"> | ||
<geometry> | ||
<box> | ||
<size>1 4 1</size> | ||
</box> | ||
</geometry> | ||
</collision> | ||
<visual name="visual"> | ||
<geometry> | ||
<box> | ||
<size>1 4 1</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
|
||
<model name="box2"> | ||
<static>1</static> | ||
<pose>0.75 0 0.5 0 0 0</pose> | ||
<link name="link"> | ||
<collision name="collision_box2_box"> | ||
<geometry> | ||
<box> | ||
<size>1 4 1</size> | ||
</box> | ||
</geometry> | ||
</collision> | ||
<visual name="visual"> | ||
<geometry> | ||
<box> | ||
<size>1 4 1</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</world> | ||
</sdf> |
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.
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 is good. For other systems we have been listing the parameters in a bullet list, but since this is the only parameter here, I think the format is fine.