Skip to content

Commit 2b80753

Browse files
committed
CLI is not experimental but primary approach.
Update tutorial on managing workspaces using RTW CLI.
1 parent 676062e commit 2b80753

File tree

16 files changed

+63
-58
lines changed

16 files changed

+63
-58
lines changed

docs/docker/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Docker
33
===========
44
.. _docker-overview:
55

6-
RosTeamWS supports the usage of docker containers.
6+
RTW supports the usage of docker containers.
77

88
.. toctree::
99
:maxdepth: 1

docs/guidelines/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Guidelines
33
===========
44

5-
RosTeamWS proposes development and architecture guidelines to boost efficiency and activate synergy effects inside a development team and between the teams.
5+
RTW proposes development and architecture guidelines to boost efficiency and activate synergy effects inside a development team and between the teams.
66

77
.. toctree::
88
:maxdepth: 1

docs/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Welcome the documentation of *ROS Team Workspace*-Framework
33
============================================================
44

5-
ROS Team Workspace (RosTeamWS) is a framework for boosting collaboration in teams when developing software for robots using `Robot Operating System (ROS) <https://www.ros.org/>`_.
5+
ROS Team Workspace (RTW) is a framework for boosting collaboration in teams when developing software for robots using `Robot Operating System (ROS) <https://www.ros.org/>`_.
66
It supports both **ROS** and **ROS 2**.
77
Its main goal is to optimize the workflow of development teams and focus more on programming robots.
88

@@ -14,8 +14,8 @@ From 2021, the framework is maintained by Stogl Robotics Consulting.
1414
.. :depth: 2
1515
1616
17-
Purpose of the *RosTeamWS*
18-
==========================
17+
Purpose of the *RosTeamWorkspace (RTW)*
18+
========================================
1919

2020
This package targets the following stakeholders:
2121

@@ -33,7 +33,7 @@ The framework is the main entry-point for teams to:
3333
#. provide scripts for easy use of ROS.
3434

3535

36-
To achieve this, RosTeamWS defines:
36+
To achieve this, RTW defines:
3737

3838
#. an architecture of overlaid workspaces for sharing standard ROS packages;
3939
#. standardized package structure for straightforward collaboration;
@@ -43,16 +43,16 @@ To achieve this, RosTeamWS defines:
4343

4444
DISCLAIMER
4545
==========
46-
The work in the RosTeamWS-framework tries to follow, if applicable, `ROS Enhancement Proposals (REPs) <https://www.ros.org/reps/rep-0000.html>`_. Still, collisions in the best-practices proposals may occur.
46+
The work in the RTW-framework tries to follow, if applicable, `ROS Enhancement Proposals (REPs) <https://www.ros.org/reps/rep-0000.html>`_. Still, collisions in the best-practices proposals may occur.
4747
The opinions and proposals stated here are merely related to the authors' experiences.
4848

4949

5050
.. toctree::
5151
:hidden:
5252

5353
tutorials/index.rst
54+
rtwcli/index.rst
5455
guidelines/index.rst
5556
use-cases/index.rst
5657
docker/index.rst
57-
rtwcli/index.rst
5858
faq/index.rst

docs/rtwcli/index.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
==============================
2-
RosTeamWS CLI (Experimental)
3-
==============================
1+
==============
2+
RTW CLI
3+
==============
44

5-
RosTeamWS has a command line interface (CLI) that provides a set of commands to
5+
RTW has a command line interface (CLI) that provides a set of commands to
66
manage ROS workspaces incl. Docker workspaces. The CLI is designed to have a
77
more user-friendly overview of the available RTW commands and to provide a more
88
intuitive way to interact with RTW.
99

10-
.. warning::
11-
The CLI is still in the experimental stage and may have bugs or issues.
12-
Please report any bugs or issues to the RosTeamWS GitHub repository.
13-
14-
1510
How to install the CLI
1611
""""""""""""""""""""""""
1712
.. _rtwcli-setup:

docs/tutorials/managing_multiple_workspaces.rst

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,65 @@ Managing multiple workspaces
33
=============================
44
.. _tutorial-managing-multiple-workspaces:
55

6-
Before learning how to manage multiple workspace with RosTeamWorkspace be sure that you have set everything up as described in the :ref:`setting up RosTeamWorkspace tutorial <tutorial-setting-up-rtw>`.
6+
Before learning how to manage multiple workspace with RTW be sure that you have set everything up as described in the :ref:`setting up RTW tutorial <tutorial-setting-up-rtw>`.
77

8-
Also be sure that you opened a new terminal after you setup RosTeamWorkspace to be configured permanently.
8+
Also be sure that you have opened a new terminal after you RTW setup to be configured permanently.
99

1010

11-
First setup a new workspace called ``ws_rolling_ros2c_demos`` inside a ``~/workspace`` folder.
11+
Lets setup a new workspace called ``ws_rolling_ros2_control_demos`` inside a ``~/workspace`` folder.
1212

1313
.. code-block:: bash
1414
15-
setup-ros-workspace ~/workspace/ws_rolling_ros2c_demos rolling
15+
rtw workspace create \
16+
--ws-folder ~/workspace/ws_rolling_ros2c_demos \
17+
--ros-distro rolling
1618
1719
When asked for confirmation just press <ENTER>.
18-
After a workspace is created, open a new terminal and execute ``_ws_rolling_ros2c_demos`` alias for sourcing your new workspace. You can then switch to the new sourced workspace with ``rosd``.
19-
Now you can use :ref:`aliases <uc-aliases>` to interact with your workspace.
20+
After a workspace is created, open a new terminal and execute ``rtw ws ws_rolling_ros2c_demos`` command for sourcing your newly created workspace.
21+
Now you can start using *RTW* aliases, for example directly switch to the root folder of your workspace using ``rosd``.
22+
Check other aliases for interaction with the workspace :ref:`here <uc-aliases>`.
2023
Those can be used out of any folder you are in.
2124

22-
Let's now add a test package into your workspace.
25+
Let's now add a package to your workspace.
2326

24-
1. Make sure your workspace is sourced by executing ``_ws_rolling_ros2c_demos``. Then enter the source folder using ``rosds`` alias.
25-
2. Clone ``ros2_control_demos`` repository for testing either:
27+
1. Make sure your workspace is sourced by executing ``rtw ws ws_rolling_ros2c_demos``.
28+
Then enter the source folder using ``rosds`` alias.
29+
30+
2. Lets clone ``ros2_control_demos`` repository for testing using:
2631

2732
.. code-block:: bash
2833
2934
git clone [email protected]:ros-controls/ros2_control_demos.git # SSH
3035
# or if no ssh key is setup:
3136
git clone https://github.com/ros-controls/ros2_control_demos.git # HTTPS
3237
33-
3. Go to the base of your workspace:
34-
35-
.. code-block:: bash
36-
37-
rosd
38-
39-
4. Install dependencies to be sure we got everything:
38+
3. Now install dependencies using *RTW* :ref:`alias <uc-aliases-dependencies>`:
4039

4140
.. code-block:: bash
4241
43-
rosdep install --from-paths src -y -i -r
42+
rosdepi # Alias for: rosdep install -y -i -r --from-paths \$ROS_WS/src
4443
4544
.. note:: if ``rosdep`` command fails with a comment that binary packages can not be found by apt, try to update your rosdep index using ``rosdep update`` command or even your package index using ``sudo apt update``.
4645

47-
5. You can then build your workspace using the alias for colcon build:
46+
4. You can then build your workspace using the alias for colcon build:
4847

4948
.. code-block:: bash
5049
51-
cb
50+
cb
5251
5352
Everything should now have been built successfully!
5453

55-
Next let's add another workspace
54+
5. Next let's add another workspace
5655

5756
.. code-block:: bash
5857
59-
setup-ros-workspace ~/workspace/ws_rolling_gz_demos rolling
58+
rtw workspace create \
59+
--ws-folder ~/workspace/ws_rolling_gz_demos \
60+
--ros-distro rolling
6061
61-
Now repeat the above steps to add `gz_ros2_control <https://github.com/ros-controls/gz_ros2_control>`_ repository for testing and execute a demo from there.
62+
6. Now repeat the above steps to add `gz_ros2_control <https://github.com/ros-controls/gz_ros2_control>`_ repository for testing and execute a demo from there.
6263

6364
.. note:: if ``rosdep`` commands fails with a comment on ros-rolling-ros-gz-sim not being installed successfully, maybe force the desired gazebo version with e.g. ``export GZ_VERSION=fortress``
6465

65-
Now each time you open a new terminal you can use either ``_ws_rolling_ros2c_demos`` or ``_ws_rolling_gz_demos`` to source needed workspace and use the same :ref:`aliases <uc-aliases>` without constantly thinking about exact workspace/folder you are working in.
66+
.. important::
67+
Now each time you open a new terminal you can use either ``rtw ws ws_rolling_ros2c_demos`` or ``rtw ws ws_rolling_gz_demos`` to source needed workspace and use the same :ref:`aliases <uc-aliases>` without constantly thinking about exact workspace/folder you are working in.

docs/tutorials/quick-start.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
==================================
2-
Quick start with RosTeamWorkspace
2+
Quick start with RTW
33
==================================
44
.. _tutorial-quick-start:
55

@@ -12,15 +12,15 @@ interested in:
1212
:maxdepth: 1
1313

1414

15-
Clone and source the RosTeamWorkspace
16-
---------------------------------------
15+
Clone, setup and source the RosTeamWorkspace (RTW)
16+
---------------------------------------------------
1717
.. code-block:: bash
1818
1919
git clone https://github.com/StoglRobotics/ros_team_workspace.git
20+
cd ros_team_workspace/rtwcli/ && pip3 install -r requirements.txt --break-system-packages && cd -
2021
source ros_team_workspace/setup.bash
2122
setup-auto-sourcing # Make RosTeamWorkspace automatically sourced when open a new terminal (The best experience)
2223
23-
2424
Create new package in an existing workspace
2525
--------------------------------------------------------
2626
For more details check :ref:`use-case description <uc-new-package>`.

docs/tutorials/setting_up_rtw.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,29 @@ Setting up RosTeamWorkspace
33
============================
44
.. _tutorial-setting-up-rtw:
55

6-
Installation of RosTeamWS
6+
Installation of RTW
77
""""""""""""""""""""""""""
8-
To start using RosTeamWS framework clone the repository to any location using:
8+
To start using RTW framework clone the repository to any location using:
99

1010
.. code-block:: bash
1111
1212
git clone https://github.com/StoglRobotics/ros_team_workspace.git
1313
14+
Install RTW CLI. This is a python-based CLI as for ROS 2 that makes it easier to use:
1415

15-
Source the ``setup.bash``` in the top folder of RosTeamWorkspace:
16+
.. code-block:: bash
17+
18+
cd ros_team_workspace/rtwcli/ # enter the RTW-CLI folder
19+
pip3 install -r requirements.txt --break-system-packages # since Ubuntu 24.04 is this flag required as we are not using virtual environment
20+
cd - # go back to the folder where you cloned the RTW
21+
22+
Source the ``setup.bash``` in the top folder of RTW:
1623

1724
.. code-block:: bash
1825
1926
source ros_team_workspace/setup.bash
2027
21-
That's all. You are now set to use RosTeamWS. If you want to add auto-sourcing you can simply execute the following command:
28+
That's all. You are now set to use RTW. If you want to add auto-sourcing you can simply execute the following command:
2229

2330
.. code-block:: bash
2431

docs/use-cases/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Use Cases
33
===========
44
.. _uc-index:
55

6-
The RosTeamWS support currently the following use-cases.
6+
The RTW support currently the following use-cases.
77
Check the repository and PRs for other, undocumented use-cases.
88

99
.. toctree::

docs/use-cases/operating_system/create_setup_workspace.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Setup a new Workspace
33
===========================
44
.. _uc-setup-workspace:
55

6-
This use-case describes how to setup a new ROS workspace using scripts from the ROS Team Workspace (RosTeamWS) framework. Besides the creation of a local workspace, creation of a Ubuntu-based docker container is supported. For more details have a look below in the `Docker workspace`_ section.
6+
This use-case describes how to setup a new ROS workspace using scripts from the ROS Team Workspace (RTW) framework. Besides the creation of a local workspace, creation of a Ubuntu-based docker container is supported. For more details have a look below in the `Docker workspace`_ section.
77

88
.. important::
9-
If you want to use Ubuntu 24.04 and ROS 2 Jazzy and Rolling (from May 2024) then checkout :ref:`RosTeamWS CLI workspace setup<rtwcli-setup-workspace>`.
9+
If you want to use Ubuntu 24.04 and ROS 2 Jazzy and Rolling (from May 2024) then checkout :ref:`RTW CLI workspace setup<rtwcli-setup-workspace>`.
1010

1111
Local workspace
1212
----------------
@@ -58,7 +58,7 @@ Recreate a container
5858
If you removed an image, you can recreate it by switching into the ``.rtw_docker_defines`` folder inside your workspace and then executing the ``./recreate_docker.sh`` command. After the process is finished you should be able to normally start, reconnect and stop the container.
5959

6060
.. note::
61-
For more general questions on the usage of docker and the limitations of RosTeamWS in interacting with docker, have a look at our :ref:`docker related docs<docker-overview>`.
61+
For more general questions on the usage of docker and the limitations of RTW in interacting with docker, have a look at our :ref:`docker related docs<docker-overview>`.
6262

6363
CLI overview
6464
"""""""""""""

docs/use-cases/ros2_control/setup_controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ros2_control: Setup controller package
44
.. _uc-setup-ros2-controller:
55

66
This use-case describes how to set up a controller for the ros2_control
7-
framework using scripts from ROS Team Workspace (RosTeamWS) framework.
7+
framework using scripts from ROS Team Workspace (RTW) framework.
88
The scripts uses template files from
99
``templates/ros2_control/controller`` folder.
1010
The script creates a full skeleton of a controller with plugin description

0 commit comments

Comments
 (0)