-
Notifications
You must be signed in to change notification settings - Fork 44
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 a basic unit test for PointCloud functionality #496
Conversation
This PR adds a very trivial (happy path) unit test for PointCloud functionality. Hopefully, I will get more time to add more functionality to this test over time. TODOS: * Check behaviour with NaNs * Check mismatched float and pointcloud sizes * Check malformed point cloud. Signed-off-by: Arjo Chakravarty <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-gui7 #496 +/- ##
===========================================
+ Coverage 70.91% 73.04% +2.12%
===========================================
Files 45 45
Lines 4941 4941
===========================================
+ Hits 3504 3609 +105
+ Misses 1437 1332 -105 |
Signed-off-by: Arjo Chakravarty <[email protected]>
@arjo129 what is the status of this PR? Will you be addressing the TODOs here? |
We can merge this as is and Ill increase coverage over time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this test be added to PointCloud_TEST instead?
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some more minor comments. Could you summarize the reason for the point cloud publisher/msg? In the marker message callback, only the flatMsg
data is being checked but not pcMsg
. It would be nice to check the point cloud data as well.
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
The rationale for this is that the pcMsg provides data about position of the markers whereas the marker messages provide data about position. The test checks that the marker messages have the correct color values (which is what the point-cloud plugin basically does). |
Signed-off-by: Ian Chen <[email protected]>
I think that the |
This PR adds a very trivial (happy path) unit test for PointCloud functionality. Hopefully, I will get more time to add more functionality to this test over time.
TODOS:
Signed-off-by: Arjo Chakravarty [email protected]