moveit2: [ROS2 Foxy] rosdep install E: Unable to locate package ros-foxy-moveit-

Description

Installing moveit2 by instructions for Foxy

$ rosdep install -r --from-paths . --ignore-src --rosdistro foxy -y

apt: Failed to detect successful installation of ros-foxy-moveit- .............

See logs below.

environment

  • ROS2 Foxy
  • Ubuntu 20.04 (WSL2)
  • Binary

Actual behaviour

$ rosdep install -r --from-paths . --ignore-src --rosdistro foxy -y

ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-common] failed
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-core] failed
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-ros-planning] failed
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-ros-planning-interface] failed
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-ros-perception] failed
  apt: command [sudo -H apt-get install -y ros-foxy-moveit-fake-controller-manager] failed
  apt: Failed to detect successful installation of [ros-foxy-moveit-common]
  apt: Failed to detect successful installation of [ros-foxy-moveit-core]
  apt: Failed to detect successful installation of [ros-foxy-moveit-ros-planning]
  apt: Failed to detect successful installation of [ros-foxy-moveit-ros-planning-interface]
  apt: Failed to detect successful installation of [ros-foxy-moveit-ros-perception]
  apt: Failed to detect successful installation of [ros-foxy-moveit-fake-controller-manager]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (15 by maintainers)

Most upvoted comments

@newcanopies gavanderhoorn is correct that the changes are to build on Windows and not on WSL which would be building on whichever Linux kernel you are using. We have not tested moveit2 on WSL.

Following these instructions and installing ros-foxy-desktop will allow you to use Moveit2 on Windows: https://ms-iot.github.io/ROSOnWindows/GettingStarted/SetupRos2.html

while this WSL build fork https://github.com/lilustga/moveit2/tree/builds_on_windows does process significantly more moveit2 dependencies than the master source build, it also does ultimately fail to build.

Afaik @lilustga is an MS employee. IIRC, the changes he made were to make MoveIt2 build on Windows, using MSCV/Visual Studio.

Building in a WSL2 session/terminal wouldn’t need those, as you’re not using Visual Studio there.

Here is a fork that at one point worked on windows: https://github.com/lilustga/moveit2/tree/builds_on_windows

could it be that some of the branches in moveit2.repos and their sub/modules, are out of sync with Foxy?

The issue is that we removed the actual moveit2 repo itself from that file and you’ll need to use git to manually clone it into your source directory. I’m sorry about that. We made this change because this file is meant to represent the source dependencies of the repo and should not contain the repo itself.

Two things. I see now that those instructions are missing something. You need to download the moveit2 repo itself into the source directory.

git clone https://github.com/ros-planning/moveit2.git

That’s where those packages come from. If you want to make a PR against the website to add that to the step with the vcs commands please tag me and we can fix that.

Secondly, does apt work on WSL? Why are you doing this as root? (I see the directories are owned by root). While ROS2 works on windows, moveit2 is still not building on windows as far as I know. There is an open PR from some people at Microsoft that is helping us with that. I’m not sure those instructions will work at all in WSL.

Also, what directory are you running the rosdep install command from? The --ignore-src should mean that it won’t try to install packages that it finds a source version of in the --from-paths . paths. Assuming you cloned the moveit2 repos, those are all packages it should find source versions of.