Skip to content

ros_melodic_vscode

This is an example/test workspace for ros melodic.

About

This workspace is set up to test using a ros melodic dev container using the beginners tutorials from ROS.

Installation

You'll need the following packages installed:

Usage

Open this directory in VS Code from the repository root:

code workspaces/ros_melodic_vscode

When prompted, choose Dev Containers: Reopen in Container.

Set up your workspace

Set up the workspace from the directory containing .rosinstall:

wstool up

This will download the beginner tutorial code into your workspace.

See the ROS beginner tutorials.

Build

Tasks

Go to Terminal->Run Build Task or type the shortcut command.

Command line

Alternatively, you can build from the command line.

catkin build

Run

In order to run the tutorials, first you'll need to source your workspace.

source devel/setup.bash

Then run the tutorial you're interested in, for example

roslaunch roscpp_tutorials talker_listener.launch