Skip to content
/ rl_deploy Public

Use ros_control to realize sim2sim and sim2real.

Notifications You must be signed in to change notification settings

L-SY/rl_deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rl_deploy

Use ros_control to realize sim2sim and sim2real.

Frame

  • Among them, rl_sdk mainly refers to https://github.com/fan-ziqi/rl_sar and uses libtorch 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

Install

  • 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

Run

mon launch diablo load_gazebo.launch
mon launch diablo load_controllers.launch
mon launch diablo load_rl_interface.launch

About

Use ros_control to realize sim2sim and sim2real.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published