/a1_sim_py

This is a temporary repository, which contains all the files needed to simulate the Unitree Robotics' a1 quadrupedal robot.

Primary LanguagePythonMozilla Public License 2.0MPL-2.0

a1 robot simulation - Python version

This repository contains all the files and code needed to simulate the a1 quadrupedal robot using Gazebo and ROS. The software runs on ROS noetic and Ubuntu 20.04. If you want to use a different ROS version, you might have to do some changes to the source code.

This software is a copy of my main project, where some of the constants have been changed in order to make it work for this particular robot.

This is only a temporary repository, I might remove it soon.

Setup

cd src && catkin_init_workspace
cd .. && catkin_make
source devel/setup.bash
roscd a1_controller/scripts && chmod +x robot_controller_gazebo.py
cp -r RoboticsUtilities ~/.local/lib/python3.8/site-packages
roscd a1_joystick/scripts && chmod +x ramped_joystick.py

Run

source devel/setup.bash
roslaunch a1 run_robot_gazebo.launch

After all the nodes have started, you can start using your joystick to control the robot.

If the robot happens to be on its back when you start Gazebo, simply press CTRL + R. The simulator will reset the simulation and you're set to use the robot using your joystick.

Credits