OCS2_ROS2 is developed based on OCS2, it was refactored to be compatible with ROS2 and modern cmake. Below is the current todolist of the project:
- modern cmake
- basic 6 examples in official documents
- WSL2 support
- Fix Quadrotor example's unexpected behavior
- Fix Mobile Manipolator's interactive marker
- perceptive locomotion demo
- tinyxml2 problem in Ubuntu 24.04 ROS2 Jazzy
- raisim demo
- mpc_net demo
The IDE I used is CLion, you can follow the guide to set up the IDE.
The OCS2 library is written in C++17. It is tested under Ubuntu with library versions as provided in the package sources.
Tested system and ROS2 version:
- Ubuntu 24.04 ROS2 Jazzy
- Ubuntu 22.04 ROS2 Humble
- C++ compiler with C++17 support
- Eigen (v3.4)
- Boost C++ (v1.74)
- Create a new workspace or clone the project to your workspace
cd ~
mkdir -p ocs2_ws/src
- Clone the repository
cd ~/ocs2_ws/src
git clone https://github.com/legubiao/ocs2_ros2
git submodule update --init --recursive
- rosdep
cd ~/ocs2_ws
rosdep install --from-paths src --ignore-src -r -y