@@ -36,6 +36,7 @@ namespace sdf
36
36
// Forward declarations.
37
37
class Collision ;
38
38
class Light ;
39
+ class ParticleEmitter ;
39
40
class Sensor ;
40
41
class Visual ;
41
42
struct PoseRelativeToGraph ;
@@ -150,6 +151,32 @@ namespace sdf
150
151
// / \sa bool SensorNameExists(const std::string &_name) const
151
152
public: const Sensor *SensorByName (const std::string &_name) const ;
152
153
154
+ // / \brief Get the number of particle emitters.
155
+ // / \return Number of particle emitters contained in this Link object.
156
+ public: uint64_t ParticleEmitterCount () const ;
157
+
158
+ // / \brief Get a particle emitter based on an index.
159
+ // / \param[in] _index Index of the particle emitter.
160
+ // / The index should be in the range [0..ParticleEmitterCount()).
161
+ // / \return Pointer to the particle emitter. Nullptr if the index does
162
+ // / not exist.
163
+ // / \sa uint64_t ParticleEmitterCount() const
164
+ public: const ParticleEmitter *ParticleEmitterByIndex (
165
+ const uint64_t _index) const ;
166
+
167
+ // / \brief Get whether a particle emitter name exists.
168
+ // / \param[in] _name Name of the particle emitter to check.
169
+ // / \return True if there exists a particle emitter with the given name.
170
+ public: bool ParticleEmitterNameExists (const std::string &_name) const ;
171
+
172
+ // / \brief Get a particle emitter based on a name.
173
+ // / \param[in] _name Name of the particle emitter.
174
+ // / \return Pointer to the particle emitter. Nullptr if a particle emitter
175
+ // / with the given name does not exist.
176
+ // / \sa bool ParticleEmitterNameExists(const std::string &_name) const
177
+ public: const ParticleEmitter *ParticleEmitterByName (
178
+ const std::string &_name) const ;
179
+
153
180
// / \brief Get the inertial value for this link. The inertial object
154
181
// / consists of the link's mass, a 3x3 rotational inertia matrix, and
155
182
// / a pose for the inertial reference frame. The units for mass is
0 commit comments