Robotics StackExchange | Archived questions

Installing gazebo_ros_pkgs for ROS2 on OSX

I am trying to install gazebo_ros_pkgs for ROS2 on MacOS Catalina. I have managed to install Gazebo 11.3.0 and ROS2 Foxy Fitzroy but I am having trouble installing gazebo_ros_pkgs. The tutorial only gives instructions for Ubuntu and I am not sure how to adapt this to my system.

Any advice?

Edit: More detail as requested below. On the rosdep install --from-paths src --ignore-src -r -y step I get the following output (all steps before work as expected):

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: gazebo_dev: No definition of [libgazebo11-dev] for OS [osx] cv_bridge: No definition of [python3-opencv] for OS [osx] Continuing to install resolvable dependencies... #All required rosdeps installed successfully

The colcon build --symlink-install then returns:

Starting >>> cameracalibrationparsers
Starting >>> cvbridge
Starting >>> gazebo
dev
Starting >>> gazebomsgs
Starting >>> image
transport
Starting >>> imagegeometry
--- stderr: cv
bridge
CMake Error at /usr/local/lib/cmake/Boost-1.74.0/BoostConfig.cmake:141 (findpackage):
Could not find a package configuration file provided by "boost
python"
(requested version 1.74.0) with any of the following names:

boost_pythonConfig.cmake  
boost_python-config.cmake

Add the installation prefix of "boostpython" to CMAKEPREFIXPATH or set
"boost
pythonDIR" to a directory containing one of the above files. If
"boost
python" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boostfindcomponent)
/usr/local/Cellar/cmake/3.19.1/share/cmake/Modules/FindBoost.cmake:460 (findpackage)
CMakeLists.txt:22 (find
package)

---
Failed <<< cvbridge [3.26s, exited with code 1]
Aborted <<< gazebo
dev [3.30s]
Aborted <<< imagegeometry [5.76s]
Aborted <<< image
transport [6.38s]
Aborted <<< cameracalibrationparsers [6.53s]
Aborted <<< gazebo_msgs [8.32s]

Summary: 0 packages finished [8.88s]
1 package failed: cvbridge
5 packages aborted: camera
calibrationparsers gazebodev gazebomsgs imagegeometry imagetransport
4 packages had stderr output: camera
calibrationparsers cvbridge imagegeometry imagetransport
7 packages not processed

Asked by jaduol on 2020-12-15 23:34:28 UTC

Comments

Seme issue here :c (I did one more step '''brew install boost-python3''' what fixed mentioned issue, but get stuck with missing: OPENSSL_INCLUDE_DIR)

Asked by szgula27@gmail.com on 2021-01-06 17:36:17 UTC

Answers

Hi,

Can you provide more details about which issues are you facing ? Then we can help you and update the tutorial.

Regards

Asked by ahcorde on 2020-12-18 13:47:07 UTC

Comments

See modified question

Asked by jaduol on 2020-12-21 12:37:07 UTC

+1

I am facing the same issues as are outlined above when trying to setup ros2 and gazebo on OSX. Any pointers are appreciated.

Asked by peterdavidfagan on 2021-03-31 10:52:39 UTC