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

How to properly install the package in ROS2 humble #32

Open
LeonYo153 opened this issue Apr 26, 2024 · 3 comments
Open

How to properly install the package in ROS2 humble #32

LeonYo153 opened this issue Apr 26, 2024 · 3 comments

Comments

@LeonYo153
Copy link

Dear Sir, I noticed that your packages are in ROS2 Galactic, But now I use humble, and I couldn't properly install. Since you have a humble version in pymoveit2, I think it should be okay with humble.

I tried to use: git clone https://github.com/AndrejOrsula/panda_ign_moveit2.git -b humble
but it turned out with: fatal: Remote branch humble not found in upstream origin

the errors are listed under.Thank you for your time.

CMake Error at CMakeLists.txt:32 (find_package):
By not providing "Findignition-transport10.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ignition-transport10", but CMake did not find one.

Could not find a package configuration file provided by
"ignition-transport10" with any of the following names:

ignition-transport10Config.cmake
ignition-transport10-config.cmake

Add the installation prefix of "ignition-transport10" to CMAKE_PREFIX_PATH
or set "ignition-transport10_DIR" to a directory containing one of the
above files. If "ignition-transport10" provides a separate development
package or SDK, be sure it has been installed.


Failed <<< ros_ign_gazebo [5.94s, exited with code 1]
Aborted <<< ros_ign_interfaces [7.30s]

Summary: 0 packages finished [8.35s]
1 package failed: ros_ign_gazebo
1 package aborted: ros_ign_interfaces
1 package had stderr output: ros_ign_gazebo
20 packages not processed

@AndrejOrsula
Copy link
Owner

Hello,

You are missing Gazebo, which is a dependency. This is documented in README.

@LeonYo153
Copy link
Author

Thank you for your reply, but though I install the gazebo, the problem seems not solved yet.
I follow the warning tips, but not found the indicated files.
image
the errors are listed below:
[2.033s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
'gripper_controllers' is in: /opt/ros/humble
'joint_state_broadcaster' is in: /opt/ros/humble
'joint_trajectory_controller' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
--allow-overriding gripper_controllers joint_state_broadcaster joint_trajectory_controller

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> ros_ign_gazebo
Starting >>> ros_ign_interfaces
--- stderr: ros_ign_gazebo
CMake Error at CMakeLists.txt:32 (find_package):
By not providing "Findignition-transport10.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ignition-transport10", but CMake did not find one.

Could not find a package configuration file provided by
"ignition-transport10" with any of the following names:

ignition-transport10Config.cmake
ignition-transport10-config.cmake

Add the installation prefix of "ignition-transport10" to CMAKE_PREFIX_PATH
or set "ignition-transport10_DIR" to a directory containing one of the
above files. If "ignition-transport10" provides a separate development
package or SDK, be sure it has been installed.

@sara-aldhaheri
Copy link

Hello @LeonYo153 ,

I came across the same issue as you mentioned. I fixed it by first installing Gazebo Fortress.

# Necessary tools according to the linked page
sudo apt-get update
sudo apt-get install lsb-release gnupg

# Ignition Fortress Install
sudo curl https://packages.osrfoundation.org/gazebo.gpg --output /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
sudo apt-get update
sudo apt-get install ignition-fortress

I'm also working with ROS2 Humble, so make sure you cloned that branch.

git clone https://github.com/AndrejOrsula/panda_ign_moveit2.git -b humble_devel

HTH

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

3 participants