Compare commits

...

2 Commits

Author SHA1 Message Date
Liu-Xiaoyan97 ab657425c8 merged to ZK-AI 2023-11-17 14:35:39 +08:00
Liu-Xiaoyan97 1bd181acad merged to ZK-AI 2023-11-17 14:34:58 +08:00
4 changed files with 7 additions and 1 deletions

View File

Binary file not shown.

View File

@ -10,11 +10,17 @@ import time
import math
from typing import List
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
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:
def __init__(self) -> None:
self.udp = sdk.UDP(HIGHLEVEL, 8080, "192.168.123.161", 8082)