3. IDE Configuration - umrover/mrover-ros Wiki

Option 1 - VSCode


sudo apt-get install wget gpg apt-transport-https
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg

sudo apt update
sudo apt install code

Boot up VSCode and install these extensions:

Make sure to open the mrover folder in VSCode!!!

When in VSCode, hit Ctrl-Shift-P to open the command menu and search for Cmake: Configure. Run that action. Follow the popups on your screen to configure Intellisense (code completion).

To run clang-tidy (a program to analyze your code for mistakes) follow this: https://devblogs.microsoft.com/cppblog/visual-studio-code-c-december-2021-update-clang-tidy/

If you want to use VSCodium instead of VSCode to avoid telemetry you can use the clangd extension

Debugging in VSCode

For help with debugging ROS nodes/launch files in VSCode, read this guide.

Option 2 - CLion + PyCharm

CLion supports CMake very well out of the box so there is minimal setup. Check: https://www.jetbrains.com/help/clion/ros-setup-tutorial.html

PyCharm requires some more attention: https://www.youtube.com/watch?v=lTew9mbXrAs

Option 3 - Other: Vim, Sublime, ???

At the end of the day ROS uses CMake for all project configuration. Most IDE's will have plugins that support this. It is up to you to find that out.