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

Adds bindings for the Actor convenience class #2041

Merged
merged 27 commits into from
Aug 22, 2023
Merged

Conversation

Voldivh
Copy link
Contributor

@Voldivh Voldivh commented Jul 19, 2023

🎉 New feature

Summary

This PR adds bindings for the Actor convenience class.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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.

Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@Voldivh Voldivh marked this pull request as ready for review July 19, 2023 20:12
@Voldivh Voldivh requested a review from mjcarroll as a code owner July 19, 2023 20:12
@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #2041 (22eab4d) into main (d839caf) will increase coverage by 0.91%.
Report is 139 commits behind head on main.
The diff coverage is 72.43%.

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

@@            Coverage Diff             @@
##             main    #2041      +/-   ##
==========================================
+ Coverage   64.48%   65.39%   +0.91%     
==========================================
  Files         341      318      -23     
  Lines       27143    30036    +2893     
==========================================
+ Hits        17502    19642    +2140     
- Misses       9641    10394     +753     
Files Changed Coverage Δ
include/gz/sim/System.hh 100.00% <ø> (ø)
include/gz/sim/Util.hh 100.00% <ø> (ø)
include/gz/sim/components/Component.hh 100.00% <ø> (ø)
include/gz/sim/detail/EntityComponentManager.hh 94.01% <ø> (+0.14%) ⬆️
include/gz/sim/gui/GuiEvents.hh 0.00% <ø> (ø)
src/Model.cc 96.15% <ø> (+0.15%) ⬆️
src/SystemLoader.cc 71.42% <ø> (+8.01%) ⬆️
src/gui/GuiEvents.cc 44.44% <ø> (+8.08%) ⬆️
src/gui/GuiRunner.cc 52.38% <ø> (+1.70%) ⬆️
src/gui/plugins/modules/EntityContextMenu.cc 18.09% <0.00%> (-1.69%) ⬇️
... and 58 more

... and 138 files with indirect coverage changes

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.

tests ?

python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.hh Outdated Show resolved Hide resolved
Base automatically changed from nkoenig/7-to-main to main July 20, 2023 18:06
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@Voldivh Voldivh force-pushed the voldivh/python_bindings_actor branch from 53787a7 to 7d050c4 Compare July 27, 2023 12:54
@Voldivh Voldivh requested a review from mabelzhang as a code owner July 27, 2023 12:54
@Voldivh Voldivh changed the base branch from main to voldivh/python_bindings_world July 27, 2023 12:55
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@azeey azeey added the beta Targeting beta release of upcoming collection label Jul 31, 2023
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@Voldivh Voldivh force-pushed the voldivh/python_bindings_actor branch from da0ad7f to a55ee73 Compare August 1, 2023 18:26
Voldivh and others added 8 commits August 8, 2023 10:31
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@Voldivh Voldivh force-pushed the voldivh/python_bindings_actor branch from a55ee73 to f01c1c3 Compare August 8, 2023 16:02
Base automatically changed from voldivh/python_bindings_world to main August 8, 2023 21:54
Voldivh and others added 4 commits August 9, 2023 07:47
Signed-off-by: Eloy Briceno <51831786+Voldivh@users.noreply.github.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Eloy Briceno <51831786+Voldivh@users.noreply.github.com>
python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.cc Show resolved Hide resolved
Voldivh and others added 2 commits August 21, 2023 14:15
Signed-off-by: Eloy Briceno <51831786+Voldivh@users.noreply.github.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Copy link
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

LGTM! Just one issue with std::chrono.

python/src/gz/sim/Actor.cc Outdated Show resolved Hide resolved
python/src/gz/sim/Actor.cc Show resolved Hide resolved
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@azeey azeey requested a review from ahcorde August 21, 2023 20:58
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.

Last comment, otherwise LGTM

#include "Actor.hh"

namespace py = pybind11;
using std::chrono::milliseconds;
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used here ? remove ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I forgot to delete that. Done

Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@azeey azeey merged commit 6dd0984 into main Aug 22, 2023
6 checks passed
@azeey azeey deleted the voldivh/python_bindings_actor branch August 22, 2023 14:26
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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants