-
Notifications
You must be signed in to change notification settings - Fork 123
Short tutorial for vscode-ros missing #26
Comments
pls clarify...4.a concerning point 4.b: I am using the "Visual Studio Code - Preview" Snap-Packet for Ubuntu... |
Hi Andur, take into account that I am running an old version of Ubuntu (14.04) and ROS (indigo) and that I am not sure how the ROS Extenstion is supposed to work. If you have another set of steps that makes more sense, please share it in this issue.
Yes
For step 4, you can either do "4.a" or "4.b", they actually result in the same setting in the "settings.json" file. They both modify the value of the configuration parameter "cmake.buildDirectory". This is how my settings.json file looks like after doing either "4.a" or "4.b":
The "cmake.buildDirectory" is a variable for the extension "CMake (twxs.cmake)" or for the extension "CMake Tools (vector-of-bool.cmake-tools)". It allows you to set the location of the build directory. I might have forgotten to add that I needed to source my ros distribution as step "0", by running the command: Regarding my step "4.b", I get to the Workspace Settings menu by using the keyboard shortcut [R1] Ctrl+P and typing ">Preferences: Open Workspace Settings". Then in the search box look for "cmake build directory".
I am using "Visual Studio Code" version 1.31.1 in Ubuntu 14.04.5 LTS with ROS indigo. [R1] https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf |
I just tested using
vscode
withros
and I think that it would be good to have a simple tutorial on how to set up thevscode
for a given catkin workspace properly.The following steps allowed me to run CMake and build the catkin workspace both from the terminal using
catkin_make
and fromvscode
by runningCMake: Configure
andCMake: Build
:source /opt/ros/indigo/setup.bash
. Then in this same terminal open vscode by running the commandcode
.vscode
: go toFile
->Open Folder
and open thesrc
folder of the catkin workspaceNote:
vscode
will create abuild
folder inside thesrc
folder of the catkin workspace. Thisbuild
folder can be deleted oncevscode
is configured properly.vscode
:4.a Either: in
.vscode/settings.json
set thecmake.buildDirectory
to${workspaceRoot}/../build
4.b Or: in
Workspace Settings
set theCMake: Build Directory
to${workspaceRoot}/../build
vscode
is configured properly. Thevscode
commandsCMake: Configure
andCMake: Build
allow to rerun CMake and Build the catking workspace.The text was updated successfully, but these errors were encountered: