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

Fix use of actors that only has trajectory animation #1947

Merged
merged 4 commits into from
Apr 25, 2023

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 29, 2023

🦟 Bug fix

Fixes #1932

Summary

Fixes the case when actors are used without a mesh with animations

More info:
Actor support in gz assumes that actors are always used with a skin mesh and a mesh with skeleton animations. It was found in #1932 that this is not the case in gazebo-classic. Trajectory animation should still work without any meshes or built-in animations. This PR makes the use of skin mesh and animations optional in gz so that users can use actors with just trajectory animation.

To Test:

Run the test/actor_trajectory.sdf world and INTEGRATION_actor_trajectory test.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

iche033 added 2 commits March 29, 2023 00:59
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 requested review from azeey and mjcarroll as code owners March 29, 2023 18:10
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Mar 29, 2023
@iche033 iche033 changed the title Actor no mesh Fix actors that only has trajectory animation Mar 29, 2023
@iche033 iche033 changed the title Fix actors that only has trajectory animation Fix use of actors that only has trajectory animation Mar 29, 2023
src/SdfEntityCreator.cc Outdated Show resolved Hide resolved
src/rendering/SceneManager.cc Outdated Show resolved Hide resolved
iche033 added 2 commits March 31, 2023 18:26
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #1947 (ea2640e) into ign-gazebo6 (6437bb0) will decrease coverage by 12.71%.
The diff coverage is n/a.

❗ Current head ea2640e differs from pull request most recent head e73121a. Consider uploading reports for the commit e73121a to get more accurate results

@@               Coverage Diff                @@
##           ign-gazebo6    #1947       +/-   ##
================================================
- Coverage        78.00%   65.29%   -12.71%     
================================================
  Files              255      327       +72     
  Lines            15041    26893    +11852     
================================================
+ Hits             11732    17561     +5829     
- Misses            3309     9332     +6023     
Impacted Files Coverage Δ
include/ignition/gazebo/EntityComponentManager.hh 100.00% <ø> (ø)
include/ignition/gazebo/EventManager.hh 79.16% <ø> (+0.90%) ⬆️
include/ignition/gazebo/Link.hh 100.00% <ø> (ø)
include/ignition/gazebo/Model.hh 100.00% <ø> (ø)
include/ignition/gazebo/SdfEntityCreator.hh 100.00% <ø> (ø)
include/ignition/gazebo/Server.hh 100.00% <ø> (ø)
include/ignition/gazebo/ServerConfig.hh 100.00% <ø> (ø)
include/ignition/gazebo/System.hh 100.00% <ø> (ø)
include/ignition/gazebo/SystemLoader.hh 100.00% <ø> (ø)
include/ignition/gazebo/Util.hh 100.00% <ø> (ø)
... and 73 more

... and 116 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@azeey azeey removed their request for review April 4, 2023 16:15
@iche033 iche033 merged commit ef71b65 into ign-gazebo6 Apr 25, 2023
@iche033 iche033 deleted the actor_no_mesh branch April 25, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants