Skip to content

IOES-Lab/ROS2_MAVROS_AppleSilicon

Repository files navigation

Installing MAVROS on Apple Silicon

How-to

First, complete the installation of ROS2 Jazzy and Gazebo using ROS2_Jazzy_MacOS_Native_AppleSilicon.

# ROS2 Jazzy and Gazebo installation script (not needed if already executed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/main/install.sh)"

Upon completion, the paths of the installed ROS2 Jazzy and Gazebo are saved in $HOME/.ros2_jazzy_install_config. (Default paths are ros2_jazzy, gz_harmonic) Check the contents of the config file with cat $HOME/.ros2_jazzy_install_config

Now, to install mavros, proceed as follows:

# mavros installation script
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/IOES-Lab/ROS2_MAVROS_AppleSilicon/main/install.sh)"
Notes
  • Finding the USB connection port
    system_profiler SPUSBDataType | awk '/ArduPilot/{found=1} found && /Location ID/{print "/dev/cu.usbmodem" int(substr($3,3,3) "01"); found=0}'