Use ros_control to realize sim2sim and sim2real.
-
Among them,
rl_sdk
mainly refers to https://github.com/fan-ziqi/rl_sar and useslibtorch
to complete the loading of .pt files. -
rl_msgs
:For interaction between rl_sdk and rl_controller -
wheeled_bipedal_rl_controller
:use ros_control to interact with gazebo
- ros_control
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
- libtorch
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.1%2Bcpu.zip
unzip libtorch-cxx11-abi-shared-with-deps-2.0.1+cpu.zip -d ./
echo 'export Torch_DIR=/path/to/your/torchlib' >> ~/.bashrc
- yaml-cpp
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
mon launch diablo load_gazebo.launch
mon launch diablo load_controllers.launch
mon launch diablo load_rl_interface.launch