Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cobot1_TRON_testing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Schröter
cobot1_TRON_testing
Commits
b28efcf6
Commit
b28efcf6
authored
3 years ago
by
Christoph Schröter
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
05928259
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cobot1.xml
+59
-50
59 additions, 50 deletions
cobot1.xml
scripts/tron_testing_auto.sh
+1
-3
1 addition, 3 deletions
scripts/tron_testing_auto.sh
with
60 additions
and
53 deletions
cobot1.xml
+
59
−
50
View file @
b28efcf6
...
...
@@ -249,8 +249,8 @@ bool glass_in_target_pos = false;
<name
x=
"535"
y=
"-110"
>
moving_to_glass
</name>
<label
kind=
"invariant"
x=
"484"
y=
"-93"
>
bottle_in_start_pos == false
</label>
</location>
<location
id=
"id16"
x=
"773"
y=
"-
8
"
>
<name
x=
"680"
y=
"-
17
"
>
start_pour
</name>
<location
id=
"id16"
x=
"773"
y=
"-
59
"
>
<name
x=
"680"
y=
"-
68
"
>
start_pour
</name>
</location>
<location
id=
"id17"
x=
"833"
y=
"-263"
>
<name
x=
"790"
y=
"-297"
>
shut_down
</name>
...
...
@@ -333,7 +333,16 @@ bool glass_in_target_pos = false;
<location
id=
"id42"
x=
"977"
y=
"493"
>
<committed/>
</location>
<location
id=
"id43"
x=
"773"
y=
"8"
>
<name
x=
"705"
y=
"0"
>
pouring
</name>
</location>
<init
ref=
"id33"
/>
<transition>
<source
ref=
"id43"
/>
<target
ref=
"id18"
/>
<label
kind=
"guard"
x=
"782"
y=
"25"
>
bottle_diff_to_start_ang
>
110
</label>
<label
kind=
"synchronisation"
x=
"782"
y=
"42"
>
asap!
</label>
</transition>
<transition>
<source
ref=
"id42"
/>
<target
ref=
"id26"
/>
...
...
@@ -421,8 +430,8 @@ bool glass_in_target_pos = false;
<transition>
<source
ref=
"id28"
/>
<target
ref=
"id16"
/>
<label
kind=
"synchronisation"
x=
"7
73
"
y=
"-
93
"
>
goal?
</label>
<label
kind=
"assignment"
x=
"7
73
"
y=
"-
76
"
>
orient_constraint_set = false
</label>
<label
kind=
"synchronisation"
x=
"7
82
"
y=
"-
102
"
>
goal?
</label>
<label
kind=
"assignment"
x=
"7
82
"
y=
"-
85
"
>
orient_constraint_set = false
</label>
</transition>
<transition>
<source
ref=
"id27"
/>
...
...
@@ -624,8 +633,8 @@ bool glass_in_target_pos = false;
</transition>
<transition>
<source
ref=
"id16"
/>
<target
ref=
"id
18
"
/>
<label
kind=
"synchronisation"
x=
"782"
y=
"
25
"
>
move_success?
</label>
<target
ref=
"id
43
"
/>
<label
kind=
"synchronisation"
x=
"782"
y=
"
-34
"
>
move_success?
</label>
</transition>
<transition>
<source
ref=
"id15"
/>
...
...
@@ -663,12 +672,12 @@ bool glass_in_target_pos = false;
</template>
<template>
<name>
testdonecatcher
</name>
<location
id=
"id4
3
"
x=
"0"
y=
"0"
>
<location
id=
"id4
4
"
x=
"0"
y=
"0"
>
</location>
<init
ref=
"id4
3
"
/>
<init
ref=
"id4
4
"
/>
<transition>
<source
ref=
"id4
3
"
/>
<target
ref=
"id4
3
"
/>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<label
kind=
"synchronisation"
x=
"8"
y=
"-42"
>
test_done?
</label>
<nail
x=
"59"
y=
"-17"
/>
<nail
x=
"59"
y=
"17"
/>
...
...
@@ -676,12 +685,12 @@ bool glass_in_target_pos = false;
</template>
<template>
<name>
positionupdatecatcher
</name>
<location
id=
"id4
4
"
x=
"-731"
y=
"-544"
>
<location
id=
"id4
5
"
x=
"-731"
y=
"-544"
>
</location>
<init
ref=
"id4
4
"
/>
<init
ref=
"id4
5
"
/>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-1181"
y=
"-816"
>
i : int[0,max_ang_diff]
</label>
<label
kind=
"synchronisation"
x=
"-1181"
y=
"-833"
>
glass_diff_to_start_ang_update?
</label>
<label
kind=
"assignment"
x=
"-1181"
y=
"-799"
>
glass_diff_to_start_ang = i
</label>
...
...
@@ -689,8 +698,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-935"
y=
"-799"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-450"
y=
"-790"
>
i : int[0,max_ang_diff]
</label>
<label
kind=
"synchronisation"
x=
"-476"
y=
"-807"
>
glass_diff_to_target_ang_update?
</label>
<label
kind=
"assignment"
x=
"-442"
y=
"-773"
>
glass_diff_to_target_ang = i
</label>
...
...
@@ -698,8 +707,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-484"
y=
"-790"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-493"
y=
"-382"
>
i : int[0,max_ang_diff]
</label>
<label
kind=
"synchronisation"
x=
"-493"
y=
"-399"
>
bottle_diff_to_start_ang_update?
</label>
<label
kind=
"assignment"
x=
"-493"
y=
"-365"
>
bottle_diff_to_start_ang = i
</label>
...
...
@@ -707,8 +716,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-510"
y=
"-382"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-1198"
y=
"-416"
>
i : int[0,max_ang_diff]
</label>
<label
kind=
"synchronisation"
x=
"-1232"
y=
"-433"
>
bottle_diff_to_target_ang_update?
</label>
<label
kind=
"assignment"
x=
"-1207"
y=
"-399"
>
bottle_diff_to_target_ang = i
</label>
...
...
@@ -716,8 +725,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-952"
y=
"-391"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-858"
y=
"-306"
>
i : int[0,max_pos_diff]
</label>
<label
kind=
"synchronisation"
x=
"-858"
y=
"-323"
>
bottle_diff_to_target_pos_update?
</label>
<label
kind=
"assignment"
x=
"-858"
y=
"-289"
>
bottle_diff_to_target_pos = i
</label>
...
...
@@ -725,8 +734,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-697"
y=
"-331"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-1232"
y=
"-561"
>
i : int[0,max_pos_diff]
</label>
<label
kind=
"synchronisation"
x=
"-1232"
y=
"-578"
>
glass_diff_to_start_pos_update?
</label>
<label
kind=
"assignment"
x=
"-1232"
y=
"-544"
>
glass_diff_to_start_pos = i
</label>
...
...
@@ -734,8 +743,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-1003"
y=
"-527"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-773"
y=
"-884"
>
i : int[0,max_pos_diff]
</label>
<label
kind=
"synchronisation"
x=
"-824"
y=
"-901"
>
glass_diff_to_target_pos_update?
</label>
<label
kind=
"assignment"
x=
"-824"
y=
"-867"
>
glass_diff_to_target_pos = i
</label>
...
...
@@ -743,8 +752,8 @@ bool glass_in_target_pos = false;
<nail
x=
"-765"
y=
"-850"
/>
</transition>
<transition>
<source
ref=
"id4
4
"
/>
<target
ref=
"id4
4
"
/>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<label
kind=
"select"
x=
"-323"
y=
"-569"
>
i : int[0,max_pos_diff]
</label>
<label
kind=
"synchronisation"
x=
"-323"
y=
"-586"
>
bottle_diff_to_start_pos_update?
</label>
<label
kind=
"assignment"
x=
"-323"
y=
"-552"
>
bottle_diff_to_start_pos = i
</label>
...
...
@@ -754,61 +763,61 @@ bool glass_in_target_pos = false;
</template>
<template>
<name>
positionupdate
</name>
<location
id=
"id4
5
"
x=
"0"
y=
"0"
>
<location
id=
"id4
6
"
x=
"0"
y=
"0"
>
</location>
<init
ref=
"id4
5
"
/>
<init
ref=
"id4
6
"
/>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"-331"
y=
"59"
>
bottle_diff_to_target_ang_update!
</label>
<nail
x=
"-119"
y=
"42"
/>
<nail
x=
"-85"
y=
"68"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"-323"
y=
"-110"
>
glass_diff_to_start_ang_update!
</label>
<nail
x=
"-85"
y=
"-110"
/>
<nail
x=
"-119"
y=
"-85"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"119"
y=
"-76"
>
glass_diff_to_target_ang_update!
</label>
<nail
x=
"110"
y=
"-42"
/>
<nail
x=
"93"
y=
"-68"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"102"
y=
"59"
>
bottle_diff_to_start_ang_update!
</label>
<nail
x=
"85"
y=
"85"
/>
<nail
x=
"102"
y=
"68"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"-340"
y=
"-17"
>
glass_diff_to_start_pos_update!
</label>
<nail
x=
"-119"
y=
"-25"
/>
<nail
x=
"-119"
y=
"8"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"-136"
y=
"93"
>
bottle_diff_to_target_pos_update!
</label>
<nail
x=
"-34"
y=
"85"
/>
<nail
x=
"17"
y=
"85"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"-34"
y=
"-119"
>
glass_diff_to_target_pos_update!
</label>
<nail
x=
"25"
y=
"-102"
/>
<nail
x=
"-25"
y=
"-102"
/>
</transition>
<transition>
<source
ref=
"id4
5
"
/>
<target
ref=
"id4
5
"
/>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<label
kind=
"synchronisation"
x=
"127"
y=
"-8"
>
bottle_diff_to_start_pos_update!
</label>
<nail
x=
"119"
y=
"-17"
/>
<nail
x=
"119"
y=
"17"
/>
...
...
@@ -816,12 +825,12 @@ bool glass_in_target_pos = false;
</template>
<template>
<name>
goalcatcher
</name>
<location
id=
"id4
6
"
x=
"-578"
y=
"-263"
>
<location
id=
"id4
7
"
x=
"-578"
y=
"-263"
>
</location>
<init
ref=
"id4
6
"
/>
<init
ref=
"id4
7
"
/>
<transition>
<source
ref=
"id4
6
"
/>
<target
ref=
"id4
6
"
/>
<source
ref=
"id4
7
"
/>
<target
ref=
"id4
7
"
/>
<label
kind=
"synchronisation"
x=
"-535"
y=
"-272"
>
goal?
</label>
<nail
x=
"-535"
y=
"-280"
/>
<nail
x=
"-535"
y=
"-246"
/>
...
...
This diff is collapsed.
Click to expand it.
scripts/tron_testing_auto.sh
+
1
−
3
View file @
b28efcf6
...
...
@@ -21,8 +21,6 @@ tron_args=( # do not set -o here
"-- 8080"
)
# tron_args to one string
tron_args_str
=
${
tron_args
[0]
}
for
single_arg
in
${
tron_args
[@]
:1
}
;
do
...
...
@@ -37,7 +35,7 @@ for ((i=29;i<=test_count;i++)); do
tron_args_str_output
=
"-o
$start_dir
/test_output
$i
$tron_args_str
"
$tron_location
$tron_args_str_output
&
tron_pid
=
$!
roslaunch
$package_name
$roslaunch_filename
&
roslaunch_pid
=
$!
trap
"kill
$tron_pid
; kill
$roslaunch_pid
; wait
$tron_pid
; wait
$roslaunch_pid
; return 1"
SIGINT
# kill both on interrupt
trap
"kill
$tron_pid
; kill
$roslaunch_pid
; wait
$tron_pid
; wait
$roslaunch_pid
;
cd
$start_dir
;
return 1"
SIGINT
# kill both on interrupt
wait
$tron_pid
kill
$roslaunch_pid
wait
$roslaunch_pid
# wait till actually killed, takes few seconds
...
...
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