ROSBuzz_MISTLab/buzz_scripts/include/taskallocate/graphs/shapes_P.bzz

59 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-07-17 10:49:41 -03:00
#Table of the nodes in the graph
m_vecNodes={}
2017-11-22 22:59:57 -04:00
function Read_GraphP(){
m_vecNodes[0] = { # The .graph file is stored according the sequence of Label, predecessor, distance, bearing
.Label = 0, # Label of the point
.Pred = -1, # Label of its predecessor
2017-07-17 10:49:41 -03:00
.distance = -1, # distance to the predecessor
.bearing = -1, # bearing form the predecessor to this dot
.height = 3000, # height of this dot
.State="UNASSIGNED",
.StateAge=0
}
m_vecNodes[1] = {
.Label = 1,
2017-07-17 10:49:41 -03:00
.Pred = 0,
2017-11-22 22:59:57 -04:00
.distance = 1000,
2017-07-17 10:49:41 -03:00
.bearing = 0.0,
.height = 5000,
.State="UNASSIGNED",
.StateAge=0
}
m_vecNodes[2] = {
.Label = 2,
2017-07-17 10:49:41 -03:00
.Pred = 0,
2017-11-22 22:59:57 -04:00
.distance = 1000,
2017-07-17 10:49:41 -03:00
.bearing = 1.57,
.height = 7000,
.State="UNASSIGNED",
.StateAge=0
}
m_vecNodes[3] = {
.Label = 3,
2017-07-22 15:14:06 -03:00
.Pred = 0,
2017-11-22 22:59:57 -04:00
.distance = 1000,
2017-07-17 10:49:41 -03:00
.bearing = 4.71,
.height = 9000,
.State="UNASSIGNED",
.StateAge=0
}
m_vecNodes[4] = {
.Label = 4,
2017-07-17 10:49:41 -03:00
.Pred = 1,
2017-11-22 22:59:57 -04:00
.distance = 707,
2017-07-17 10:49:41 -03:00
.bearing = 0.79,
.height = 11000,
.State="UNASSIGNED",
.StateAge=0
}
m_vecNodes[5] = {
.Label = 5,
2017-07-17 10:49:41 -03:00
.Pred = 2,
2017-11-22 22:59:57 -04:00
.distance = 1000,
2017-07-17 10:49:41 -03:00
.bearing = 0.0,
.height = 14000,
.State="UNASSIGNED",
.StateAge=0
2017-07-22 15:14:06 -03:00
}
2017-07-17 10:49:41 -03:00
}