-
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
add conversion for particle scatter ratio field #791
Conversation
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
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.
Just one comment.
src/Conversions.cc
Outdated
@@ -1390,6 +1390,12 @@ msgs::ParticleEmitter ignition::gazebo::convert(const sdf::ParticleEmitter &_in) | |||
header->add_value(_in.Topic()); | |||
} | |||
|
|||
// todo(anyone) add particle_scatter_ratio field in particle_emitter.proto |
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.
How about making a PR in ign-msgs targeting Fortress? Then this todo
could be changed to:
Use particle_scatter_ratio in particle_emitter.proto from Fortress on.
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.
the field was added in gazebosim/gz-msgs#162 so updated comment
99b8ae7
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen ichen@osrfoundation.org
🎉 New feature
Summary
Depends on gazebosim/sdformat#547
This feature was originally added for the
particle_emitter
system in #674. This PR ports the functionality to theparticle_emitter2
system.Test it
You can test this PR in the same way as the steps listed in #674 but using this sensor_particles_scattering2.sdf world file. The first time you run it, it'll download the Fog Generator model.
Pay attention to the particle effects in depth, rgbd cameras and lidars. Now change particle scatter ratio by modifying
~/.ignition/fuel/fuel.ignitionrobotics.org/openrobotics/models/fog generator/<version_number>/model.sdf
and adding<particle_scatter_ratio>0.01</particle_scatter_ratio>
under<emitter>
.Run ign-gazebo with
sensor_particles_scattering2.sdf
again to see that the new scatter ratio in effect. The fog particles should appear to be less dense (noisy) in the depth / rgbd cameras and lidar visualizations.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge