Install ROS on macOS - umrover/mrover-ros2 GitHub Wiki
Installation:
-
Disable SIP: You must disable system protection
-
Install xcode
[!IMPORTANT]
You must have installed xcode (the entire editor not just command line tools)Make sure to open the installation
-
Install brew
-
Run
echo "source ~/.ros2rc" >> ~/.zshrc -
Run
curl -o ./bootstrap.sh -LO https://raw.githubusercontent.com/jbrhm/MACOS-HUMBLE/refs/heads/main/bootstrap.sh && chmod +x bootstrap.sh &&./bootstrap.sh
[!IMPORTANT]
If you run into the issuefatal error: 'Availability.h' file not foundrunsudo xcode-select -s /Applications/Xcode.app/Contents/Developerto switch from command line xcode to developer xcodeIf you encounter an error with your qt version run
brew uninstall --ignore-dependencies qtand open a new terminal and then type in the rest of the commands starting withcolcon build ...
-
Run
./build.sh -
Run
ros2 launch mrover simulator.launch.py
Alternative VM Installation
If you're having trouble with the regular installation above(installation failing, simulator crashing, etc), ask a lead if you should use a VM instead. If so follow the installation method here.