moveit / moveit2_tutorials

A sphinx-based centralized documentation repo for MoveIt 2
https://moveit.picknik.ai
BSD 3-Clause "New" or "Revised" License
147 stars 191 forks source link

colcon build --mixin release CMake error gz_sim_vendor #931

Closed muhidabid closed 4 weeks ago

muhidabid commented 1 month ago

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

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

christiandumasrobo commented 1 month ago

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

17609394ch commented 1 month ago

me too

yusufkizgin commented 1 month ago

Did you solve this issue? I have same issue.

muhidabid commented 1 month ago

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

yusufkizgin commented 1 month ago

Okay, i am following. Thank you.

T3rO commented 1 month ago

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

muhidabid commented 1 month ago

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

li-huanhuan commented 1 month ago

me too

ubuntu22.04.4 humble

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

sea-bass commented 1 month ago

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

T3rO commented 1 month ago

@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 commented 1 month ago

@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

sea-bass commented 1 month ago

@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.

MartinsSmirnovs commented 1 month ago

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.

sea-bass commented 1 month ago

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.

T3rO commented 1 month ago

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

muhidabid commented 1 month ago

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

image

sea-bass commented 1 month ago

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 commented 1 month ago

@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
muhidabid commented 1 month ago

@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

sea-bass commented 1 month ago

@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!

Thgm01 commented 1 month ago

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

yusufkizgin commented 1 month ago

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

kimhw1009 commented 1 month ago

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.

yusufkizgin commented 1 month ago

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 :)

muhidabid commented 1 month ago

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

sea-bass commented 4 weeks ago

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.

Ivan-Rod-Diz commented 1 week ago

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 :)