bosdyn-mission 4.1.0__py3-none-any.whl → 4.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bosdyn/mission/util.py +23 -15
- {bosdyn_mission-4.1.0.dist-info → bosdyn_mission-4.1.1.dist-info}/METADATA +3 -3
- {bosdyn_mission-4.1.0.dist-info → bosdyn_mission-4.1.1.dist-info}/RECORD +5 -5
- {bosdyn_mission-4.1.0.dist-info → bosdyn_mission-4.1.1.dist-info}/WHEEL +0 -0
- {bosdyn_mission-4.1.0.dist-info → bosdyn_mission-4.1.1.dist-info}/top_level.txt +0 -0
bosdyn/mission/util.py
CHANGED
|
@@ -387,22 +387,30 @@ def set_blackboard(dict_values: Dict[str, util_pb2.Value],
|
|
|
387
387
|
return node_to_return
|
|
388
388
|
|
|
389
389
|
|
|
390
|
+
_SEVERITY_TO_LOG_LEVEL = {
|
|
391
|
+
alerts_pb2.AlertData.SeverityLevel.SEVERITY_LEVEL_INFO:
|
|
392
|
+
logging.INFO,
|
|
393
|
+
alerts_pb2.AlertData.SeverityLevel.SEVERITY_LEVEL_WARN:
|
|
394
|
+
logging.WARN,
|
|
395
|
+
alerts_pb2.AlertData.SeverityLevel.SEVERITY_LEVEL_ERROR:
|
|
396
|
+
logging.ERROR,
|
|
397
|
+
# A critical mission prompt or text message does not indicate a critical robot failure,
|
|
398
|
+
# and is usually expected depending on how a mission plays out. For this reason, we
|
|
399
|
+
# reduce the severity from CRITICAL to ERROR for logs.
|
|
400
|
+
# See Prompt.severity in nodes.proto for more info.
|
|
401
|
+
alerts_pb2.AlertData.SeverityLevel.SEVERITY_LEVEL_CRITICAL:
|
|
402
|
+
logging.ERROR,
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
|
|
390
406
|
def severity_to_log_level(text_level):
|
|
391
407
|
"""Converts alert data severity enum to a logger level for printing purposes."""
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
case alerts_pb2.AlertData.SeverityLevel.SEVERITY_LEVEL_CRITICAL:
|
|
400
|
-
# A critical mission prompt or text message does not indicate a critical robot failure,
|
|
401
|
-
# and is usually expected depending on how a mission plays out. For this reason, we
|
|
402
|
-
# reduce the servity from CRITICAL to ERROR for logs.
|
|
403
|
-
# See Prompt.severity in nodes.proto for more info.
|
|
404
|
-
return logging.ERROR
|
|
405
|
-
case _:
|
|
406
|
-
return logging.INFO
|
|
408
|
+
return _SEVERITY_TO_LOG_LEVEL.get(text_level, logging.INFO)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
# We want to be able to port spotcam-ptz missions to the argos-ptz sensor.
|
|
412
|
+
def append_alternate_sensor_names(sensor_names):
|
|
413
|
+
if "argos-ptz" in sensor_names:
|
|
414
|
+
sensor_names.append("spotcam-ptz")
|
|
407
415
|
|
|
408
416
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bosdyn-mission
|
|
3
|
-
Version: 4.1.
|
|
3
|
+
Version: 4.1.1
|
|
4
4
|
Summary: Boston Dynamics mission code
|
|
5
5
|
Home-page: https://dev.bostondynamics.com/
|
|
6
6
|
Author: Boston Dynamics
|
|
@@ -15,8 +15,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
15
15
|
Classifier: License :: Other/Proprietary License
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: bosdyn-client (==4.1.
|
|
19
|
-
Requires-Dist: bosdyn-api (==4.1.
|
|
18
|
+
Requires-Dist: bosdyn-client (==4.1.1)
|
|
19
|
+
Requires-Dist: bosdyn-api (==4.1.1)
|
|
20
20
|
|
|
21
21
|
<!--
|
|
22
22
|
Copyright (c) 2023 Boston Dynamics, Inc. All rights reserved.
|
|
@@ -5,8 +5,8 @@ bosdyn/mission/constants.py,sha256=oSsl0XR1-fNzHASGNqs541YEO8qi64eewvbY9ICKaxE,4
|
|
|
5
5
|
bosdyn/mission/exceptions.py,sha256=UqGT0XK3zA6Bgwo_7KNC44yi_MvW9h3c8_pHKML8ELQ,3941
|
|
6
6
|
bosdyn/mission/remote_client.py,sha256=quGWyqLzpASgrR6MlnEPoRFCmnTMSBZ6tmr-Wyy9YW0,12190
|
|
7
7
|
bosdyn/mission/server_util.py,sha256=xd9D5VwP6mjbxUcUGCV4gN2AvsmRpL9wyvMpKR6Bmxk,1505
|
|
8
|
-
bosdyn/mission/util.py,sha256=
|
|
9
|
-
bosdyn_mission-4.1.
|
|
10
|
-
bosdyn_mission-4.1.
|
|
11
|
-
bosdyn_mission-4.1.
|
|
12
|
-
bosdyn_mission-4.1.
|
|
8
|
+
bosdyn/mission/util.py,sha256=JzufUi49GwganMKR5L03X1j-rp3clt1tObhS3nofGNs,16938
|
|
9
|
+
bosdyn_mission-4.1.1.dist-info/METADATA,sha256=xy4YS79GpBMgndsSsw3iiWrWf-0gvCSO5FLcvKsLOz8,1760
|
|
10
|
+
bosdyn_mission-4.1.1.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
|
|
11
|
+
bosdyn_mission-4.1.1.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
|
|
12
|
+
bosdyn_mission-4.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|