Robotics StackExchange | Archived questions

ROS2 Navigation2 karto_sdk User Warning

On a Linux 20.04 Bionic VMBox on MACM1, aarch64 Machine, after "installing ROS2 via Foxy with Debian Packages", https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html, ros-foxy-desktop, and configured the colconw workspace, configured and sourced .bashrc, ran :~printenv|grep ROS with this result, indicating a good install: ROSVERSION=2 ROSPYTHONVERSION=3 ROSDOMAINID=0 ROSLOCALHOSTONLY=0 ROS_DISTRO=foxy

executed :~ sudo ros2 doctor All 4 checks passed

Then installed ROS2 "ros-foxy-navigation2" and ros-foxy-nav2-bringup and executed :~ sudo ros2 doctor, to validate installation with result: /opt/ros/foxy/lib/python3.8/site-packages/ros2doctor/api/package.py: 124: UserWarning: Cannot find required versions of packages: karto_sdk

All 4 checks passed

:~

I was unable to locate the apparent missing package. Is this a critical issue or is there a remedy?

Asked by RobotRoss on 2021-12-08 18:11:30 UTC

Comments

Answers

This is likely related to slam_toolbox's (which is an exec dependency of nav2_bringup) dependence on open_karto. Have you run rosdep install -q -y -r --from-paths src --ignore-src. Is slam_toolbox installed on your system? (apt install ros-foxy-slamtoolbox).

As to whether or not this is a "critical" error, it depends if you want to use the functionality offered by these libraries. Non-slam functionality will likely still work just fine.

Asked by shonigmann on 2021-12-09 14:54:55 UTC

Comments

Removing ros-foxy navigation2 & ros-foxy-nav2-bringup, no karto_sdk warning message. Installed ros-foxy-slam-toolbox, warning returned. So git clone the foxy slam_toolbox into the colcon_ws/src. Did a rosdep with "ll required rosdeps installed successfully". colcon build gereated fatal error: tf2_geometry_msgs/tf2_geometry_msgs.hpp: No such file or directory

Asked by RobotRoss on 2021-12-09 17:43:35 UTC

Comments

based on that, I'd guess that either your ros install isn't sourced (source /opt/ros/foxy/setup.bash) or you need to install missing message definitions (apt install ros-foxy-tf2-geometry-msgs)

Asked by shonigmann on 2021-12-09 19:27:06 UTC

Trying the install, Its manually installed.. When I do a .bashrc, . .bashrc not found: "/home/ubuntu/colcon_ws/install/slam_toolbox/share/slam_toolbox/local_setup.bash"

Asked by RobotRoss on 2021-12-10 21:57:33 UTC