Skip to content

Commit 8c8a47a

Browse files
committed
add ota upgrade
1 parent ebd30c4 commit 8c8a47a

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ graph LR
7373

7474
```bash
7575
pip install "numpy < 2.0" mujoco
76-
git clone https://github.com/DeepRoboticsLab/M20_rl_deploy.git
76+
git clone https://github.com/DeepRoboticsLab/sdk_deploy.git
7777

7878
# 编译
79-
cd M20_rl_deploy
79+
cd sdk_deploy
8080
source /opt/ros/<ros-distro>/setup.bash
8181
colcon build --packages-up-to rl_deploy --cmake-args -DBUILD_PLATFORM=x86
8282
```
@@ -104,25 +104,31 @@ python3 src/M20_sdk_deploy/interface/robot/simulation/mujoco_simulation_ros2.py
104104
## 仿真-实际
105105
此过程和仿真-仿真几乎一模一样,只需要添加连wifi传输数据步骤,然后修改编译指令即可。目前默认实机操控为keyboard键盘模式,后续我们将会添加手柄控制模式,敬请期待。
106106

107-
请先下载 [drdds-ros2-msgs](https://drive.google.com/file/d/1NrMsYSY5AM0vYoYBc0Tc3BEbndN0ckos/view?usp=sharing) 并安装
107+
请先使用手柄设置中的OTA升级功能将硬件升级为1.1.7版本
108108

109109
```bash
110110
# 电脑和手柄均连接机器狗WiFi
111111
# WiFi名称为 M20********
112112
# WiFi密码为 12345678 (一般为这个,如有问题联系技术支持)
113113

114114
# scp传输文件 (打开本地电脑终端) 密码为' (单引号)
115-
scp -r ~/M20_rl_deploy user@10.21.31.103:~/
115+
scp -r ~/sdk_deploy/src user@10.21.31.103:~/sdk_deploy/
116116

117117
# ssh连接机器狗运动主机以远程开发
118118
ssh user@10.21.31.103
119-
cd M20_rl_deploy
119+
cd sdk_deploy
120120
source /opt/ros/foxy/setup.bash
121121
colcon build --packages-select rl_deploy --cmake-args -DBUILD_PLATFORM=arm
122122

123123

124-
sudo su
125-
sudo dpkg -i drdds-ros2-msgs.v1.0.4+96b382.arm64.2511141335.deb
124+
sudo su # Root
125+
source /opt/ros/foxy/setup.bash #source ROS2 env
126+
source /opt/robot/scripts/setup_ros2.sh
127+
ros2 service call /SDK_MODE drdds/srv/StdSrvInt32 command:\ 200 # /200 is /JOINTS_DATA topic frequency, recommended below 500 Hz
128+
129+
# Run
130+
source install/setup.bash
131+
ros2 run rl_deploy rl_deploy
126132

127133
# 退出sdk模式:
128134
ros2 service call /SDK_MODE drdds/srv/StdSrvInt32 command:\ 0

README_EN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ graph LR
7070

7171
```bash
7272
pip install "numpy < 2.0" mujoco
73-
git clone https://github.com/DeepRoboticsLab/M20_rl_deploy.git
73+
git clone https://github.com/DeepRoboticsLab/sdk_deploy.git
7474

7575
# Compile
76-
cd M20_rl_deploy
76+
cd sdk_deploy
7777
source /opt/ros/<ros-distro>/setup.bash
7878
colcon build --packages-up-to rl_deploy --cmake-args -DBUILD_PLATFORM=x86
7979
```
@@ -103,7 +103,7 @@ python3 src/M20_sdk_deploy/interface/robot/simulation/mujoco_simulation_ros2.py
103103
This process is almost identical to simulation-simulation. You only need to add the step of connecting to Wi-Fi to transfer data, and then modify the compilation instructions. The default control mode is currently set to keyboard mode. We will be adding controller support in future updates. Stay tuned.
104104

105105

106-
Download drdds-ros2-msgs packages from [here](https://drive.google.com/file/d/1Nvxot_LOKMvLAr608kFtZ28gfsgA_dsx/view?usp=sharing) and install
106+
Please first use the OTA upgrade function in the handle settings to upgrade the hardware to version 1.1.7.
107107

108108
```bash
109109

@@ -112,16 +112,16 @@ Download drdds-ros2-msgs packages from [here](https://drive.google.com/file/d/1N
112112
# Passward: 12345678 (If wrong, contact technical support)
113113

114114
# scp to transfer files to quadruped (open a terminal on your local computer) password is ' (a single quote)
115-
scp -r ~/M20_rl_deploy user@10.21.31.103:~/
115+
scp -r ~/sdk_deploy/src user@10.21.31.103:~/sdk_deploy
116116

117117
# ssh connect for remote development,
118118
ssh user@10.21.31.103
119-
cd M20_rl_deploy
119+
cd sdk_deploy
120+
source /opt/ros/foxy/setup.bash #source ROS2 env
120121
colcon build --packages-select rl_deploy --cmake-args -DBUILD_PLATFORM=arm
121122

122123

123124
sudo su # Root
124-
sudo dpkg -i drdds-ros2-msgs.v1.0.2+.arm64.2510291519.deb
125125
source /opt/ros/foxy/setup.bash #source ROS2 env
126126
source /opt/robot/scripts/setup_ros2.sh
127127
ros2 service call /SDK_MODE drdds/srv/StdSrvInt32 command:\ 200 # /200 is /JOINTS_DATA topic frequency, recommended below 500 Hz

0 commit comments

Comments
 (0)