xArm-Developer / xarm_ros2

ROS2 developer packages for robotic products from UFACTORY
https://www.ufactory.cc/pages/xarm
BSD 3-Clause "New" or "Revised" License
124 stars 76 forks source link

ROS2 Humble gazebo package installation #61

Open camroots opened 10 months ago

camroots commented 10 months ago

Hi, I have a LITE 6 arm that I am looking to program. First I would like to simulate the arm before interacting with the hardware.

I have an Mac M1, running Parallels 19 that has an Ubuntu 22.04.2 ARM64 virtual machine. I am trying to follow the installation instructions here for installing ROS2 Humble.

Installing gazebo

The readme points to here for installing gazebo with the command curl -sSL http://get.gazebosim.org | sh. This results in the following error:

E: Package 'libgazebo-dev' has no installation candidate
E: Package 'gazebo' has no installation candidate

Installing gazebo_ros_pkgs

The readme makes reference to gazebo_ros_pkgs page which contains installation instructions for installing the packages for Foxy rather than Humble.

I considered attempting the Foxy installation but when running sudo apt install ros-foxy-gazebo-ros-pkgs I am provided with:

E: Unable to locate package ros-foxy-gazebo-ros-pkgs

Fortress installation

If I follow the instructions on the Gazebo website I am able to install the fortress version of gazebo and am able to run shapes.sdf.

The issue with this though is when I attempt to install the xArm dependencies (as per here) I receive the following error:

executing command [sudo -H apt-get install -y ros-humble-gazebo-plugins]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ros-humble-gazebo-plugins
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y ros-humble-gazebo-plugins] failed

Would someone be able to provide some guidance on which packages I should be installing? Would there be any expected issues running with my M1 Parallels setup?

Thank you.

penglongxiang commented 9 months ago

Sorry we do not have the experience of M1 Mac platform installation, and we are not sure about the compatibility of the packages needed. Will leave this issue open for other users' help.

cemoke commented 1 month ago

I am having the same issue. Is it possible to use the repo without having the gazebo? I will not use the simulation; I will use the robot and Rviz. I think it should be possible to build without the Gazebo