forked from StoglRobotics/ros_team_workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding quick-start tutorials and making simple starting better. (Stog…
- Loading branch information
Showing
8 changed files
with
223 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
=========== | ||
Tutorials | ||
=========== | ||
|
||
These tutorials will quickly get you using the ROS Team Workspace. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:numbered: | ||
|
||
quick-start.rst | ||
setting_up_rtw.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
================================== | ||
Quick start with RosTeamWorkspace | ||
================================== | ||
.. _tutorial-quick-start: | ||
|
||
This tutorial show use of RosTeamWorkspace for very common use-cases that can be done without permanent changes to your environment. | ||
First you have to clone and source the workspace and then continue with the use-case you are interested in: | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
|
||
Clone and source the RosTeamWorkspace | ||
--------------------------------------- | ||
.. code-block:: bash | ||
git clone https://github.com/StoglRobotics/ros_team_workspace.git | ||
source ros_team_workspace/setup.bash | ||
Create new package in an existing workspace | ||
-------------------------------------------------------- | ||
For more details check :ref:`use-case description <uc-new-package>`. | ||
|
||
.. code-block:: bash | ||
source <path to your ROS workspace>/install/setup.bash | ||
cd <src folder of your ROS workspace> | ||
create-new-package <my_new_package_name> "Some cool description of the package." # follow the instructions | ||
cd .. && colcon build --symlink-install # to compile your newly created package | ||
Create robot description package | ||
------------------------------------------------- | ||
For more details check :ref:`use-case description <uc-setup-robot-description>`. | ||
|
||
.. code-block:: bash | ||
source <path to your ROS workspace>/install/setup.bash | ||
cd <src folder of your ROS workspace>/<package_name> | ||
setup-robot-description <my_cool_robot_name> <package_name> | ||
Create robot bringup package | ||
----------------------------------------------- | ||
For more details check :ref:`use-case description <uc-setup-robot-bringup>`. | ||
|
||
.. code-block:: bash | ||
source <path to your ROS workspace>/install/setup.bash | ||
cd <src folder of your ROS workspace>/<package_name> | ||
setup-robot-bringup <my_cool_robot_name> <package_name> | ||
Setup ros2_control control hardware | ||
------------------------------------------------- | ||
For more details check :ref:`use-case description <uc-setup-ros2-control-hardware>`. | ||
|
||
.. code-block:: bash | ||
source <path to your ROS workspace>/install/setup.bash | ||
cd <src folder of your ROS workspace>/<package_name> | ||
ros2_control_setup-hardware-interface-package <control_hardware_file_name> | ||
Setup ros2_control controller | ||
----------------------------------------------- | ||
For more details check :ref:`use-case description <uc-setup-ros2-controller>`. | ||
|
||
.. code-block:: bash | ||
source <path to your ROS workspace>/install/setup.bash | ||
cd <src folder of your ROS workspace>/<package_name> | ||
ros2_control_setup-controller-package <controller_file_name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
============================ | ||
Setting up RosTeamWorkspace | ||
============================ | ||
.. _tutorial-setting-up-rtw: | ||
|
||
To start using RosTeamWS framework clone the repository to any location using: | ||
|
||
.. code-block:: bash | ||
git clone https://github.com/StoglRobotics/ros_team_workspace.git | ||
Source the ``setup.bash``` in the top folder of RosTeamWorkspace: | ||
|
||
.. code-block:: bash | ||
source ros_team_workspace/setup.bash | ||
Execute the following to configure the RosTeamWorkspace permanently. | ||
|
||
**ATTENTION**: The following will work only if RosTeamWorkspace is checked out in ``/opt/RosTeamWS/ros_ws_rolling/src/`` folder! We are working on fixing this. The progress can se followed in `this issue <https://github.com/StoglRobotics/ros_team_workspace/issues/51>`_. | ||
|
||
Add auto-sourcing of configuration to your ``.bashrc`` file by adding following lines to its end using your favorite text editor (e.g., ``vim`` or ``nano``): | ||
|
||
.. code-block:: bash | ||
if [ -f ~/.ros_team_ws_rc ]; then | ||
. ~/.ros_team_ws_rc | ||
fi | ||
Copy ``templates/.ros_team_ws_rc`` file to your home folder using | ||
|
||
.. code-block:: bash | ||
cp ros_team_workspace/templates/.ros_team_ws_rc ~/ | ||
and adjust the following values using your favorite text editor: | ||
|
||
- ``<PATH TO ros_team_workspace>`` - with a path to the framework folder | ||
|
||
Now you are ready to | ||
|
||
- :ref:`setup your first workspace <uc-setup-workspace>` | ||
- :ref:`quick-start <tutorial-quick-start>` | ||
- or :ref:`other use-cases <uc-index>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters