Skip to content

Commit

Permalink
Merge pull request #539 from osrf/10-to-11-20210412
Browse files Browse the repository at this point in the history
10 to 11 20210412
  • Loading branch information
scpeters authored Apr 21, 2021
2 parents b9971ff + 7dfcd4e commit 25004f0
Show file tree
Hide file tree
Showing 23 changed files with 1,938 additions and 19 deletions.
12 changes: 11 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,17 @@

## libsdformat 10.X

### libsdformat 10.X.X (202X-XX-XX)
### libsdformat 10.4.0 (2021-04-06)

1. Added particle emitter.
+ [Pull request 528](https://github.com/osrf/sdformat/pull/528)

1. Fixed application of <sensor><pose> tags in lumped linkes during URDF
conversion.
+ [Pull request 525](https://github.com/osrf/sdformat/pull/525)

1. Add camera type aliases to docs.
+ [Pull request 514](https://github.com/osrf/sdformat/pull/514)

### libsdformat 10.3.0 (2021-02-18)

Expand Down
3 changes: 3 additions & 0 deletions Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ but with improved human-readability..

1. Fixed Atmosphere DOM class's temperature default value. Changed from -0.065 to -0.0065.
* [Pull request 482](https://github.com/osrf/sdformat/pull/482)

1. Fixed parsing of `<sensor><pose>` tags on lumped links when converting from URDF.
* [Pull request 525](https://github.com/osrf/sdformat/pull/525)

## libsdformat 9.x to 10.0

Expand Down
1 change: 1 addition & 0 deletions include/sdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ set (headers
Param.hh
parser.hh
ParserConfig.hh
ParticleEmitter.hh
Pbr.hh
Physics.hh
Plane.hh
Expand Down
27 changes: 27 additions & 0 deletions include/sdf/Link.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ namespace sdf
// Forward declarations.
class Collision;
class Light;
class ParticleEmitter;
class Sensor;
class Visual;
struct PoseRelativeToGraph;
Expand Down Expand Up @@ -150,6 +151,32 @@ namespace sdf
/// \sa bool SensorNameExists(const std::string &_name) const
public: const Sensor *SensorByName(const std::string &_name) const;

/// \brief Get the number of particle emitters.
/// \return Number of particle emitters contained in this Link object.
public: uint64_t ParticleEmitterCount() const;

/// \brief Get a particle emitter based on an index.
/// \param[in] _index Index of the particle emitter.
/// The index should be in the range [0..ParticleEmitterCount()).
/// \return Pointer to the particle emitter. Nullptr if the index does
/// not exist.
/// \sa uint64_t ParticleEmitterCount() const
public: const ParticleEmitter *ParticleEmitterByIndex(
const uint64_t _index) const;

/// \brief Get whether a particle emitter name exists.
/// \param[in] _name Name of the particle emitter to check.
/// \return True if there exists a particle emitter with the given name.
public: bool ParticleEmitterNameExists(const std::string &_name) const;

/// \brief Get a particle emitter based on a name.
/// \param[in] _name Name of the particle emitter.
/// \return Pointer to the particle emitter. Nullptr if a particle emitter
/// with the given name does not exist.
/// \sa bool ParticleEmitterNameExists(const std::string &_name) const
public: const ParticleEmitter *ParticleEmitterByName(
const std::string &_name) const;

/// \brief Get the inertial value for this link. The inertial object
/// consists of the link's mass, a 3x3 rotational inertia matrix, and
/// a pose for the inertial reference frame. The units for mass is
Expand Down
Loading

0 comments on commit 25004f0

Please sign in to comment.