docs: simplified readme dependency installation #24

This commit is contained in:
fan-ziqi 2024-10-08 18:01:52 +08:00
parent c64e0b2833
commit 561864ad08
2 changed files with 36 additions and 14 deletions

View File

@ -2,9 +2,11 @@
[中文文档](README_CN.md) [中文文档](README_CN.md)
Simulation verification and physical deployment of robot reinforcement learning algorithms, suitable for quadruped robots, wheeled robots, and humanoid robots. "sar" stands for "simulation and real" This repository provides a framework for simulation verification and physical deployment of robot reinforcement learning algorithms, suitable for quadruped robots, wheeled robots, and humanoid robots. "sar" stands for "simulation and real"
This framework supports legged_gym based on IaacGym and IsaacLab based on IsaacSim. Use `framework` to distinguish. feature:
- Support legged_gym based on IaacGym and IsaacLab based on IsaacSim. Use `framework` to distinguish.
- The code supports both cpp and python, you can find python version in `src/rl_sar/scripts`
[Click to discuss on Discord](https://discord.gg/vmVjkhVugU) [Click to discuss on Discord](https://discord.gg/vmVjkhVugU)
@ -18,9 +20,7 @@ git clone https://github.com/fan-ziqi/rl_sar.git
## Dependency ## Dependency
This project relies on ROS Noetic (Ubuntu 20.04) This project uses `ros-noetic` (Ubuntu 20.04) and requires the installation of the following ROS dependency packages:
After installing ROS, install the dependency library
```bash ```bash
sudo apt install ros-noetic-teleop-twist-keyboard ros-noetic-controller-interface ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller ros-noetic-effort-controllers ros-noetic-joint-trajectory-controller sudo apt install ros-noetic-teleop-twist-keyboard ros-noetic-controller-interface ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller ros-noetic-effort-controllers ros-noetic-joint-trajectory-controller
@ -35,6 +35,16 @@ unzip libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip -d ./
echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc
``` ```
Install `yaml-cpp` and `lcm`. If you are using Ubuntu, you can directly use the package manager for installation:
```bash
sudo apt install liblcm-dev libyaml-cpp-dev
```
<details>
<summary>You can also use source code installation, click to expand</summary>
Install yaml-cpp Install yaml-cpp
```bash ```bash
@ -54,6 +64,7 @@ cmake .. && make
sudo make install sudo make install
sudo ldconfig sudo ldconfig
``` ```
</details>
## Compilation ## Compilation

View File

@ -2,9 +2,11 @@
[English document](README.md) [English document](README.md)
机器人强化学习算法的仿真验证与实物部署,适配四足机器人、轮足机器人、人形机器人。"sar"代表"simulation and real" 本仓库提供了机器人强化学习算法的仿真验证与实物部署框架,适配四足机器人、轮足机器人、人形机器人。"sar"代表"simulation and real"
本框架支持基于IaacGym的legged_gym也支持基于IsaacSim的IsaacLab用`framework`加以区分。 特性:
- 支持基于IaacGym的legged_gym也支持基于IsaacSim的IsaacLab用`framework`加以区分。
- 代码有python和cpp两个版本python版本可以在`src/rl_sar/scripts`中找到
[点击在Discord上讨论](https://discord.gg/MC9KguQHtt) [点击在Discord上讨论](https://discord.gg/MC9KguQHtt)
@ -18,9 +20,7 @@ git clone https://github.com/fan-ziqi/rl_sar.git
## 依赖 ## 依赖
本项目依赖ROS-Noetic(Ubuntu20.04) 本项目使用`ros-noetic`(Ubuntu20.04)且需要安装以下的ros依赖包
安装好ros之后安装依赖库
```bash ```bash
sudo apt install ros-noetic-teleop-twist-keyboard ros-noetic-controller-interface ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller ros-noetic-effort-controllers ros-noetic-joint-trajectory-controller sudo apt install ros-noetic-teleop-twist-keyboard ros-noetic-controller-interface ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller ros-noetic-effort-controllers ros-noetic-joint-trajectory-controller
@ -35,6 +35,16 @@ unzip libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip -d ./
echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc
``` ```
安装`yaml-cpp`和`lcm`若您使用Ubuntu可以直接使用包管理器进行安装
```bash
sudo apt install liblcm-dev libyaml-cpp-dev
```
<details>
<summary>也可以使用源码安装,点击展开</summary>
安装yaml-cpp 安装yaml-cpp
```bash ```bash
@ -54,6 +64,7 @@ cmake .. && make
sudo make install sudo make install
sudo ldconfig sudo ldconfig
``` ```
</details>
## 编译 ## 编译