We were following the steps in the Tutorial, when we got to the colcon test part to test the installation, we got this running the command:
colcon test --packages-select ardupilot_dds_tests
Starting >>> ardupilot_dds_tests
[Processing: ardupilot_dds_tests]
[Processing: ardupilot_dds_tests]
--- stderr: ardupilot_dds_tests
=============================== warnings summary ===============================
test/test_flake8.py::test_flake8
test/test_flake8.py::test_flake8
Warning: SelectableGroups dict interface is deprecated. Use select.
-- Docs: https://docs.pytest.org/en/stable/warnings.html
---
Finished <<< ardupilot_dds_tests [1min 2s] [ with test failures ]
Summary: 1 package finished [1min 8s]
1 package had stderr output: ardupilot_dds_tests
1 package had test failures: ardupilot_dds_tests
build/ardupilot_dds_tests/pytest.xml: 8 tests, 0 errors, 5 failures, 0 skipped
Upon using the command, we then got:
colcon test-result --all --verbose
- ardupilot_dds_tests.test.ardupilot_dds_tests.test_navsat_msg_received test_dds_serial_navsat_msg_recv
<<< failure message
AssertionError: Did not receive 'ap/navsat/navsat0' msgs.
assert False
>>>
- ardupilot_dds_tests.test.ardupilot_dds_tests.test_navsat_msg_received test_dds_udp_navsat_msg_recv
<<< failure message
AssertionError: Did not receive 'ap/navsat/navsat0' msgs.
assert False
>>>
- ardupilot_dds_tests.test.ardupilot_dds_tests.test_time_msg_received test_dds_serial_time_msg_recv
<<< failure message
AssertionError: Did not receive 'ROS_Time' msgs.
assert False
>>>
- ardupilot_dds_tests.test.ardupilot_dds_tests.test_time_msg_received test_dds_udp_time_msg_recv
<<< failure message
AssertionError: Did not receive 'ROS_Time' msgs.
assert False
>>>
- ardupilot_dds_tests.test.ardupilot_dds_tests.test_virtual_ports test_virtual_ports
<<< failure message
AssertionError: Test process had no output.
assert 'N starting data transfer loop' in '/bin/sh: 1: socat: not found\n'
>>>
Summary: 8 tests, 0 errors, 5 failures, 0 skipped
It’s the first time we are installing Ardupilot on ROS2 and so we don’t know what to do in order to fix it. Any help would be helpful.