diff --git a/readme.md b/readme.md index b6c8d9bd..1ea5b884 100644 --- a/readme.md +++ b/readme.md @@ -272,6 +272,8 @@ else ### unitree_sdk2_python 1. Run ```bash +cd example/python + python3 ./stand_go2.py # Control the robot in the simulation (make sure the Go2 simulation scene has been loaded) python3 ./stand_go2.py enp3s0 # Control the physical robot, where enp3s0 is the name of the network card connected to the robot ``` @@ -307,4 +309,4 @@ export ROS_DOMAIN_ID=1 # Modify the domain id to match the simulation source ~/unitree_ros2/setup.sh # Use the network card connected to the robot export ROS_DOMAIN_ID=0 # Use the default domain id ./install/stand_go2/bin/stand_go2 # Run -``` \ No newline at end of file +``` diff --git a/readme_zh.md b/readme_zh.md index 4e4441a4..78f59c31 100644 --- a/readme_zh.md +++ b/readme_zh.md @@ -280,6 +280,8 @@ else ### unitree_sdk2_python 1. 运行: ```bash +cd example/python + python3 ./stand_go2.py # 控制仿真中的机器人 (需确保 Go2 仿真场景已经加载) python3 ./stand_go2.py enp3s0 # 控制机器人实物,其中 enp3s0 为机器人所连接的网卡名称 ``` @@ -315,4 +317,4 @@ export ROS_DOMAIN_ID=1 # 修改domain id 与仿真一致 source ~/unitree_ros2/setup.sh # 使用机器人连接的网卡 export ROS_DOMAIN_ID=0 # 使用默认的 domain id ./install/stand_go2/bin/stand_go2 # 运行 -``` \ No newline at end of file +```