moveit2_tutorials icon indicating copy to clipboard operation
moveit2_tutorials copied to clipboard

colcon build --mixin release CMake error gz_sim_vendor

Open muhidabid opened this issue 1 year ago • 20 comments

Description

I am unable to colcon build due to a CMake error. I have spent a day trying to fix this but no luck so far.

Your environment

  • ROS Distro: [humble|iron]
  • OS Version: Ubuntu 22.04.4 Jammy Jellyfish (VirtualBox 19GB RAM, 50GB storage)
  • Build: Followed Getting Started Tutorial

Steps to reproduce

Installed ROS2 Iron following this page. Then setup moveit2 following this page

Expected behaviour

The project should build without errors

Backtrace or Console output

Gist link

muhidabid avatar Jul 27 '24 12:07 muhidabid

Exactly the same issue today, will be following this thread.

christiandumasrobo avatar Jul 28 '24 17:07 christiandumasrobo

me too

17609394ch avatar Jul 29 '24 02:07 17609394ch

Did you solve this issue? I have same issue.

yusufkizgin avatar Jul 30 '24 10:07 yusufkizgin

I've been trying but no luck so far @yusufkizgin

muhidabid avatar Jul 30 '24 10:07 muhidabid

Okay, i am following. Thank you.

yusufkizgin avatar Jul 30 '24 11:07 yusufkizgin

For ROS Iron I deleted gz_ros2_control from ws_moveit/src then download again, but the iron branch: git clone https://github.com/ros-controls/gz_ros2_control -b iron

T3rO avatar Jul 31 '24 20:07 T3rO

@T3rO I just tried that but it gives me a new error upon colcon build: Error output gist

muhidabid avatar Jul 31 '24 22:07 muhidabid

me too

ubuntu22.04.4 humble

Screenshot from 2024-08-01 11-31-25

li-huanhuan avatar Aug 01 '24 03:08 li-huanhuan

Are you all checking out the humble branch of this repo?

There have been some recent changes on the main branch here regarding the ros2_kortex repo (which pulls in the offending dependency), but there are meant to track ROS 2 Rolling on Ubuntu 24.04 going forward.

For Iron, I think the maintainers will/should probably cut a separate branch and this may not be working at the moment unless you manually roll your version of ros2_kortex to this one: https://github.com/Kinovarobotics/ros2_kortex

sea-bass avatar Aug 01 '24 04:08 sea-bass

@T3rO I just tried that but it gives me a new error upon colcon build: Error output gist

Yes I had this error too. I used this fix: https://github.com/PickNikRobotics/ros2_robotiq_gripper/issues/60

T3rO avatar Aug 01 '24 07:08 T3rO

@sea-bass I think an Iron branch in this repo would be nice, and then also mention that a specific branch has to be checked out in the installation guide

T3rO avatar Aug 01 '24 07:08 T3rO

@sea-bass I think an Iron branch in this repo would be nice, and then also mention that a specific branch has to be checked out in the installation guide

I see. That one is also due to there being newer changes on Rolling, and you could grab the humble branch of that repo.

All in all, it seems that all these new updates need to be handled correctly on non-rolling versions of the tutorials repo.

sea-bass avatar Aug 01 '24 09:08 sea-bass

I have a feeling that I will never be able to go through moveit tutorials. First #918 which does not allow to get the environment itself and now this.

MartinsSmirnovs avatar Aug 01 '24 17:08 MartinsSmirnovs

OK yeah so the issue is that the gz_sim_vendor package is only available on Jazzy and Rolling, per https://index.ros.org/search/?term=gz_sim_vendor

Meaning the main branch of this repo is not currently compatible with humble/iron.

sea-bass avatar Aug 01 '24 22:08 sea-bass

Is there a branch in this repo that is compatible with iron?

T3rO avatar Aug 02 '24 08:08 T3rO

@sea-bass I tried rolling but that gives me a new error

image

muhidabid avatar Aug 02 '24 10:08 muhidabid

Is there a branch in this repo that is compatible with iron?

Nope, I think there are only branches for LTS releases, meaning a humble branch and then a main (which right now is supposed to work for Jazzy/Rolling).

With luck, the humble branch should also work with Iron as the changes were fairly minimal and they use the same supported Ubuntu version (22.04).

sea-bass avatar Aug 02 '24 12:08 sea-bass

@sea-bass I tried rolling but that gives me a new error

As documented in the getting started tutorial, try this from your workspace root to install any missing packages like the one you're pointing out?

rosdep install --from-paths src -y --ignore-src

sea-bass avatar Aug 02 '24 12:08 sea-bass

@sea-bass I followed the getting started tutorial and installed from my workspace root using rosdep install --from-paths src -y --ignore-src but I am still getting the same error

muhidabid avatar Aug 02 '24 12:08 muhidabid

@sea-bass I followed the getting started tutorial and installed from my workspace root using rosdep install --from-paths src -y --ignore-src but I am still getting the same error

You should check if the command ran successfully, i.e., it found all the packages or it failed to resolve some. Also it helps to do a sudo apt update first to make sure your repos are up to date.

If you switched ros distros, you may also need to go through the rosdep init / rosdep update cycle again as well.

Anyways, I am unable to debug every small issue for everyone, so just sharing some pointers for people to consider and/or contribute fixes as you find them.

All the best!

sea-bass avatar Aug 02 '24 13:08 sea-bass

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

Thgm01 avatar Aug 03 '24 16:08 Thgm01

actually i deleted even my virtual machine but it doesn't work :/

yusufkizgin avatar Aug 03 '24 18:08 yusufkizgin

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

I tried this way and it was successful. Change to ROS humble.

kimhw1009 avatar Aug 04 '24 08:08 kimhw1009

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

I tried this and it worked. obrigado :)

yusufkizgin avatar Aug 04 '24 12:08 yusufkizgin

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

It took a few tries but this worked for me as well. Thank you! @Thgm01

muhidabid avatar Aug 04 '24 20:08 muhidabid

Thanks to everyone for sharing your solutions!

As a recap: Since the main branch of this repo tracks ROS 2 rolling, it is not guaranteed to work on Humble. So, as many have pointed out, you can use the humble branch of the tutorials on Humble.

sea-bass avatar Aug 10 '24 17:08 sea-bass

I have the same error, but first I deleted the rosdep list using sudo rm /etc/ros/rosdep/sources.list.d/20-default.list and deleted the ws with rm -rf ws_moveit/ then, I Followed the Getting Started Tutorial but instead use git clone https://github.com/moveit/moveit2_tutorials i used git clone https://github.com/moveit/moveit2_tutorials -b humble and it worked for me.

edit: I'm using ROS Humble and Ubuntu 22.04

This also worked fo me :)

Ivan-Rod-Diz avatar Aug 29 '24 15:08 Ivan-Rod-Diz