forked from KTH-SML/svea
-
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.
* docs: first iteration 2023 * Adding pure pursuit foxglove configuration * Adding separate native building instruction * Update readme for foxglove studio * Moved remote ros to development readme * Fix minor typos * Update README.md * Update 1_floor2.md * docs: fix some paths in tutorials/1_floor2.md * docs: fix some typos * fix: proper use of util/run and util/run-dev It is better for Docker Desktop users (Windows and MacOS) to use util/run-dev to avoid Docker Desktop's embedded VM problem. Linux users can use either, as such it is best to recommend everyone to use util/run-dev when not on SVEA and util/run when on SVEA. --------- Co-authored-by: Kaj Munhoz Arfvidsson <[email protected]>
- Loading branch information
1 parent
12a614a
commit bbdcb4b
Showing
10 changed files
with
426 additions
and
151 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
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,69 @@ | ||
# Building the SVEA Stack Natively | ||
|
||
## System Requirements | ||
This library is developed on and intended for systems running: | ||
|
||
1. Ubuntu 20.04 (installation tutorial [here](https://ubuntu.com/tutorials/tutorial-install-ubuntu-desktop#1-overview)) | ||
2. ROS Noetic (installation instructions [here](http://wiki.ros.org/noetic/Installation/Ubuntu)) | ||
|
||
If you do not want to install Ubuntu onto your computer, consider installing a | ||
[virtual machine](https://www.osboxes.org/ubuntu/) or use | ||
[docker](https://docs.docker.com/install/) with Ubuntu 20.04 images. | ||
|
||
Install python dependencies by calling: | ||
|
||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
The installation instructions later on will use `catkin build` instead of | ||
`catkin_make`, so you should also [install catkin tools using apt-get](https://catkin-tools.readthedocs.io/en/latest/installing.html#installing-on-ubuntu-with-apt-get). | ||
|
||
If you had a pre-existing ROS Noetic installation, please run: | ||
|
||
```bash | ||
sudo apt update | ||
sudo apt upgrade | ||
``` | ||
|
||
before continuing onto installing the library. | ||
|
||
## Installing the library | ||
Start by going to the folder where you want the code to reside. | ||
For example, choose the home directory or a directory for keeping projects in. | ||
Once you are in the chosen directory, use the command: | ||
|
||
```bash | ||
git clone https://github.com/KTH-SML/svea | ||
``` | ||
|
||
to download the library. Then, a new directory will appear called | ||
`./svea`. Go into the directory with command: | ||
|
||
```bash | ||
cd svea | ||
``` | ||
|
||
To install all of the ROS dependencies that you are missing for this library run: | ||
|
||
```bash | ||
rosdep install --from-paths src --ignore-src -r -y | ||
``` | ||
|
||
Finally, compile and link the libraries using: | ||
|
||
```bash | ||
catkin build | ||
source devel/setup.bash | ||
``` | ||
|
||
To make sure the libraries are linked in the future, also call (**you need to replace | ||
`<path-to-svea>` with the file path to wherever you cloned "svea", e.g. | ||
`/home/nvidia/svea/devel/setup.bash`**): | ||
|
||
```bash | ||
echo "source <path-to-svea>/devel/setup.bash" >> ~/.bashrc | ||
source ~/.bashrc | ||
``` | ||
|
||
**Note, you only need to do this once.** |
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,26 @@ | ||
# Listening to ROS on another computer | ||
|
||
Since you will not be able to drive the SVEA cars with a display plugged in, it | ||
can be useful to link a computer that does have a display to the SVEA car's ROS | ||
network. This will let you use [RVIZ](http://wiki.ros.org/rviz) and | ||
[PlotJuggler](http://wiki.ros.org/plotjuggler) on the computer with a display | ||
while accessing the data streams on the SVEA car. This amounts to telling the | ||
computer with a display where the ROS master it should be listening to (in this | ||
case, it should listen to the ROS master running on the SVEA car) is located on | ||
the network. We do this with a the SVEA's hostname, e.g. `svea3`. On the SVEA | ||
car and the computer with a display, run: | ||
|
||
```bash | ||
# on SVEA | ||
. <svea_root>/util/remote_ros.sh | ||
|
||
# on computer | ||
. <svea_root>/util/remote_ros.sh <hostname> | ||
``` | ||
|
||
You can test if this worked by launching something on the SVEA car in the same terminal where the export commands were run and then calling ```rostopic list``` on the computer with a display in the same terminal where the export commands were run. You should see the topics you expect to be on the SVEA car also available on the computer with a display. If this worked, you have some options for how you want to use it. You can either: | ||
1. call this script everytime you want to link the SVEA car and the computer with a display togther (the script only links the terminal window you run it in), | ||
2. add an [alias](https://mijingo.com/blog/creating-bash-aliases) to the end of the SVEA car and the computer's ```~/.bashrc``` to create a new bash command, | ||
3. you can add the contents of ```remote_ros.sh``` directly to the end of your ```~/.bashrc```, | ||
|
||
or some other preferred approach. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.