-
Notifications
You must be signed in to change notification settings - Fork 2
IDE configuration
JoshuaGabriel edited this page Sep 12, 2023
·
2 revisions
Install 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:
- https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
- https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools
- https://marketplace.visualstudio.com/items?itemName=ms-iot.vscode-ros
Make sure to open the uvic_rover 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.
[Setting up RocketM2]
[System Diagram] [Drive train and Arm]
[Cameras]