I am trying to install the LSS-ROS2-Arms package.
I am following the instructions on GitHub - Lynxmotion/LSS-ROS2-Arms
I am running Ubuntu 20.04.6 and ROS2 Galactic.
My problem is with this build command: colcon build --symlink-install
Specifically it is failing when trying to git clone:
I’m not knowledgeable about using public keys with github.
Can someone provided instructions to make a public key to work.
OR provide instructions on how to use https method of git clone with the colcon build.
cnl@cnl-Latitude-E7470:~/Projects/SEED-HRI/Apps/LSS-ROS2/LSS-ROS2-Arms$ colcon build --symlink-install --packages-select lss_ros2_control Starting >>> lss_ros2_control The authenticity of host ‘github.com (140.82.112.4)’ can’t be established. ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
*[2.9s] [0/1 complete] [lss_ros2_control:build 10% - 2.5s] erprint])? *
*— stderr: lss_ros2_control * Cloning into ‘lynxmotion-lss’… Warning: Permanently added ‘github.com,140.82.112.4’ (ECDSA) to the list of known hosts.
Please make sure you have the correct access rights and the repository exists. Cloning into ‘lynxmotion-lss’… [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. Cloning into ‘lynxmotion-lss’… [email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. CMake Error at /home/cnl/Projects/SEED-HRI/Apps/LSS-ROS2/LSS-ROS2-Arms/build/lss_ros2_control/lynxmotion-lss/tmp/lynxmotion-lss-gitclone.cmake:31 (message):
I resolved git clone issue.
Now I have a problem building lss_ros2_control using:
colcon build --symlink-install --packages-select lss_ros2_control
I noticed this fault is similar to this post which has no resolution:
I followed these steps but it made no difference:
sudo apt update
sudo apt install gcc-10
sudo apt install g+±10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 --slave /usr/bin/g++ g++ /usr/bin/g+±10
sudo update-alternatives --auto gcc
gcc --version
returns:
gcc (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I think you’ve installed the ROS2 dependancies but have you brought in the ros2 build platform using something like:
source /opt/ros/ros2-galactic/setup.bash
Since the errors are not finding the rclcpp namespace, it indicates that the includes/libs/etc for ros2 itself has not been setup. Typically people would add the source command to their .bash_profile or something so it’s done automatically.
Ros2 environments work by “sourcing overlays”. You source the main ros2 (i.e. galactic), then you can build Ros projects, then you have to source those too so ros2 can find and run the project you just compiled. If you use gazebo, you have to source that too…so for me, when setting up my build environment I would do something like:
source /opt/ros/galactic/setup.bash
source /usr/local/share/gazebo/setup.sh
source ~/src/ros/lss/install/setup.bash <== where I put my lss-ros2 projects I previously built
If I haven’t built the lss-ros2 stuff yet then I wouldn’t source it yet either. I’d source the first two, then cd into ~/src/ros/lss and do the colcon build, then source after that. I would have git cloned all the lss-ros2 projects into ~/src/ros/lss but this dir is arbitrary - could be anywhere you want.