Skip to content

Commit

Permalink
Update Migration.md
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <[email protected]>
  • Loading branch information
brawner committed Jan 8, 2021
1 parent c94f4ef commit 92e26e3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ but with improved human-readability..
1. **sdf/Model.hh**:
+ std::pair<const Link *, std::string> CanonicalLinkAndRelativeName() const;

1. **sdf/Root.hh** sdf::Root elements can now only contain one of either Model,
Light or Actor since multiple items would conflict with overrides
specified in an <include> tag.
+ const sdf::Model \*Model();
+ const sdf::Light \*Light();
+ const sdf::Actor \*Actor();

### Modifications

1. **sdf/Model.hh**: the following methods now accept nested names relative to
Expand All @@ -36,6 +43,21 @@ but with improved human-readability..
+ bool JointNameExists(const std::string &) const
+ bool LinkNameExists(const std::string &) const

### Deprecations

1. **src/Root.hh**: The following methods have been deprecated in favor of the
new methods. For now the behavior is unchanged, but Root elements should
only contain one or none of Model/Light/Actor.
+ const sdf::Model \*ModelByIndex();
+ uint64_t ModelCount();
+ bool ModelNameExists(const std::string &\_name) const;
+ const sdf::Light \*LightByIndex();
+ uint64_t LightCount();
+ bool LightNameExists(const std::string &\_name) const;
+ const sdf::Actor \*ActorByIndex();
+ uint64_t ActorCount();
+ bool ActorNameExists(const std::string &\_name) const;

## SDFormat 9.x to 10.0

### Modifications
Expand Down

0 comments on commit 92e26e3

Please sign in to comment.