[Documentation] [TitleIndex] [WordIndex

Workspace Setup

If you have not yet created a workspace in which to complete the tutorials, click here for some brief instructions .

  Show EOL distros: 

Create a file named ~/tutorials.rosinstall with the following content:

- other: { local-name: workspace }

To overlay on the ROS distro you are using:

rosinstall ~/tutorials /opt/ros/$ROS_DISTRO>> ~/tutorials.rosinstall

To use this workspace whenever you open a new terminal setup your ROS environment by typing:

source ~/tutorials/setup.bash

Sourcing this file adds ~/tutorials/workspace to your ROS_PACKAGE_PATH.

Any packages you create in that directory will be found by rospack.

An alternative to source your script file is to add it to your .bashrc, but remember that this will persist in your .bashrc into the future, and you can only have one environment setup. For more on what this is doing see this page

Create a catkin workspace like so:

$ source /opt/ros/$ROS_DISTRO/setup.bash
$ mkdir -p ~/tutorial_ws/src
$ cd ~/tutorial_ws
$ catkin_init_workspace src
$ catkin_make

And now source the setup file from the result-space, so that packages you add to this workspace's src folder will be findable by rospack, and the built binaries by rosrun and roslaunch:

$ source devel/setup.bash

Beginner Tutorials

  1. Writing a simple 3D visualization for rosjs

    This tutorial covers using rosjs to write a simple 3D visualization in the browser.

  2. Using interactive markers with rosjs

    This tutorial describes using interactive markers in wviz

  3. Using action services in rosjs

    This tutorial describes how to create a Fibonacci simple action client in Javascript.

  4. Writing a publisher and subscriber in rosjs

    Describes how to use the js tools within the remote_lab package to write a publisher and subscriber in rosjs

  5. Using publish and subscribe to create control code in javascript

    This tutorial looks at how you can create control code in javascript using the publish and subscribe functionality

Intermediate Tutorials

No results found.

Advanced Tutorials

No results found.

Create a new tutorial


2024-11-16 17:43