diff --git a/README.md b/README.md index 2efaa8b..d48dc19 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ git pull git submodule update --remote --recursive ``` +## Dependency + Download and deploy `libtorch` at any location ```bash @@ -34,6 +36,16 @@ Install `teleop-twist-keyboard` sudo apt install ros-noetic-teleop-twist-keyboard ``` +Install yaml-cpp + +```bash +git clone https://github.com/jbeder/yaml-cpp.git +cd yaml-cpp && mkdir build && cd build +cmake -DYAML_BUILD_SHARED_LIBS=on .. && make +sudo make install +sudo ldconfig +``` + ## Compilation Customize the following two functions in your code to adapt to different models: @@ -52,7 +64,7 @@ catkin build ## Running -Before running, copy the trained pt model file to `rl_sar/src/rl_sar/models` +Before running, copy the trained pt model file to `rl_sar/src/rl_sar/models/YOUR_ROBOT_NAME`, and configure the parameters in `config.yaml`. ### Simulation diff --git a/README_CN.md b/README_CN.md index 5470873..2663284 100644 --- a/README_CN.md +++ b/README_CN.md @@ -19,6 +19,8 @@ git pull git submodule update --remote --recursive ``` +## 依赖 + 在任意位置下载并部署`libtorch` ```bash @@ -34,8 +36,6 @@ echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc sudo apt install ros-noetic-teleop-twist-keyboard ``` -## 依赖 - 安装yaml-cpp ```bash @@ -46,8 +46,6 @@ sudo make install sudo ldconfig ``` -头文件在/usr/local/include,库文件在/usr/local/lib - ## 编译 自定义代码中的以下两个函数,以适配不同的模型: @@ -66,7 +64,7 @@ catkin build ## 运行 -运行前请将训练好的pt模型文件拷贝到`rl_sar/src/rl_sar/models`中 +运行前请将训练好的pt模型文件拷贝到`rl_sar/src/rl_sar/models/YOUR_ROBOT_NAME`中,并配置`config.yaml`中的参数。 ### 仿真