Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linorobot2 install bash error ( Galactic ) #70

Open
Sylvania2 opened this issue May 7, 2023 · 1 comment
Open

linorobot2 install bash error ( Galactic ) #70

Sylvania2 opened this issue May 7, 2023 · 1 comment

Comments

@Sylvania2
Copy link

Sylvania2 commented May 7, 2023

Going back to Galactic ( Humble has issues with pointcloud ) i got this error when running install script
bash install_linorobot2.bash 2wd rplidar realsense ( Ubuntu 20.0.6 ROS2 Galactic )

(after command: rosdep install --from-path src --ignore-src -y)
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
linorobot2_description: Cannot locate rosdep definition for [xacro]
linorobot2_navigation: Cannot locate rosdep definition for [nav2_bringup]
linorobot2_bringup: Cannot locate rosdep definition for [joy_linux]

so far i solved it with adding: rosdep update --include-eol-distros

Best regards

@SHABRAWii
Copy link

SHABRAWii commented Mar 23, 2024

Problem

I found out that these packages are not official ros package so you can't install them with rosdep.

Solution

Instead, you should install it with apt-get using sudo apt-get install ros-<your-distro>-<package>
Example: sudo apt-get install ros-foxy-xacro

You will also face some errors about missing packages after installing these three packages. So let me show you how to install all unofficial packages used in this project.

Packages that are needed to be installed:

[xacro]          sudo apt-get install ros-foxy-xacro -y
[nav2_bringup]     sudo apt install ros-foxy-nav2-bringup
[joy_linux]       sudo apt install ros-foxy-joy-linux
[joy]         sudo apt install ros-foxy-joy
[joint_state_publisher] sudo apt install ros-foxy-joint-state-publisher
[robot_localization]    sudo apt install ros-foxy-robot-localization

Continue with installation and build

As shown in install_linorobot2.bash you must do the following:

rosdep update && rosdep install --from-path src --ignore-src -y --skip-keys microxrcedds_agent
colcon build
source $WORKSPACE/install/setup.bash

or automatically run the script again

bash install_linorobot2.bash <robot_type> <laser_sensor> <depth_sensor>

References

One good reference that enlighten my way: Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants