Skip to content
Snippets Groups Projects
Commit a25b6eb5 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

readme

parent f5f5bb12
No related branches found
No related tags found
No related merge requests found
...@@ -174,41 +174,52 @@ Usually, these files are out of the WOLF project. But for testing purposes, some ...@@ -174,41 +174,52 @@ Usually, these files are out of the WOLF project. But for testing purposes, some
Proceed as follows: Proceed as follows:
1. To run from __Terminal__ (the default), you need to create an environment variable WOLF_ROOT pointing to where the wolf project is 1. To run from __Terminal__ (the default), you need to create an environment variable WOLF_ROOT pointing to where the wolf project is.
- Edit file ````~/.bashrc````, or ````~/.bash_profile````, and add these lines:
Edit file `~/.bashrc`, or `~/.bash_profile`, and add these lines:
````
# WOLF # WOLF
export WOLF_ROOT="/abs/path/to/wolf" export WOLF_ROOT="/abs/path/to/wolf"
````
- Then you need to source the file to get effect, Then you need to source the file to get effect,
````
source ~/.bash_profile // or ~/.bashrc, of course source ~/.bash_profile // or ~/.bashrc, of course
````
2. If you are using Eclipse or other GUIs and you want this environment variable to be accessed by them, edit the file `/etc/environment` (you need to use `sudo`) and add this line: 2. If you are using Eclipse or other GUIs and you want this environment variable to be accessed by them, edit the file `/etc/environment` (you need to use `sudo`) and add this line:
`WOLF_ROOT="<your wolf path>" # e.g. /home/jsola/dev/wolf` WOLF_ROOT="/abs/path/to/wolf"
Then reboot your machine.
Alternatively, you can set up the environment variables in your GUIs only. Follow these guidelines: Alternatively, you can set up the environment variables in your GUIs only. Follow these guidelines:
- If you run your application from __eclipse__, do: - If you run your application from __eclipse__, do:
- Menu Run > Run configurations...
- Add, or edit, a run configuration for the executable you want to run - Menu Run > Run configurations...
- Click on tab 'Environment'
- Add a variable named ````WOLF_ROOT````, with value ````/abs/path/to/wolf```` - Add, or edit, a run configuration for the executable you want to run
- If you run from __QtCreator__ - Click on tab 'Environment'
- Click on Left bar > Projects > Tab 'Build'
- Under 'Build Environment', click 'Details' - Add a variable named `WOLF_ROOT`, with value `/abs/path/to/wolf`
- Add variable `WOLF_ROOT` with value `/abs/path/to/wolf`
- Click on Tab 'Run' - If you run from __QtCreator__
- Select your Run configuration
- Under 'Run Environment', make sure it says 'Use Build Environment' - Click on Left bar > Projects > Tab 'Build'
- If not, click on 'Details'
- Under 'Base environment for this run configuration', select 'Build Environment' - Under 'Build Environment', click 'Details'
- Add variable `WOLF_ROOT` with value `/abs/path/to/wolf`
- Click on Tab 'Run'
- Select your Run configuration
- Under 'Run Environment', make sure it says 'Use Build Environment'
- If not, click on 'Details'
- Under 'Base environment for this run configuration', select 'Build Environment'
### Wolf ROS Node ### Wolf ROS Node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment