-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from clearpathrobotics/development
Production Sync
- Loading branch information
Showing
20 changed files
with
729 additions
and
113 deletions.
There are no files selected for viewing
274 changes: 191 additions & 83 deletions
274
docs_outdoornav_user_manual/getting_started/terminal_interface.mdx
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 |
---|---|---|
@@ -1,141 +1,249 @@ | ||
--- | ||
title: Terminal Interface | ||
sidebar_label: Terminal Interface | ||
title: Command Line Interface | ||
sidebar_label: Command Line Interface | ||
sidebar_position: 3 | ||
toc_min_heading_level: 2 | ||
toc_max_heading_level: 4 | ||
--- | ||
|
||
## Command Line Operation | ||
By default, the OutdoorNav Software begins automatically when the system | ||
is powered on. This section outlines the OutdoorNav Command Line Interface (CLI), | ||
the set of commands that can be used by developers who are debugging | ||
the system or who want more precise control for managing the OutdoorNav | ||
software. | ||
|
||
By default the OutdoorNav Software, including the Navigation component, | ||
begins automatically when the system is powered on. This section | ||
outlines the commands that can be used by developers who are debugging | ||
the system or who want more precise control for managing the Navigation | ||
component. | ||
|
||
### Connecting to the OutdoorNav Computer {#connecting-to-outdoornav-computer} | ||
## Connecting to the OutdoorNav Computer {#connecting-to-outdoornav-computer} | ||
|
||
To connect to your UGV, consult its corresponding user manual. | ||
|
||
If you are using a Clearpath Robotics UGV with a seperate OutdoorNav computer, | ||
If you are using a Clearpath Robotics UGV with a separate OutdoorNav Computer, | ||
first `ssh` to the UGV using the details provided in the UGV user | ||
manual. If you have a wired connection to the Clearpath Robotics UGV, | ||
use the following command. If using wifi, you can replace the IP address | ||
with the wifi-assigned IP address or the hostname of the UGV. | ||
manual. Then, if a separate OutdoorNav Computer exists, you can | ||
connect to it by running: | ||
|
||
``` bash | ||
ssh administrator@192.168.131.1 | ||
ssh administrator@192.168.131.5 | ||
``` | ||
|
||
Then, connect to the OutdoorNav Computer: | ||
## OutdoorNav CLI Installation | ||
|
||
``` bash | ||
ssh administrator@192.168.131.5 | ||
The OutdoorNav CLI is pre-installed on Clearpath robots. If it has not | ||
been installed on your system, it can be installed by running the following | ||
on the OutdoorNav Computer: | ||
|
||
```bash | ||
sudo apt-get install python3-onav-cli | ||
``` | ||
|
||
### Starting the Navigation Software {#starting-outdoornav} | ||
:::note | ||
|
||
Begin by connecting to the OutdoorNav Computer as outlined above. | ||
The command above requires that the Clearpath Package Server has been | ||
configured on your OutdoorNav Computer. This is pre-configured on | ||
Clearpath robots. Refer to details on the | ||
[Clearpath Package Server](http://packages.clearpathrobotics.com/) if | ||
this is not configured on your computer. | ||
|
||
On UGV startup, all the sensors, the user interface, as well as the | ||
Navigation software are set to start automatically through a Docker | ||
container. You can check the Docker container's status by running | ||
`docker ps` and checking for: | ||
|
||
- onav-web (Docker image containing the web interface) | ||
- onav-web-ros (Docker image containing the ROS web bridge nodes) | ||
- onav-sensors (Docker image that launches the ROS sensor drivers) | ||
- onav-power (Docker image that launches the ROS nodes related to | ||
the power system of the UGV) | ||
- onav-autonomy (Docker image that launches the ROS nodes related | ||
to the autonomy) | ||
|
||
The docker compose file located at `~/cpr_outdoornav_launch/docker-compose.yml` | ||
provides the description for each the docker images that are being generated | ||
on startup. In here, you can find that there are profiles set up as part of the | ||
docker compose structure. They are: | ||
|
||
- ui: starts the onav-web and onav-web-ros containers | ||
- sensors: starts the onav-sensors container | ||
- power: starts the onav-power container | ||
- autonomy: starts the onav-autonomy container | ||
- outdoornav: starts all of the containers | ||
- teleop: start only the ui and sensor related containers (no autonomy) | ||
|
||
If the Docker containers are not running, they can all be started with: | ||
::: | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile outdoornav up -d | ||
## Listing the OutdoorNav CLI Commands and Getting Help | ||
|
||
To list all of the CLI commands, run the following on the OutdoorNav Computer: | ||
|
||
```bash | ||
onav help | ||
``` | ||
|
||
### Stopping/Restarting all of OutdoorNav | ||
The CLI commands are: | ||
|
||
- `install`: Download and configure OutdoorNav | ||
- `key`: Get, set, or delete your OutdoorNav license key | ||
- `download`: Download OutdoorNav, but do not configure it | ||
- `configure`: (Re)configure OutdoorNav | ||
- `upgrade`: Upgrade OutdoorNav to the latest vesion | ||
- `uninstall`: Uninstall OutdoorNav | ||
- `depends`: Verify and install dependencies | ||
- `start`: Start OutdoorNav | ||
- `stop`: Stop OutdoorNav | ||
- `status`: Check the status of OutdoorNav | ||
- `logs`: View OutdoorNav logs | ||
- `versions`: Print versions available to install | ||
- `help`: Show available commands | ||
|
||
To get help on an individual command, use the `-h` option. For example, to | ||
get help on the `install` command, run `onav install -h`: | ||
|
||
``` | ||
usage: onav install [-h] [-k KEY] [-b] [-c] [-H] VERSION | ||
Each individual profile can also be brought down. For example to use the UGV without | ||
the OutdoorNav software. The following command brings down OutdoorNav and is persistent | ||
accross reboots/power cylces. | ||
positional arguments: | ||
VERSION The OutdoorNav version to install (e.g. 0.11.0) | ||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile outdoornav down | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
-k KEY, --key KEY Your OutdoorNav installation key | ||
-b, --backpack Configure in backpack/bridged mode | ||
-c, --clean Clean any configurations from a prior installation | ||
``` | ||
|
||
If the OutdoorNav software has been brought down, it can be restarted by running: | ||
## Starting and Stopping the OutdoorNav Software {#starting-outdoornav} | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile outdoornav up -d | ||
On UGV startup, all the sensors, the user interface, as well as the | ||
autonomy software are set to start automatically. When debugging or when | ||
greater control is desired, the CLI can be used to start and stop | ||
the OutdoorNav software, in whole or in part. | ||
|
||
To see the current status of OutdoorNav software, run: | ||
|
||
```bash | ||
onav status | ||
``` | ||
|
||
### Stopping/Restarting the Autonomy | ||
To start the OutdoorNav software if it is not running, use the following command, | ||
which starts the latest version of the software by default: | ||
|
||
To use the UGV without the autonomy core of OutdoorNav, use these | ||
commands to stop the nodes and prevent them from automatic startup: | ||
```bash | ||
onav start | ||
``` | ||
|
||
To stop the OutdoorNav software, run: | ||
|
||
```bash | ||
onav stop | ||
``` | ||
|
||
## Stopping and Restarting the Autonomy Software Only | ||
|
||
To use the UGV without the autonomy software, use the following | ||
command to stop the nodes and prevent them from automatic startup: | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile autonomy down | ||
onav stop -s autonomy | ||
``` | ||
|
||
The autonomy core can be restarted by running: | ||
The autonomy software can be restarted by running: | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile autonomy up -d | ||
onav start -s autonomy | ||
``` | ||
|
||
### Stopping/Restarting the Sensors | ||
## Stopping/Restarting the Sensors | ||
|
||
To use the UGV without the sensors, use these commands to disable the | ||
nodes and prevent them from automatic startup: | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # directory with docker-compose.yaml | ||
docker compose --profile sensors down | ||
onav stop -s sensors | ||
``` | ||
|
||
::: note | ||
:::note | ||
|
||
This command will only disable the drivers for the sensors that are started | ||
by the OutdoorNv software. This includes the GNSS units, the Microstrain IMU, | ||
by the OutdoorNav software. This includes the GNSS units, the Microstrain IMU, | ||
and any LiDAR/Stereo detection sources (not limited to Velodyne LiDARs, Realsense | ||
cameras, 2D Lidars) | ||
cameras, 2D Lidars). | ||
|
||
::: | ||
|
||
### Accessing the Navigation Software Logs | ||
The sensors software can be restarted by running: | ||
|
||
To check the logs of the Navigation software: | ||
``` | ||
onav start -s sensors | ||
``` | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # The directory with docker-compose.yaml | ||
docker compose logs -f | ||
## Accessing the OutdoorNav Software Logs | ||
|
||
To check the logs of the OutdoorNav software, use the `onav logs` command | ||
with the appropriate service. For example, to view the logs for the sensors | ||
service, run: | ||
|
||
```bash | ||
onav logs sensors | ||
``` | ||
|
||
Optionally, specify the specific container you would like to view logs for: | ||
## Installing the OutdoorNav Software | ||
|
||
``` bash | ||
cd ~/cpr_outdoornav_launch/ # The directory with docker-compose.yaml | ||
docker compose logs -f onav-autonomy | ||
OutdoorNav is typically pre-installed on Clearpath robots, so most users should | ||
not need to do a first-time installation of the software, though the process | ||
is outlined below as a reference. | ||
|
||
As a first step, confirm that the robot has internet access. For example, confirm | ||
that the following command is successful: | ||
|
||
``` | ||
ping 8.8.8.8 | ||
``` | ||
|
||
Second, the required dependencies need to be installed by running: | ||
|
||
```bash | ||
onav depends | ||
``` | ||
|
||
Third, a key needs to be added onto the robot to enable the installation | ||
process. Contact [Clearpath Support](../support) if you did not receive your key. | ||
To add your key, run the following, replacing `<YOUR_KEY>` with the actual value: | ||
|
||
```bash | ||
onav key <YOUR_KEY> | ||
``` | ||
|
||
Fourth, list the versions available for installation by running: | ||
|
||
```bash | ||
onav versions | ||
``` | ||
|
||
Fifth, install the OutdoorNav software for the desired version (typically the | ||
newest version), by running the following, replacing `<TARGET_VERSION>` with | ||
the version to be installed: | ||
|
||
```bash | ||
onav install <TARGET_VERSION> | ||
``` | ||
|
||
When prompted, trigger the reboot. | ||
|
||
Finally, following the reboot, run the following command to start the OutdoorNav | ||
software. This will only be required the first time after installation. | ||
|
||
```bash | ||
onav start <TARGET_VERSION> | ||
``` | ||
|
||
## Upgrading the OutdoorNav Software | ||
|
||
After receiving a notice that a new version of the OutdoorNav Software is | ||
available, use the `onav install` command with the appropriate version. | ||
Note that `onav install` runs the following commands in sequence: | ||
|
||
- `onav download` | ||
- `onav configure` | ||
- `onav upgrade` | ||
|
||
For example, to upgrade from 0.11.0 to 0.12.0, run the following command: | ||
|
||
``` | ||
onav install 0.12.0 | ||
``` | ||
|
||
:::note | ||
|
||
The `download` step requires internet access to download the new software. | ||
Confirm that the OutdoorNav Computer has internet access by running a command | ||
such as: | ||
|
||
``` | ||
ping 8.8.8.8 | ||
``` | ||
|
||
::: | ||
|
||
## Uninstalling Old Versions of OutdoorNav Software | ||
|
||
If old versions of OutdoorNav software are no longer being used, they can | ||
be removed with the `onav uninstall` command. For example, to uninstall 0.11.0 | ||
run: | ||
|
||
``` | ||
onav uninstall 0.11.0 | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+127 KB
docs_versioned_docs/version-ros2humble/ros/api/img/shore_and_charged.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+125 KB
docs_versioned_docs/version-ros2humble/ros/api/img/shore_and_charging.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.