asojogrvc / smart-flies

HMWTPP Planner
https://arxiv.org/abs/2410.20849
MIT License
0 stars 0 forks source link

Case lidar inspection dont generate a response #10

Closed arpoma16 closed 2 days ago

arpoma16 commented 2 days ago

log:

127.0.0.1 - - [30/Oct/2024 11:52:04] "OPTIONS /mission_request HTTP/1.1" 200 -                                                                                                           
{'id': '65851722', 'case': 2, 'meteo': [], 'locations': [{'name': 'Elements', 'items': [{'latitude': 37.14280659694354, 'longitude': -6.466046539531733}, {'latitude': 37.14249465570466,
 'longitude': -6.46368361778925}]}], 'devices': [{'settings': {'base': [37.1938071382897, -6.702911873416099, 'base'], 'inspection_speed': 7, 'navigation_speed': 15, 'vertical_offset': 
10, 'horizontal_offset': 10, 'tower_height': 10, 'security_height': 10, 'landing_mode': 2}, 'id': 'uav_14', 'category': 'dji_M300'}, {'settings': {'base': [37.04392450222122, -6.5686770
29462045, 'base'], 'inspection_speed': 7, 'navigation_speed': 15, 'vertical_offset': 10, 'horizontal_offset': 10, 'tower_height': 10, 'security_height': 10, 'landing_mode': 2}, 'id': 'u
av_3', 'category': 'px4'}, {'settings': {'base': [37.1340964847625, -6.472237657544976, 'base'], 'inspection_speed': 7, 'navigation_speed': 15, 'vertical_offset': 10, 'horizontal_offset
': 10, 'tower_height': 10, 'security_height': 10, 'landing_mode': 2}, 'id': 'uav_15', 'category': 'dji_M300'}, {'settings': {'base': [37.134972445278365, -6.472774411805773], 'inspectio
n_speed': 7, 'navigation_speed': 15, 'vertical_offset': 10, 'horizontal_offset': 10, 'tower_height': 10, 'security_height': 10, 'landing_mode': 2}, 'id': 'uav_17', 'category': 'dji_M600
'}]}                                                                                                                                                                                     
127.0.0.1 - - [30/Oct/2024 11:52:04] "POST /mission_request HTTP/1.1" 200 -                                                                                                              
No compatible_cases attribute for model: dji_M300. Assuming all                                                                                                                          
{'results': {}, 'status': ['occupied', 'PARTIAL ERROR'], 'description': 'One or more requested IDs is not present'}                                                                      
127.0.0.1 - - [30/Oct/2024 11:52:04] "GET /get_plan?IDs=65851722 HTTP/1.1" 200 -                                                                                                         
[37.19380714 -6.70291187 49.35508728]                                                                                                                                                    
[1.73125141e+06 2.83922688e+06 4.93550873e+01]                                                                                                                                           
UAV px4 is not compatible with use case 2                                                                                                                                                
No compatible_cases attribute for model: dji_M300. Assuming all                                                                                                                          
[37.13409648 -6.47223766  6.68812847]                                                                                                                                                    
[1.72033722e+06 2.85807761e+06 6.68812847e+00]                                                                                                                                           
No compatible_cases attribute for model: dji_M600. Assuming all                                                                                                                          
[37.13497245 -6.47277441  5.87131882]                                                                                                                                                    
[1.72044244e+06 2.85804917e+06 5.87131882e+00]                                                                                                                                           
Online Weather loaded at: http://api.weatherapi.com/v1/current.json?key=f4e4e58c9c0c4492aeb144023231005&q=37.19380713005487,-6.702911873416092&aqi=no                                    
[array([[37.1428066 , -6.46604654,  0.        ],                                                                                                                                         
       [37.14249466, -6.46368362,  0.        ]])]                                                                                                                                        
^K{'results': {}, 'status': ['occupied', 'PARTIAL ERROR'], 'description': 'One or more requested IDs is not present'}                                                                    
127.0.0.1 - - [30/Oct/2024 11:52:09] "GET /get_plan?IDs=65851722 HTTP/1.1" 200 -                                                                                                         
route [('B0', 'T1'), ('T1', 'T2'), ('T2', 'T1'), ('T1', 'B0')]                                                                                                                           
routeAbstract [('B0', 'T1'), ('T1', 'T2'), ('T2', 'T1'), ('T1', 'B0')]                                                                                                                   
routeModes ['Navigation', 'Inspection', 'Inspection', 'Navigation']                                                                                                                      
routeCoords [(array([1.73125141e+06, 2.83922688e+06, 4.93550873e+01]), array([1.72116291e+06, 2.85880080e+06, 6.28889322e+00])), (array([1.72116291e+06, 2.85880080e+06, 6.28889322e+00])
, array([1.72108390e+06, 2.85900044e+06, 7.26522446e+00])), (array([1.72108390e+06, 2.85900044e+06, 7.26522446e+00]), array([1.72116291e+06, 2.85880080e+06, 6.28889322e+00])), (array([1
.72116291e+06, 2.85880080e+06, 6.28889322e+00]), array([1.73125141e+06, 2.83922688e+06, 4.93550873e+01]))]                                                                               
zhttps://api.opentopodata.org/v1/eudem25m?locations=37.19380713005487,-6.702911873416092|37.14289601444671,-6.466025890344864&samples=100                                                
{'results': [{'dataset': 'eudem25m', 'elevation': 49.3550910949707, 'location': {'lat': 37.19380713005487, 'lng': -6.702911873416092}}, {'dataset': 'eudem25m', 'elevation': 47.113990783
691406, 'location': {'lat': 37.193295247177055, 'lng': -6.700517498392496}}, {'dataset': 'eudem25m', 'elevation': 50.34341049194336, 'location': {'lat': 37.19278331586548, 'lng': -6.698
123155698066}}, {'dataset': 'eudem25m', 'elevation': 44.078346252441406, 'location': {'lat': 37.19227133612169, 'lng': -6.695728845334793}}, {'dataset': 'eudem25m', 'elevation': 44.1038
9709472656, 'location': {'lat': 37.19175930794721, 'lng': -6.693334567304708}}, {'dataset': 'eudem25m', 'elevation': 56.7874755859375, 'location': {'lat': 37.191247231343574, 'lng': -6.
690940321609829}}, {'dataset': 'eudem25m', 'elevation': 55.25563049316406, 'location': {'lat': 37.190735106312324, 'lng': -6.6885461082521855}}, {'dataset': 'eudem25m', 'elevation': 55.
082855224609375, 'location': {'lat': 37.190222932855, 'lng': -6.686151927233784}}, {'dataset': 'eudem25m', 'elevation': 50.96208572387695, 'location': {'lat': 37.18971071097314, 'lng': 
-6.68375777855664}}, {'dataset': 'eudem25m', 'elevation': 54.01035690307617, 'location': {'lat': 37.18919844066829, 'lng': -6.681363662222774}}, {'dataset': 'eudem25m', 'elevation': 55.
26443862915039, 'location': {'lat': 37.18868612194196, 'lng': -6.678969578234215}}, {'dataset': 'eudem25m', 'elevation': 55.123626708984375, 'location': {'lat': 37.18817375479573, 'lng'
: -6.67657552659298}}, {'dataset': 'eudem25m', 'elevation': 56.252540588378906, 'location': {'lat': 37.1876613392311, 'lng': -6.674181507301075}}, {'dataset': 'eudem25m', 'eleva

...

{'results': {'65851722': {'error': 'JSON Format not valid or the planner failed'}}, 'status': ['inactive', 'OK'], 'description': 'Everything went OK'}
127.0.0.1 - - [30/Oct/2024 11:52:14] "GET /get_plan?IDs=65851722 HTTP/1.1" 200 -
{'results': {'65851722': {'error': 'JSON Format not valid or the planner failed'}}, 'status': ['inactive', 'OK'], 'description': 'Everything went OK'}
127.0.0.1 - - [30/Oct/2024 11:52:19] "GET /get_plan?IDs=65851722 HTTP/1.1" 200 -

request : { "id": "65851722", "case": 2, "meteo": [], "locations": [ { "name": "Elements", "items": [ { "latitude": 37.14280659694354, "longitude": -6.466046539531733 }, { "latitude": 37.14249465570466, "longitude": -6.46368361778925 } ] } ], "devices": [ { "settings": { "base": [ 37.1938071382897, -6.702911873416099, "base" ], "inspection_speed": 7, "navigation_speed": 15, "vertical_offset": 10, "horizontal_offset": 10, "tower_height": 10, "security_height": 10, "landing_mode": 2 }, "id": "uav_14", "category": "dji_M300" }, { "settings": { "base": [ 37.04392450222122, -6.568677029462045, "base" ], "inspection_speed": 7, "navigation_speed": 15, "vertical_offset": 10, "horizontal_offset": 10, "tower_height": 10, "security_height": 10, "landing_mode": 2 }, "id": "uav_3", "category": "px4" }, { "settings": { "base": [ 37.1340964847625, -6.472237657544976, "base" ], "inspection_speed": 7, "navigation_speed": 15, "vertical_offset": 10, "horizontal_offset": 10, "tower_height": 10, "security_height": 10, "landing_mode": 2 }, "id": "uav_15", "category": "dji_M300" }, { "settings": { "base": [ 37.134972445278365, -6.472774411805773 ], "inspection_speed": 7, "navigation_speed": 15, "vertical_offset": 10, "horizontal_offset": 10, "tower_height": 10, "security_height": 10, "landing_mode": 2 }, "id": "uav_17", "category": "dji_M600" } ] }

in this case is M600 devices is compatible with this case