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

Setting the intiial velocity for a model or joint #693

Merged
merged 5 commits into from
Mar 19, 2021

Conversation

chapulina
Copy link
Contributor

@chapulina chapulina commented Mar 18, 2021

🎉 New feature

Summary

Let the user set an initial velocity through the VelocityControl plugin or JointController plugin.

I'm using this for a demo.

I'll come back to add tests and docs, just opening in time for feature freeze 🥶

Test it

I'll add it to the example world.

Checklist

  • Signed all commits for DCO
  • Added tests: TODO Done
  • Added example and/or tutorial TODO Done
  • Updated documentation (as needed) TODO Done
  • Updated migration guide (as needed)
  • 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

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

@chapulina chapulina added the beta Targeting beta release of upcoming collection label Mar 18, 2021
@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Mar 18, 2021
@chapulina chapulina changed the title Setting the intiial velocity for a model Setting the intiial velocity for a model or joint Mar 18, 2021
@codecov
Copy link

codecov bot commented Mar 18, 2021

Codecov Report

Merging #693 (968311e) into main (4e692db) will decrease coverage by 0.00%.
The diff coverage is 64.55%.

❗ Current head 968311e differs from pull request most recent head 7fb99f3. Consider uploading reports for the commit 7fb99f3 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #693      +/-   ##
==========================================
- Coverage   64.88%   64.87%   -0.01%     
==========================================
  Files         235      235              
  Lines       16889    16958      +69     
==========================================
+ Hits        10958    11002      +44     
- Misses       5931     5956      +25     
Impacted Files Coverage Δ
.../plugins/component_inspector/ComponentInspector.cc 7.20% <0.00%> (-0.02%) ⬇️
.../plugins/component_inspector/ComponentInspector.hh 28.57% <ø> (ø)
src/systems/joint_controller/JointController.hh 100.00% <ø> (ø)
src/systems/user_commands/UserCommands.cc 69.13% <0.00%> (-0.69%) ⬇️
src/systems/velocity_control/VelocityControl.hh 100.00% <ø> (ø)
src/rendering/RenderUtil.cc 42.64% <50.00%> (+0.04%) ⬆️
src/SdfEntityCreator.cc 88.23% <60.78%> (-5.08%) ⬇️
src/systems/joint_controller/JointController.cc 78.12% <100.00%> (+0.95%) ⬆️
src/systems/velocity_control/VelocityControl.cc 86.76% <100.00%> (+3.12%) ⬆️
src/SimulationRunner.cc 92.73% <0.00%> (-1.04%) ⬇️
... and 2 more

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 41b0ffa...7fb99f3. Read the comment docs.

@ahcorde
Copy link
Contributor

ahcorde commented Mar 18, 2021

should we add any test ?

@chapulina chapulina self-assigned this Mar 19, 2021
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina marked this pull request as ready for review March 19, 2021 03:45
@chapulina
Copy link
Contributor Author

Ok, tests, examples and docs added. Mind taking another quick look, @ahcorde ?

@chapulina chapulina requested a review from ahcorde March 19, 2021 03:46
});
server.AddSystem(testSystem.systemPtr);

// Run server and check that vehicle didn't move
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Run server and check that vehicle didn't move
// Run server and check that vehicle move

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

A minor comment

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina merged commit ddcf64f into main Mar 19, 2021
@chapulina chapulina deleted the chapulina/5/initial_vel branch March 19, 2021 16:31
chapulina added a commit that referenced this pull request Jul 30, 2021
chapulina added a commit that referenced this pull request Jul 30, 2021
chapulina added a commit that referenced this pull request Jul 30, 2021
chapulina added a commit that referenced this pull request Aug 4, 2021
chapulina added a commit that referenced this pull request Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants