-
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.
- Loading branch information
Showing
183 changed files
with
7,505 additions
and
794 deletions.
There are no files selected for viewing
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,99 @@ | ||
====================== | ||
Command Line Interface | ||
====================== | ||
|
||
Behind libraries for C++ and Python, navground provides commands. | ||
|
||
.. warning:: | ||
|
||
As explained in :doc:`first_steps`, if you built navground from source, you need to source the setup script of the workspace where you installed it to enable the commands. Instead, if you installed navground using ``pip``, you can call Python commands without any setup. | ||
|
||
You can call a ``<command>`` in up to four different ways, depending on the installation type and on package that implements the command. | ||
|
||
``navground{_py} <command>`` [1] | ||
``navground`` exposes the commands implemented in :doc:`packages/navground_sim` in C++, while ``navground_py`` exposes the commands implemented in :doc:`packages/navground_sim_py` in Python. The Python commands are a superset of the C++ commands. | ||
``python -m navground.{core|sim} <command>`` [2] | ||
``navground.core`` exposes the commands implemented in :doc:`packages/navground_core_py`, while ``navground.sim`` the the commands implemented in :doc:`packages/navground_sim_py`, i.e., the same commands as through ``navground_py``. | ||
``install/lib/<package>/<command>`` [3] | ||
stand-alone executables installed if you built from source. | ||
``ros2 run <package> <command>`` [4] | ||
ROS 2 short-cut to run command ``install/lib/<package>/<command>``, available only if you have ROS. | ||
|
||
For example, listing the installed components, can be done in three equivalent ways: | ||
|
||
.. tabs:: | ||
|
||
.. tab:: macOS and Linux | ||
|
||
.. code-block:: bash | ||
navground_py info | ||
python3 -m navground.sim info | ||
# only if you built from source | ||
install/lib/navground_core_sim/info | ||
# only if you have ROS | ||
ros2 run navground_core_sim info | ||
.. tab:: Windows | ||
|
||
.. code-block:: bash | ||
navground_py.exe info | ||
python -m navground.sim info | ||
# only if you built from source | ||
install\Lib\navground_core_sim\info | ||
# only if you have ROS | ||
ros2 run navground_core_sim info | ||
.. note:: | ||
|
||
In the rest of the documentation, when describing a <command>, we omit the prefix, only specifying the <command>, like | ||
|
||
.. code-block:: console | ||
info | ||
for the previous example. | ||
|
||
Commands | ||
======== | ||
|
||
The following table summarizes all the available commands and how you can launch them. | ||
|
||
.. table:: | ||
:widths: auto | ||
|
||
+-------------------+---------------------+---------------------------------------------+ | ||
| package | commands | how to run them | | ||
+===================+=====================+=============================================+ | ||
| navground_core | :ref:`info` | ``install/lib/navground_core/<command>`` | | ||
| | | | | ||
| | | ``ros2 run navground_core <command>`` | | ||
+-------------------+---------------------+---------------------------------------------+ | ||
| navground_core_py | :ref:`info_py` | ``install/lib/navground_core_py/<command>`` | | ||
| | | | | ||
| | | ``ros2 run navground_core_py <command>`` | | ||
| | | | | ||
| | | ``python -m navground.core <command>`` | | ||
+-------------------+---------------------+---------------------------------------------+ | ||
| navground_sim | :ref:`info_sim` | ``install/lib/navground_sim_py/<command>`` | | ||
| | | | | ||
| | :ref:`sample` | ``ros2 run navground_sim <command>`` | | ||
| | | | | ||
| | :ref:`run` | ``navground <command>`` | | ||
+-------------------+---------------------+---------------------------------------------+ | ||
| navground_sim_py | :ref:`info_sim_py` | ``install/lib/navground_sim_py/<command>`` | | ||
| | | | | ||
| | :ref:`sample_py` | ``ros2 run navground_sim_py <command>`` | | ||
| | | | | ||
| | :ref:`run_py` | ``navground_py <command>`` | | ||
| | | | | ||
| | :ref:`run_rt` | ``python -m navground.sim <command>`` | | ||
| | | | | ||
| | :ref:`record_video` | | | ||
| | | | | ||
| | :ref:`replay` | | | ||
+-------------------+---------------------+---------------------------------------------+ | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
====== | ||
Docker | ||
====== | ||
|
||
We provide the following `docker files <https://github.com/idsia-robotics/navground/tree/main/docker>`_ | ||
|
||
|
||
.. list-table:: | ||
:widths: auto | ||
|
||
* - ``Dockerfile.source-deps`` | ||
- Build from source navground and all dependencies in ``ubuntu:latest`` | ||
* - ``Dockerfile.binary-deps`` | ||
- Build from source navground and a minimal number of dependencies in ``ubuntu:latest`` | ||
* - ``Dockerfile.ros`` | ||
- Build from source navground in ``ros:latest`` | ||
* - ``Dockerfile.dev`` | ||
- Like ``Dockerfile.source-deps`` but keeping all the packages to build navground again | ||
* - ``Dockerfile.python`` | ||
- Install the pre-built navground wheel in ``python:3.12-slim`` | ||
* - ``Dockerfile.notebook`` | ||
- Install the pre-built navground wheel in ``python:3.12-slim`` and everything needed to run the jupyter notebooks in `tutorials <https://github.com/idsia-robotics/navground/tree/main/docs/tutorials>`_: |
Oops, something went wrong.