gazebosim / gz-gui

Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
https://gazebosim.org
Apache License 2.0
67 stars 39 forks source link

Adds a basic unit test for PointCloud functionality #496

Closed arjo129 closed 9 months ago

arjo129 commented 1 year ago

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 arjo@openrobotics.org

codecov[bot] commented 1 year ago

Codecov Report

Merging #496 (69b3972) into gz-gui7 (c93dd14) will increase coverage by 2.12%. The diff coverage is n/a.

:exclamation: Current head 69b3972 differs from pull request most recent head e79ec8d. Consider uploading reports for the commit e79ec8d to get more accurate results

@@             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     

see 1 file with indirect coverage changes

jennuine commented 1 year ago

@arjo129 what is the status of this PR? Will you be addressing the TODOs here?

arjo129 commented 1 year ago

We can merge this as is and Ill increase coverage over time.

arjo129 commented 1 year ago

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.

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).

mjcarroll commented 10 months ago

I think that the focal failures here in CI are unrelated to this PR?