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

Utilizes return value of AddBvhAnimation func #1632

Closed
wants to merge 1 commit into from

Conversation

onurtore
Copy link
Contributor

@onurtore onurtore commented Aug 7, 2022

🦟 Bug fix

Related to gazebosim/gz-common#393

Summary

During actor creation adding bvh animation might fail. The current approach does not check whether bvh animation fails or not. This patch, checks whether adding bvh animation is succesfull and logs if fails.

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.

Logs if adding bvh animation fails during actor creation

Signed-off-by: Onur Berk Tore <[email protected]>
@codecov
Copy link

codecov bot commented Aug 7, 2022

Codecov Report

❗ No coverage uploaded for pull request base (gz-sim7@c647de6). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             gz-sim7    #1632   +/-   ##
==========================================
  Coverage           ?   63.55%           
==========================================
  Files              ?      331           
  Lines              ?    25995           
  Branches           ?        0           
==========================================
  Hits               ?    16521           
  Misses             ?     9474           
  Partials           ?        0           

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

@chapulina chapulina added the bug Something isn't working label Aug 8, 2022
@chapulina chapulina changed the base branch from main to gz-sim7 August 10, 2022 18:10
if(!meshSkel->AddBvhAnimation(animFilename, animScale))
{
gzerr << "Bvh animation in file " << animFilename << " failed to load"
<< " during actor creation" << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

return ?

@nkoenig nkoenig mentioned this pull request Oct 6, 2022
8 tasks
@nkoenig
Copy link
Contributor

nkoenig commented Oct 6, 2022

Thanks for the PR. I've updated this and targeted to version 6 in #1750.

@nkoenig nkoenig closed this Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants