Skip to content
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

More world APIs, helper function ComponentData #378

Merged
merged 6 commits into from
Oct 16, 2020

Conversation

chapulina
Copy link
Contributor

See the added tutorial for the new APIs.

Also added the EntityComponentManager::ComponentData helper function that returns std::nullopt if the entity doesn't have that component. It's a bit redundant that the user needs to pass 2 template arguments, but I couldn't find a better way.

Part of solving #325

@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Sep 25, 2020
@chapulina chapulina added the migration Helps with migration from Gazebo classic to Ignition label Sep 25, 2020
@chapulina chapulina requested a review from mjcarroll September 28, 2020 18:56
@chapulina chapulina self-assigned this Oct 6, 2020
@codecov
Copy link

codecov bot commented Oct 14, 2020

Codecov Report

Merging #378 into ign-gazebo3 will increase coverage by 0.09%.
The diff coverage is 97.33%.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-gazebo3     #378      +/-   ##
===============================================
+ Coverage        77.21%   77.30%   +0.09%     
===============================================
  Files              203      205       +2     
  Lines            10963    11018      +55     
===============================================
+ Hits              8465     8518      +53     
- Misses            2498     2500       +2     
Impacted Files Coverage Δ
include/ignition/gazebo/EntityComponentManager.hh 100.00% <ø> (ø)
src/World.cc 96.87% <96.87%> (ø)
include/ignition/gazebo/World.hh 100.00% <100.00%> (ø)
...e/ignition/gazebo/detail/EntityComponentManager.hh 94.61% <100.00%> (+0.21%) ⬆️
src/Link.cc 92.03% <100.00%> (-0.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d16dc9...6a8a6d0. Read the comment docs.

Signed-off-by: Louise Poubel <[email protected]>
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions.

include/ignition/gazebo/World.hh Outdated Show resolved Hide resolved
include/ignition/gazebo/World.hh Outdated Show resolved Hide resolved
include/ignition/gazebo/World.hh Outdated Show resolved Hide resolved
include/ignition/gazebo/World.hh Outdated Show resolved Hide resolved
Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina merged commit ff33091 into ign-gazebo3 Oct 16, 2020
@chapulina chapulina deleted the chapulina/3/world_api branch October 16, 2020 16:33
mjcarroll pushed a commit that referenced this pull request Oct 21, 2020
doisyg pushed a commit to wyca-robotics/ign-gazebo that referenced this pull request Dec 13, 2020
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel migration Helps with migration from Gazebo classic to Ignition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants