Re-enable ray_ground_classifier_nodes Test
Description
The test filter_test
from ray_ground_classifier_nodes
will be disabled as part of #715 (closed) due to it failing only in Foxy. This test should be investigated and fixed.
How to Reproduce
Re-enable the test and compile and run in Foxy.
Current Behavior
Test produces the following output:
build/ray_ground_classifier_nodes/Testing/20210104-2149/Test.xml: 10 tests, 0 errors, 1 failure, 0 skipped
- test_ray_ground_classifier_nodes_gtest
<<< failure message
-- run_test.py: invoking following command in '/home/whitleysoftwareservices/autoware.auto.foxy/build/ray_ground_classifier_nodes':
- /home/whitleysoftwareservices/autoware.auto.foxy/build/ray_ground_classifier_nodes/test_ray_ground_classifier_nodes_gtest --gtest_output=xml:/home/whitleysoftwareservices/autoware.auto.foxy/build/ray_ground_classifier_nodes/test_results/ray_ground_classifier_nodes/test_ray_ground_classifier_nodes_gtest.gtest.xml
Running main() from /opt/ros/foxy/src/gtest_vendor/src/gtest_main.cc
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from ray_ground_classifier_pcl_validation
[ RUN ] ray_ground_classifier_pcl_validation.filter_test
[WARN] [1609796942.931126324] [ray_ground_classifier]: RayGroundClassifierNode Warning: PointCloud doesn't have intensity field
expected num of pcl not matched
actual num = 1
expected num = 2
/home/whitleysoftwareservices/autoware.auto.foxy/src/perception/filters/ray_ground_classifier_nodes/test/src/test_ray_ground_classifier_nodes.cpp:200: Failure
Value of: ray_gnd_validation_tester->receive_correct_ground_pcls( expected_gnd_pcl_size, expected_num_received)
Actual: false
Expected: true
expected num of pcl not matched
actual num = 1
expected num = 2
/home/whitleysoftwareservices/autoware.auto.foxy/src/perception/filters/ray_ground_classifier_nodes/test/src/test_ray_ground_classifier_nodes.cpp:203: Failure
Value of: ray_gnd_validation_tester->receive_correct_nonground_pcls( expected_nongnd_pcl_size, expected_num_received)
Actual: false
Expected: true
[ FAILED ] ray_ground_classifier_pcl_validation.filter_test (318 ms)
[----------] 1 test from ray_ground_classifier_pcl_validation (319 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (319 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] ray_ground_classifier_pcl_validation.filter_test
1 FAILED TEST
-- run_test.py: return code 1
-- run_test.py: inject classname prefix into gtest result file '/home/whitleysoftwareservices/autoware.auto.foxy/build/ray_ground_classifier_nodes/test_results/ray_ground_classifier_nodes/test_ray_ground_classifier_nodes_gtest.gtest.xml'
-- run_test.py: verify result file '/home/whitleysoftwareservices/autoware.auto.foxy/build/ray_ground_classifier_nodes/test_results/ray_ground_classifier_nodes/test_ray_ground_classifier_nodes_gtest.gtest.xml'
>>>
build/ray_ground_classifier_nodes/test_results/ray_ground_classifier_nodes/test_ray_ground_classifier_nodes_gtest.gtest.xml: 1 test, 0 errors, 1 failure, 0 skipped
- ray_ground_classifier_nodes.ray_ground_classifier_pcl_validation filter_test
<<< failure message
/home/whitleysoftwareservices/autoware.auto.foxy/src/perception/filters/ray_ground_classifier_nodes/test/src/test_ray_ground_classifier_nodes.cpp:200
Value of: ray_gnd_validation_tester->receive_correct_ground_pcls( expected_gnd_pcl_size, expected_num_received)
Actual: false
Expected: true
/home/whitleysoftwareservices/autoware.auto.foxy/src/perception/filters/ray_ground_classifier_nodes/test/src/test_ray_ground_classifier_nodes.cpp:203
Value of: ray_gnd_validation_tester->receive_correct_nonground_pcls( expected_nongnd_pcl_size, expected_num_received)
Actual: false
Expected: true
>>>
Expected behavior
Test should pass.