Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LRS Development Environment - Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lrs
LRS Development Environment - Common
Commits
4bf5628d
Commit
4bf5628d
authored
4 years ago
by
Tommy Persson
Browse files
Options
Downloads
Patches
Plain Diff
Work on minimal dockers.
parent
3c3f1fcf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+41
-2
41 additions, 2 deletions
README.md
script/exec_system
+2
-2
2 additions, 2 deletions
script/exec_system
script/gazebo
+18
-0
18 additions, 0 deletions
script/gazebo
script/tst
+1
-1
1 addition, 1 deletion
script/tst
script/wdb
+1
-1
1 addition, 1 deletion
script/wdb
with
63 additions
and
6 deletions
README.md
+
41
−
2
View file @
4bf5628d
...
...
@@ -19,7 +19,14 @@ export WORLD_ORIGIN_LON=16.6827607783
export
WORLD_ORIGIN_ELEVATION
=
29.8
```
The scren file are in: /home/tompe/docker/waraps/screen
The screen file are in: /home/tompe/docker/waraps/screen
NOTICE: C-o
\
do not kill the docker containers.
To stop the running containers do:
```
bash
docker stop
$(
docker container
ls
-q
)
```
## Start System Using Only Dockers but use a local ROS Core
...
...
@@ -44,15 +51,47 @@ gazebo roslaunch lrs_wara_gazebo dji_to_gazebo.launch name:=dji0 with_laser:=tru
```
### Start /op0 using a screen:
```
bash
env
NS
=
/op0 screen
-c
waraps/screen/screen_op
```
This will start the following scripts which starts docker containers:
```
bash
wdb roslaunch lrs_launch wdb.launch vehicle:
=
op ns:
=
${
NS
}
tst roslaunch lrs_launch tst_part.launch ns:
=
${
NS
}
exec_system roslaunch lrs_launch exec_part.launch ns:
=
${
NS
}
```
### Start /dji0 simulation using a screen:
```
bash
env
NS
=
/
op
0 screen
-c
waraps/screen/screen_djisim
env
NS
=
/
dji
0 screen
-c
waraps/screen/screen_djisim
```
This will start the following scripts which starts docker containers:
```
bash
base_dji roslaunch lrs_dji_sim sim.launch dynamics:
=
true
mpc:
=
true
inair:
=
true
ns:
=
/dji0 basic:
=
false
gazebo:
=
true
dji_system roslaunch lrs_launch lrsdji.launch publish_pose:
=
true
ns:
=
${
NS
}
wdb roslaunch lrs_launch wdb.launch vehicle:
=
op ns:
=
${
NS
}
tst roslaunch lrs_launch tst_part.launch ns:
=
${
NS
}
exec_system roslaunch lrs_launch exec_part.launch ns:
=
${
NS
}
exec_dji roslaunch lrs_launch exec_vehicle.launch vehicle:
=
dji ns:
=
${
NS
}
```
### Test the tqo running screens
Takeoff
```
bash
tst rosrun lrs_tst tstcommand.py
--takeoff
-x
100
-y
100
-z
12
--speed
7
--exec
__ns:
=
/dji0
```
Flyto
```
bash
tst rosrun lrs_tst tstcommand.py
--fly
-x
100
-y
100
-z
12
--speed
3
--exec
__ns:
=
/dji0
```
### Basic Simulator
```
bash
...
...
This diff is collapsed.
Click to expand it.
script/exec_system
+
2
−
2
View file @
4bf5628d
#!/bin/bash
tag
=
gitlab.liu.se:5000/lrs/waraps_docker_images/exec-minimal:v01
tag
=
gitlab.liu.se:5000/lrs/waraps_docker_images/exec-
exec-
minimal:v01
if
[
$1
=
"pull"
]
;
then
docker pull
$tag
exit
0
fi
docker run
\
exec
docker run
\
--network
host
\
--security-opt
apparmor:unconfined
\
--ulimit
nofile
=
1024
\
...
...
This diff is collapsed.
Click to expand it.
script/gazebo
0 → 100755
+
18
−
0
View file @
4bf5628d
#!/bin/bash
tag
=
gitlab.liu.se:5000/lrs/waraps_docker_images/gazebo-minimal:v01
if
[
$1
=
"pull"
]
;
then
docker pull
$tag
exit
0
fi
docker run
--gpus
all
\
--network
host
\
--security-opt
apparmor:unconfined
\
-v
/tmp/.X11-unix:/tmp/.X11-unix
\
-e
DISPLAY
=
unix
${
DISPLAY
}
\
--ulimit
nofile
=
1024
\
-e
ROS_HOSTNAME
=
localhost
\
--rm
-it
${
tag
}
"
$@
"
This diff is collapsed.
Click to expand it.
script/tst
+
1
−
1
View file @
4bf5628d
...
...
@@ -7,7 +7,7 @@ if [ $1 = "pull" ]; then
exit
0
fi
docker run
\
exec
docker run
\
--network
host
\
--security-opt
apparmor:unconfined
\
--ulimit
nofile
=
1024
\
...
...
This diff is collapsed.
Click to expand it.
script/wdb
+
1
−
1
View file @
4bf5628d
...
...
@@ -7,7 +7,7 @@ if [ $1 = "pull" ]; then
exit
0
fi
docker run
\
exec
docker run
\
--network
host
\
--security-opt
apparmor:unconfined
\
--ulimit
nofile
=
1024
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment