Skip to content

Refactor capture and transformation handles #59

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

Merged
merged 84 commits into from
Sep 17, 2020

Conversation

shagren
Copy link
Contributor

@shagren shagren commented Sep 3, 2020

Big refactoring

  • Calibration and Transformation now has corresponding python classes. Many related logic refactored.
  • device_containers not used anymore in k4a_module.
  • playback can return captures.
  • examples for transformation, playback, benchmark
  • lots of tests

@shagren shagren changed the title Refactor transformation Refactor capture and transformation handles Sep 10, 2020
@shagren shagren marked this pull request as ready for review September 10, 2020 17:31
@shagren
Copy link
Contributor Author

shagren commented Sep 10, 2020

@lpasselin can you review this minor ;-) PR ?

Copy link
Collaborator

@lpasselin lpasselin left a comment

Choose a reason for hiding this comment

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

Amazing work, we are really lucky that you worked on this project!
I left some small comments but nothing major that can't be merged already.

Great job on the testing. I did not go into details for the tests yet but I will when implementing the body tracking.

Thanks for the PR it's great work again!

You must open device before querying any information
"""
if self.opened:
raise K4AException("Device already opened")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to raise exception here? or do nothing is already open

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer to raise exception here.
Let's leave as is and review open/start logic in future.
I.e. _start_imu and _start_cameras can be public: use can start only required modules.

@lpasselin
Copy link
Collaborator

Let me know when you feel it is ready to merge into develop. I'll test with my device then.

@shagren
Copy link
Contributor Author

shagren commented Sep 14, 2020

@lpasselin , i think this PR can be merged now.
I will work on some other features after.

@shagren shagren mentioned this pull request Sep 15, 2020
@lpasselin lpasselin merged commit c407f3e into etiennedub:develop Sep 17, 2020
@shagren shagren deleted the refactor-transformation branch March 1, 2021 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants