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 Sensor convenience class #2042

Merged
merged 49 commits into from
Aug 21, 2023

Conversation

Voldivh
Copy link
Contributor

@Voldivh Voldivh commented Jul 19, 2023

🎉 New feature

Summary

This PR adds bindings for the Sensor 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>
@osrf-triage osrf-triage added this to Inbox in Core development Jul 19, 2023
@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:13
@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #2042 (94695f2) into main (0cf11dc) will increase coverage by 0.02%.
The diff coverage is 62.50%.

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

@@            Coverage Diff             @@
##             main    #2042      +/-   ##
==========================================
+ Coverage   65.40%   65.42%   +0.02%     
==========================================
  Files         316      317       +1     
  Lines       29975    29999      +24     
==========================================
+ Hits        19605    19628      +23     
- Misses      10370    10371       +1     
Files Changed Coverage Δ
python/src/gz/sim/Sensor.cc 60.86% <60.86%> (ø)
python/src/gz/sim/_gz_sim_pybind11.cc 100.00% <100.00%> (ø)

... and 3 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/Sensor.cc Show resolved Hide resolved
python/src/gz/sim/Sensor.cc Outdated Show resolved Hide resolved
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
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
* Copyright (C) 2021 Open Source Robotics Foundation
* Copyright (C) 2023 Open Source Robotics Foundation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

I still see 2021

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird I might have changed in other place and forgot about this one. It should be done now.

Core development automation moved this from Inbox to In review Jul 19, 2023
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 changed the base branch from main to voldivh/python_bindings_joint July 27, 2023 14:28
@Voldivh Voldivh requested a review from mabelzhang as a code owner July 27, 2023 14:28
@Voldivh Voldivh force-pushed the voldivh/python_bindings_sensor branch from cccb6cb to f7ed1e6 Compare July 27, 2023 14:29
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_joint branch from ca7ec46 to a0b8568 Compare August 1, 2023 18:10
@Voldivh Voldivh force-pushed the voldivh/python_bindings_sensor branch from 77022c1 to 1ab1533 Compare August 1, 2023 18:24
Voldivh and others added 7 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>
@Voldivh Voldivh force-pushed the voldivh/python_bindings_sensor branch from 1ab1533 to 4050b98 Compare August 8, 2023 15:59
Voldivh and others added 14 commits August 10, 2023 13:19
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>
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: 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>
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>
Base automatically changed from voldivh/python_bindings_joint to main August 17, 2023 02:04
Voldivh and others added 2 commits August 17, 2023 07:30
Signed-off-by: Eloy Briceno <51831786+Voldivh@users.noreply.github.com>
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
python/src/gz/sim/Sensor.cc Outdated Show resolved Hide resolved
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
Copy link
Contributor

Choose a reason for hiding this comment

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

I still see 2021

Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@azeey azeey requested a review from ahcorde August 17, 2023 16:57
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 comment about SensorTopic.

python/test/sensor_TEST.py Outdated Show resolved Hide resolved
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@azeey azeey enabled auto-merge (squash) August 18, 2023 18:46
@azeey azeey dismissed ahcorde’s stale review August 21, 2023 19:12

Feedback addressed

@azeey azeey merged commit b16de11 into main Aug 21, 2023
7 of 10 checks passed
@azeey azeey deleted the voldivh/python_bindings_sensor branch August 21, 2023 19:12
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.

None yet

4 participants