Skip to content

Commit

Permalink
How to use collision and groundtruth plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
KiselevIlia committed Apr 1, 2024
1 parent 2f4fc8f commit d7a4e5f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,45 @@ make
cpack -G DEB
sudo dpkg -i *.deb
```

### Tips
For the [**_collision plugin_**](./src/harmonic_collision.cpp) a model must have
1. Collision
```
<collision name='collision'>
<geometry>
<box>
<size>2.0 1.0 0.5</size>
</box>
</geometry>
</collision>
```
2. Contact sensor
```
<sensor name='sensor_contact' type='contact'>
<contact>
<!--The name of the collision element from above-->
<collision>collision</collision>
</contact>
</sensor>
```
3. Plugins
```
<plugin filename="gz-sim-contact-system"
name="gz::sim::systems::Contact">
</plugin>
<plugin filename="collision_plugin"
name="gz::CollisionPlugin">
<!-- 1000 == 1 sec -->
<updateRate>1000</updateRate>
</plugin>
```

For the [**_groundtruth plugin_**](./src/groundtruth_plugin.cpp) a model must have only plugin
```
<plugin filename="groundtruth_plugin"
name="gz::sim::systems::GroundtruthPlugin">
<!-- 1000 == 1 sec -->
<update_frequency>100</update_frequency>
</plugin>
```

0 comments on commit d7a4e5f

Please sign in to comment.