ROS2 Humble install done
MAVROS2 Humble install done
sudo apt-get install ros-humble-mavros
sudo apt-get install ros-humble-mavros-extras
ROS_VERSION=2
ROS_PYTHON_VERSION=3
ROS_DISTRO=humble
now stuck at Command ‘vcs’ not found, did you mean:
this is really confusing, should be this one but did not mention in the ardupilot document.
what is the expected completion for colcon build, it just no new message after Finished <<< ardupilot_msgs [41.6s], and I do Ctlr+C after a few minutes.
$colcon test --packages-select ardupilot_dds_tests
Starting >>> ardupilot_dds_tests
[6.708s] ERROR:colcon.colcon_core.task.python.test:Failed to find the following files:
- /home/pi/ros2_ws/install/ardupilot_sitl/share/ardupilot_sitl/package.sh
- /home/pi/ros2_ws/install/ardupilot_dds_tests/share/ardupilot_dds_tests/package.sh
Check that the following packages have been built: - ardupilot_sitl
- ardupilot_dds_tests
Failed <<< ardupilot_dds_tests [0.20s, exited with code 1]
Summary: 0 packages finished [4.71s]
1 package failed: ardupilot_dds_tests
$colcon build --packages-up-to ardupilot_dds_tests
Starting >>> micro_ros_agent
Starting >>> ardupilot_msgs
[Processing: ardupilot_msgs, micro_ros_agent]
Finished <<< ardupilot_msgs [41.6s]
[2nd attempt]
okay it took very very very long to complete after second attempt on colcon build with warnings. 4 tests failed.
Finished <<< ardupilot_dds_tests [7.06s]
Summary: 4 packages finished [44min 54s]
stderr: micro_ros_agent
HEAD is now at c25243c Enable Domain Override on Reference and XML Participant (#351)
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(tinyxml2)
does not match the name of the calling package (TinyXML2). This can lead
to problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
cmake/modules/FindTinyXML2.cmake:40 (find_package_handle_standard_args)
/opt/ros/humble/share/fastrtps/cmake/fastrtps-config.cmake:51 (find_package)
CMakeLists.txt:153 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
stderr: ardupilot_dds_tests
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Starting >>> ardupilot_dds_tests
[Processing: ardupilot_dds_tests]
[Processing: ardupilot_dds_tests]
Finished <<< ardupilot_dds_tests [1min 14s] [ with test failures ]
Summary: 1 package finished [1min 19s]
1 package had test failures: ardupilot_dds_tests
build/ardupilot_dds_tests/pytest.xml: 7 tests, 0 errors, 4 failures, 0 skipped
-
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
Summary: 7 tests, 0 errors, 4 failures, 0 skipped
[Edit]
roscore is dead in ROS2. so this statement needs to update.