Skip to content

Commit

Permalink
Added hooks and models (space-ros#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
namikxgithub authored and mkhansenbot committed Sep 9, 2024
1 parent cb7480b commit 770b653
Show file tree
Hide file tree
Showing 13 changed files with 168 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_gz_plugins/hooks/simulation.dsv.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share
prepend-non-duplicate;IGN_GAZEBO_RESOURCE_PATH;share/simulation/models
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions custom_gz_plugins/models/dust_storm/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>

<model>
<name>Dust Storm</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>

<author>
<name>Naman Malik</name>
<email>[email protected]</email>
</author>

<description>
A Configurable particle_emitter that produces brown particles to create a
Dust like effect.
The Dust Emitter can be configured using the Dust Control GUI plugin.
Parameters that can be configured:
- Volume of emitter (x, y, z)
- Position (x, y, z)
- Dust Density
- Dust Velocity
- Dust Angle
</description>
</model>
40 changes: 40 additions & 0 deletions custom_gz_plugins/models/dust_storm/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" ?>
<sdf version="1.6">

<plugin name='gz::sim::systems::ParticleEmitter' filename='gz-sim-particle-emitter-system'/>


<model name="dust_storm">
<static>true</static>
<pose>-10 0 0 0 0 0</pose>
<link name="dust_link">
<visual name="visual">
<geometry>
<box>
<size>0.1 0.1 0.1</size>
</box>
</geometry>
</visual>
<particle_emitter name="emitter" type="box">
<emitting>true</emitting>
<size>30 1 1</size>
<particle_size>0.1 0.1 0.1</particle_size>
<lifetime>30</lifetime>
<min_velocity>1.8</min_velocity>
<max_velocity>1.8</max_velocity>
<scale_rate>1.5</scale_rate>
<rate>10</rate>
<material>
<diffuse>1 1 1</diffuse>
<specular>1.0 1.0 1.0</specular>
<pbr>
<metal>
<albedo_map>materials/textures/dust.png</albedo_map>
</metal>
</pbr>
</material>
</particle_emitter>
</link>
</model>

</sdf>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions custom_gz_plugins/models/light_dust_storm/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>

<model>
<name>Light Dust Storm</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>

<author>
<name>Naman Malik</name>
<email>[email protected]</email>
</author>

<description>
A Configurable particle_emitter that produces brown particles to create a
Dust like effect.
The Dust Emitter can be configured using the Dust Control GUI plugin.
Parameters that can be configured:
- Volume of emitter (x, y, z)
- Position (x, y, z)
- Dust Density
- Dust Velocity
- Dust Angle
</description>
</model>
41 changes: 41 additions & 0 deletions custom_gz_plugins/models/light_dust_storm/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<sdf version="1.6">

<plugin name='gz::sim::systems::ParticleEmitter2' filename='gz-sim-particle-emitter2-system'/>


<model name="light_dust_storm">
<static>true</static>
<pose>-10 0 0 0 0 0</pose>
<link name="dust_link">
<visual name="visual">
<geometry>
<box>
<size>0.1 0.1 0.1</size>
</box>
</geometry>
</visual>
<particle_emitter name="emitter" type="box">
<emitting>true</emitting>
<size>30 1 1</size>
<particle_size>0.1 0.1 0.1</particle_size>
<lifetime>30</lifetime>
<min_velocity>0.6</min_velocity>
<max_velocity>3</max_velocity>
<scale_rate>1</scale_rate>
<rate>3</rate>
<material>
<diffuse>1 1 1</diffuse>
<specular>1.0 1.0 1.0</specular>
<pbr>
<metal>
<albedo_map>materials/textures/Dust.png</albedo_map>
</metal>
</pbr>
</material>
<color_range_image>materials/textures/DustColors.png</color_range_image>
</particle_emitter>
</link>
</model>

</sdf>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions custom_gz_plugins/models/sun_sphere/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version='1.0'?>
<sdf version="1.5">
<model name="sun">
<static>true</static>
<pose>0 0 0 0 0 0</pose>
<link name="link">
<visual name="visual">
<cast_shadows>false</cast_shadows>
<geometry>
<sphere>
<radius>2.0</radius>
</sphere>
</geometry>
<material>
<lighting>1</lighting>
<ambient>1 1 0.7 1</ambient>
<diffuse>1 1 0.7 1</diffuse>
<specular>1 1 1 1</specular>
<emissive>1 1 0.5 1</emissive>
</material>
</visual>
<light type="directional" name="directional_light">
<cast_shadows>true</cast_shadows>
<pose>0 0 10 0 0 0</pose>
<diffuse>1 1 1 1</diffuse>
<specular>1 1 1 1</specular>
<attenuation>
<range>100</range>
<constant>0.9</constant>
<linear>0.01</linear>
<quadratic>0.001</quadratic>
</attenuation>
<direction>0 0 -1</direction>
</light>
</link>
</model>
</sdf>

0 comments on commit 770b653

Please sign in to comment.