merged to ZK-AI

This commit is contained in:
Liu-Xiaoyan97 2023-11-17 14:35:39 +08:00
parent 1bd181acad
commit ab657425c8
3 changed files with 7 additions and 1 deletions

View File

Binary file not shown.

View File

@ -10,11 +10,17 @@ import time
import math import math
from typing import List from typing import List
from .utils import MQTT, parse_robot_state, calcu_vecloty, calcu_distance from .utils import MQTT, parse_robot_state, calcu_vecloty, calcu_distance
import ZKMetaUnit.src.robot_interface as sdk sys.path.append("/home/unitree/alg/prejects/ZK-AI/zkdog/ZKDogApi/src")
import robot_interface as sdk
HIGHLEVEL = 0xee HIGHLEVEL = 0xee
LOWLEVEL = 0xff LOWLEVEL = 0xff
# cmake -DPYTHON_LIBRARY=/home/unitree/python3.8/lib \
# -DPYTHON_INCLUDE_DIR=/home/unitree/python3.8/include/python3.8 \
# -DPYTHON_EXECUTABLE=/home/unitree/python3.8/bin/python3.8 \
# ..
class ZKDOG: class ZKDOG:
def __init__(self) -> None: def __init__(self) -> None:
self.udp = sdk.UDP(HIGHLEVEL, 8080, "192.168.123.161", 8082) self.udp = sdk.UDP(HIGHLEVEL, 8080, "192.168.123.161", 8082)