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

add sanity check for camera info #40

Closed

Conversation

ijnek
Copy link
Member

@ijnek ijnek commented Aug 7, 2022

Not ready for review.

I think the sanity of the CameraInfo should be checked, but the sanity checking code shouldn't belong to this ipm library. The tests in test_sanity_camera_info.py are also not great. The sanity check only checks for the K value too... Leaving this as a draft for now.

Resolves: #34

@jaagut
Copy link
Contributor

jaagut commented Oct 25, 2022

sanity checking code shouldn't belong to this ipm library

Where would you put this then?

@ijnek
Copy link
Member Author

ijnek commented Oct 25, 2022

I don't think sanity checking CameraInfo is specific to ipm.
I believe there should be a ROS2 sanity checking library that uses a templates (or plugin architecture) to allow sanity checking any custom ROS 2 message type.

@ijnek
Copy link
Member Author

ijnek commented Dec 9, 2022

Closing this PR, as I don't believe this code belongs in ipm.

@ijnek ijnek closed this Dec 9, 2022
@ijnek ijnek deleted the ijnek-sanity-check-camera-info branch December 9, 2022 13:26
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.

Add InvalidCameraInfo exception
2 participants