feat: 日常更新,更新对准方法,完成hanoi2对准,get/put_bball动作
This commit is contained in:
46
utils.py
46
utils.py
@@ -2,26 +2,36 @@
|
||||
from enum import Enum
|
||||
import numpy as np
|
||||
import erniebot
|
||||
|
||||
# 巡线误差
|
||||
lane_error = 0
|
||||
# 进入任务时可以通过修改 task_speed 控制巡线速度
|
||||
task_speed = 0
|
||||
|
||||
|
||||
class tlabel(Enum):
|
||||
TOWER = 0
|
||||
SIGN = 1
|
||||
SHELTER = 2
|
||||
HOSPITAL = 3
|
||||
BASKET = 4
|
||||
BASE = 5
|
||||
YBALL = 6
|
||||
SPILLER = 7
|
||||
RMARK = 8
|
||||
RBLOCK = 9
|
||||
RBALL = 10
|
||||
MPILLER = 11
|
||||
LPILLER = 12
|
||||
LMARK = 13
|
||||
BBLOCK = 14
|
||||
BBALL = 15
|
||||
TPLATFORM = 0
|
||||
TOWER = 1
|
||||
SIGN = 2
|
||||
SHELTER = 3
|
||||
HOSPITAL = 4
|
||||
BASKET = 5
|
||||
BASE = 6
|
||||
YBALL = 7
|
||||
SPILLER = 8
|
||||
RMARK = 9
|
||||
RBLOCK = 10
|
||||
RBALL = 11
|
||||
MPILLER = 12
|
||||
LPILLER = 13
|
||||
LMARK = 14
|
||||
BBLOCK = 15
|
||||
BBALL = 16
|
||||
|
||||
# 岔路口参数
|
||||
direction = tlabel.RMARK
|
||||
direction_left = 0
|
||||
direction_right = 0
|
||||
|
||||
'''
|
||||
description: label_filter 的测试数据
|
||||
'''
|
||||
@@ -134,8 +144,6 @@ class label_filter:
|
||||
break
|
||||
if except_label != None:
|
||||
return True, except_label, error
|
||||
return False, None, None
|
||||
return False, None, None
|
||||
return False, None, None
|
||||
def get_near_box(self, tlabel_list):
|
||||
response = self.get_resp()
|
||||
|
||||
Reference in New Issue
Block a user