-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added parameter to disable populating colliding entity names
Signed-off-by: Aditya <[email protected]>
- Loading branch information
1 parent
b683fe7
commit e08983e
Showing
4 changed files
with
211 additions
and
4 deletions.
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>false</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> |