Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SIMS: Split Zone Coverage sims into zone_coverage_line, zone_covera…
…ge_arc, and zone_coverage_onion directories * LICENSE: Modified license to include recent years * SIMS: Updated sims to set default buffer size to 2MB for simulated agents * Streamlined a function in ZoneCoverage to not use goto statements for readability * Updated to version 0.9.23
- Loading branch information
1 parent
1ae1e9f
commit bb283f0
Showing
46 changed files
with
524 additions
and
190 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
0.9.22 | 0.9.23 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
scripts/simulation/zone_coverage_arc/madara_init_common.mf
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
group.assets.members.size=1; | |||
group.assets.members.0="agent.0"; | |||
group.protectors.members.size=7; | |||
group.protectors.members.0="agent.1"; | |||
group.protectors.members.1="agent.3"; | |||
group.protectors.members.2="agent.4"; | |||
group.protectors.members.3="agent.5"; | |||
group.protectors.members.4="agent.6"; | |||
group.protectors.members.5="agent.7"; | |||
group.protectors.members.6="agent.8"; | |||
group.enemies.members.size=1; | |||
group.enemies.members.0="agent.2"; | |||
|
|||
.platform="vrep-uav"; | |||
|
|||
.zone_coverage_formation="arc"; | |||
.zone_coverage_buffer=2; | |||
.zone_coverage_distance=0.5; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
|
|||
.vrep_port=19906; | |||
|
|||
.initial_lat=40.443222; | |||
.initial_lon=-79.940334; | |||
.initial_alt=4; | |||
|
|||
agent.0.command="null"; | |||
agent.0.command.size=0; | |||
agent.0.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19907; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.1.command="zone coverage"; | |||
agent.1.command.size=0; | |||
agent.1.command.formation=.zone_coverage_formation; | |||
agent.1.command.assets="assets"; | |||
agent.1.command.protectors="protectors"; | |||
agent.1.command.enemies="enemies"; | |||
agent.1.command.buffer=.zone_coverage_buffer; | |||
agent.1.command.distance=.zone_coverage_distance; | |||
agent.1.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
.vrep_port=19908; | |||
.vrep_max_delta=0.5; | |||
.vrep_thread_move_speed=1; | |||
|
|||
.initial_lat=40.443236; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.2.command="ppac"; | |||
agent.2.command.size=1; | |||
agent.2.command.0="region.0"; | |||
agent.2.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19909; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940670; | |||
.initial_alt=4; | |||
|
|||
agent.3.command="zone coverage"; | |||
agent.3.command.size=0; | |||
agent.3.command.formation=.zone_coverage_formation; | |||
agent.3.command.assets="assets"; | |||
agent.3.command.protectors="protectors"; | |||
agent.3.command.enemies="enemies"; | |||
agent.3.command.buffer=.zone_coverage_buffer; | |||
agent.3.command.distance=.zone_coverage_distance; | |||
agent.3.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19910; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.4.command="zone coverage"; | |||
agent.4.command.size=0; | |||
agent.4.command.formation=.zone_coverage_formation; | |||
agent.4.command.assets="assets"; | |||
agent.4.command.protectors="protectors"; | |||
agent.4.command.enemies="enemies"; | |||
agent.4.command.buffer=.zone_coverage_buffer; | |||
agent.4.command.distance=.zone_coverage_distance; | |||
agent.4.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19911; | |||
|
|||
.initial_lat=40.443231; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.5.command="zone coverage"; | |||
agent.5.command.size=0; | |||
agent.5.command.formation=.zone_coverage_formation; | |||
agent.5.command.assets="assets"; | |||
agent.5.command.protectors="protectors"; | |||
agent.5.command.enemies="enemies"; | |||
agent.5.command.buffer=.zone_coverage_buffer; | |||
agent.5.command.distance=.zone_coverage_distance; | |||
agent.5.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19912; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.6.command="zone coverage"; | |||
agent.6.command.size=0; | |||
agent.6.command.formation=.zone_coverage_formation; | |||
agent.6.command.assets="assets"; | |||
agent.6.command.protectors="protectors"; | |||
agent.6.command.enemies="enemies"; | |||
agent.6.command.buffer=.zone_coverage_buffer; | |||
agent.6.command.distance=.zone_coverage_distance; | |||
agent.6.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
.vrep_port=19913; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.7.command="zone coverage"; | |||
agent.7.command.size=0; | |||
agent.7.command.formation=.zone_coverage_formation; | |||
agent.7.command.assets="assets"; | |||
agent.7.command.protectors="protectors"; | |||
agent.7.command.enemies="enemies"; | |||
agent.7.command.buffer.zone_coverage_buffer; | |||
agent.7.command.buffer=.zone_coverage_buffer; | |||
agent.7.command.distance=.zone_coverage_distance; | |||
agent.7.hertz=.hertz; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19914; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940670; | |||
.initial_alt=4; | |||
|
|||
agent.8.command="zone coverage"; | |||
agent.8.command.size=0; | |||
agent.8.command.formation=.zone_coverage_formation; | |||
agent.8.command.assets="assets"; | |||
agent.8.command.protectors="protectors"; | |||
agent.8.command.enemies="enemies"; | |||
agent.8.command.buffer=.zone_coverage_buffer; | |||
agent.8.command.distance=.zone_coverage_distance; | |||
agent.8.hertz=.hertz; |
19 changes: 19 additions & 0 deletions
19
scripts/simulation/zone_coverage_line/madara_init_common.mf
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
group.assets.members.size=1; | |||
group.assets.members.0="agent.0"; | |||
group.protectors.members.size=7; | |||
group.protectors.members.0="agent.1"; | |||
group.protectors.members.1="agent.3"; | |||
group.protectors.members.2="agent.4"; | |||
group.protectors.members.3="agent.5"; | |||
group.protectors.members.4="agent.6"; | |||
group.protectors.members.5="agent.7"; | |||
group.protectors.members.6="agent.8"; | |||
group.enemies.members.size=1; | |||
group.enemies.members.0="agent.2"; | |||
|
|||
.platform="vrep-uav"; | |||
|
|||
.zone_coverage_formation="line"; | |||
.zone_coverage_buffer=2; | |||
.zone_coverage_distance=0.5; | |||
.hertz=.5; |
17 changes: 17 additions & 0 deletions
17
scripts/simulation/zone_coverage_line/zone_coverage_simulation.pl
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
#!/usr/bin/perl | |||
use lib "$ENV{GAMS_ROOT}/scripts/simulation"; | |||
use simulation; | |||
|
|||
$gams_root = $ENV{GAMS_ROOT}; | |||
$time = 3600; | |||
$madara_debug = 5; | |||
$gams_debug = 5; | |||
$period = 1; | |||
$num = 9; | |||
$sim = "zone_coverage_line"; | |||
$area = "small"; | |||
$border = "region.0"; | |||
$num_coverages = 0; | |||
$launch_controllers = 1; | |||
|
|||
simulation::run($num, $time, $period, $sim, $area, $madara_debug, $gams_debug, $border, $num_coverages, $launch_controllers); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
|
|||
.vrep_port=19906; | |||
|
|||
.initial_lat=40.443222; | |||
.initial_lon=-79.940334; | |||
.initial_alt=4; | |||
|
|||
agent.0.command="null"; | |||
agent.0.command.size=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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19907; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.1.command="zone coverage"; | |||
agent.1.command.size=0; | |||
agent.1.command.formation=.zone_coverage_formation; | |||
agent.1.command.assets="assets"; | |||
agent.1.command.protectors="protectors"; | |||
agent.1.command.enemies="enemies"; | |||
agent.1.command.buffer=.zone_coverage_buffer; | |||
agent.1.command.distance=.zone_coverage_distance; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
.vrep_port=19908; | |||
.vrep_max_delta=0.5; | |||
.vrep_thread_move_speed=1; | |||
|
|||
.initial_lat=40.443236; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.2.command="ppac"; | |||
agent.2.command.size=1; | |||
agent.2.command.0="region.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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19909; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940670; | |||
.initial_alt=4; | |||
|
|||
agent.3.command="zone coverage"; | |||
agent.3.command.size=0; | |||
agent.3.command.formation=.zone_coverage_formation; | |||
agent.3.command.assets="assets"; | |||
agent.3.command.protectors="protectors"; | |||
agent.3.command.enemies="enemies"; | |||
agent.3.command.buffer=.zone_coverage_buffer; | |||
agent.3.command.distance=.zone_coverage_distance; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19910; | |||
|
|||
.initial_lat=40.443131; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.4.command="zone coverage"; | |||
agent.4.command.size=0; | |||
agent.4.command.formation=.zone_coverage_formation; | |||
agent.4.command.assets="assets"; | |||
agent.4.command.protectors="protectors"; | |||
agent.4.command.enemies="enemies"; | |||
agent.4.command.buffer=.zone_coverage_buffer; | |||
agent.4.command.distance=.zone_coverage_distance; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19911; | |||
|
|||
.initial_lat=40.443231; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.5.command="zone coverage"; | |||
agent.5.command.size=0; | |||
agent.5.command.formation=.zone_coverage_formation; | |||
agent.5.command.assets="assets"; | |||
agent.5.command.protectors="protectors"; | |||
agent.5.command.enemies="enemies"; | |||
agent.5.command.buffer=.zone_coverage_buffer; | |||
agent.5.command.distance=.zone_coverage_distance; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19912; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940470; | |||
.initial_alt=4; | |||
|
|||
agent.6.command="zone coverage"; | |||
agent.6.command.size=0; | |||
agent.6.command.formation=.zone_coverage_formation; | |||
agent.6.command.assets="assets"; | |||
agent.6.command.protectors="protectors"; | |||
agent.6.command.enemies="enemies"; | |||
agent.6.command.buffer=.zone_coverage_buffer; | |||
agent.6.command.distance=.zone_coverage_distance; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
.vrep_port=19913; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940570; | |||
.initial_alt=4; | |||
|
|||
agent.7.command="zone coverage"; | |||
agent.7.command.size=0; | |||
agent.7.command.formation=.zone_coverage_formation; | |||
agent.7.command.assets="assets"; | |||
agent.7.command.protectors="protectors"; | |||
agent.7.command.enemies="enemies"; | |||
agent.7.command.buffer.zone_coverage_buffer; | |||
agent.7.command.buffer=.zone_coverage_buffer; | |||
agent.7.command.distance=.zone_coverage_distance; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
.vrep_port=19914; | |||
|
|||
.initial_lat=40.443031; | |||
.initial_lon=-79.940670; | |||
.initial_alt=4; | |||
|
|||
agent.8.command="zone coverage"; | |||
agent.8.command.size=0; | |||
agent.8.command.formation=.zone_coverage_formation; | |||
agent.8.command.assets="assets"; | |||
agent.8.command.protectors="protectors"; | |||
agent.8.command.enemies="enemies"; | |||
agent.8.command.buffer=.zone_coverage_buffer; | |||
agent.8.command.distance=.zone_coverage_distance; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ation/zone_coverage/madara_init_common.mf → ...zone_coverage_onion/madara_init_common.mf
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
17 changes: 17 additions & 0 deletions
17
scripts/simulation/zone_coverage_onion/zone_coverage_simulation.pl
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
#!/usr/bin/perl | |||
use lib "$ENV{GAMS_ROOT}/scripts/simulation"; | |||
use simulation; | |||
|
|||
$gams_root = $ENV{GAMS_ROOT}; | |||
$time = 3600; | |||
$madara_debug = 5; | |||
$gams_debug = 5; | |||
$period = 1; | |||
$num = 10; | |||
$sim = "zone_coverage_onion"; | |||
$area = "small"; | |||
$border = "region.0"; | |||
$num_coverages = 0; | |||
$launch_controllers = 1; | |||
|
|||
simulation::run($num, $time, $period, $sim, $area, $madara_debug, $gams_debug, $border, $num_coverages, $launch_controllers); |
Oops, something went wrong.