Development InterfacesPython SDK Guide
SDK Integration Guide
After following the documentation below, as long as you are within the local area network, you can control the robot using the sample code without going through ROS
Starting Websocket
Starting the Websocket Server
If the host computer is an NX or AGX, you need to install the following package.
sudo apt-get install ros-noetic-rosbridge-serverStarting on the Host Computer
To use the Websocket SDK, you must first start the Websocket server on the host computer:
cd kuavo_ros_application
catkin build kuavo_msgs ocs2_msgs
source devel/setup.bash
roslaunch rosbridge_server rosbridge_websocket.launchSDK Initialization
Before using the SDK, you need to first change the IP address in the SDK you are running to initialize the WebSocket connection. When initializing, you must specify the following parameters:
KuavoSDK.Init(
websocket_mode=True, # 启用 WebSocket 模式
websocket_host='127.0.0.1' # WebSocket 服务器IP地址,也就是上位机IP地址
)Parameter descriptions:
websocket_mode: Whether to enable WebSocket mode; must be set to Truewebsocket_host: WebSocket server address, defaults to '127.0.0.1'; change it to your own host computer's address