I'm trying for the last 3 days to install Ros2 Foxy (ros2-foxy-20201211-linux-focal-arm64.tar.bz2) in a freshly installed Ubuntu 20.10 arm64 running in a Raspberry Pi 4. Following the official documentation: https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Binary/ I'm hitting several issues (in order following the official documentation steps):
1. Missing Groovy release
$> sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
$> sudo apt update
Err:5 http://packages.ros.org/ros2/ubuntu groovy Release 404 Not Found [IP: 64.50.233.100 80]
I can fix this issue changing groovy
to focal
in /etc/apt/sources.list.d/ros2-latest.list
2. Missing Ros dependencies
$> rosdep install --from-paths ros2-linux/share --ignore-src --rosdistro foxy -y --skip-keys "console_bridge fastcdr fastrtps osrf_testing_tools_cpp poco_vendor rmw_connext_cpp rosidl_typesupport_connext_c rosidl_typesupport_connext_cpp rti-connext-dds-5.3.1 tinyxml_vendor tinyxml2_vendor urdfdom urdfdom_headers"
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: launch: No definition of [python3-lark-parser] for OS version [groovy] rosidl_parser: No definition of [python3-lark-parser] for OS version [groovy] ros2doctor: No definition of [python3-ifcfg] for OS version [groovy] rmw_cyclonedds_cpp: No definition of [cyclonedds] for OS version [groovy]
Again I can solve this forcing os in rosdep
with --os ubuntu:focal
2. Missing libraries
$> ros2 run demo_nodes_cpp talker
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError' what(): failed to initialize rcl init options: failed to load shared library of rmw implementation: /home/ubuntu/ros2_foxy/ros2-linux/lib/librmw_fastrtps_cpp.so Exception: LoadLibrary error: libtinyxml2.so.6: cannot open shared object file: No such file or directory, at /home/jenkins-agent/workspace/ci_packaging_linux-aarch64/ws/src/ros2/rcutils/src/shared_library.c:84, at /home/jenkins-agent/workspace/ci_packaging_linux-aarch64/ws/src/ros2/rmw_implementation/rmw_implementation/src/functions.cpp:62, at /home/jenkins-agent/workspace/ci_packaging_linux-aarch64/ws/src/ros2/rcl/rcl/src/rcl/init_options.c:61
I tried as well the debian package installation instructions without success: https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Debians/
I need some help to find a solution for a working installation.
Originally posted by veilkrand on ROS Answers with karma: 23 on 2021-02-19
Post score: 0