basically done
This commit is contained in:
@@ -75,8 +75,11 @@ def initialization(path, sub, data_dirs, data_files, hr, w2t):
|
||||
clibs.insert_logdb("INFO", "do_brake", f"get_configs: 各关节角速度 {avs}")
|
||||
return avs
|
||||
|
||||
clibs.c_hr.set_socket_params(True, str(clibs.external_port), "\r", 1)
|
||||
clibs.c_ec = openapi.ExternalCommunication(clibs.ip_addr, clibs.external_port)
|
||||
try:
|
||||
clibs.c_hr.set_socket_params(True, str(clibs.external_port), "\r", 1)
|
||||
clibs.c_ec = openapi.ExternalCommunication(clibs.ip_addr, clibs.external_port)
|
||||
except Exception:
|
||||
w2t(f"{clibs.ip_addr}:{clibs.socket_port} 或者 {clibs.ip_addr}:{clibs.external_port} 不可达,需检查网络连接!\n", color="red", desc="NetworkError")
|
||||
|
||||
_config_file, _prj_file, _result_dirs = check_files()
|
||||
_avs = get_configs()
|
||||
|
||||
Reference in New Issue
Block a user