Setup for developing ROS packages using vs-code
Just clone the repo to the root of the workspace in a folder named .vscode
git clone [email protected]:kamatajinkya/vscode-ros.git .vscode
- Install vscode.
- Install Microsoft ROS extension from the vscode marketplace.
- Install Microsoft C++ Extension from the vscode marketplace.
- Navigate to the workspace using the terminal.
- Source the ROS setup file
source devel/setup.zsh
. - Use
code .
to launch vscode.
- Press
ctrl
+shift
+b
. - Select Built task from the dropdown menu
- Output should be visible in the terminal pane. Press
ctrl
+`
otherwise.
Current, debug configuration can be relaunched by pressing F5
.
- Select
ROS:Attach
from the debug pane - Hit run and select process from the menu
Vscode ROS Extension Debug Support
- Open vscode
- Run
catkin: build
using instructions on building packages - Close vscode and open workspace using instructions above