Repository files navigation
Follow go2_control_interface install procedure.
Then clone this repo in the cyclonedds_ws/src/ directory (next to the go2_control_interface repo for instance)
cd src # cd unitree_ros2/cyclonedds_ws/src
git clone --recurse-submodules git@github.com:inria-paris-robotics-lab/go2_onnx_controller.git
Recompile
cd ../
colcon build --packages-skip unitree_sdk2_python
source install/setup.bash
A joystick needs to be plugged in the computer
See Go2_control_interface: How to control the robot . Most likely you will run:
# mamba activate go2_control_interface
# source install/setup.bash
# source <(ros2 run go2_control_interface autoset_environment_dds.py SIMULATION)
ros2 launch go2_simulation launch_sim.launch.py
to start the simulation.
In another terminal:
# mamba activate go2_control_interface
# source install/setup.bash
# source <(ros2 run go2_control_interface autoset_environment_dds.py SIMULATION)
ros2 launch onnx_controller controller_and_joystick.launch.py
About
Ros nodes for doing NN inference for running control policy on the go2 robot
Resources
Stars
Watchers
Forks
Languages
C++
81.0%
CMake
12.5%
Python
6.5%
You can’t perform that action at this time.