🚨 Repository has been moved to a new location!
This repository has been transported to a new location. Please update your Git remotes to the new repository URL:
New Repository: unitree_legged
You can update your remote URL using the following Git command:
vcs import < deps.repos
cd /unitree_a1_legged/lcm
mkdir build
cd build
cmake ../
make
colcon build --packages-up-to --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=On -Wall -Wextra -Wpedantic
Before running the Unitree Legged Node, please follow these steps:
-
Position the Robot: Make sure the robot is lying on the ground, and the motors are turned on.
-
Sit Down the Robot: Press and hold the L1 button and A button to sit down the robot.
-
Activate Joint Control Mode: To control the robot's joints, press both the L1 and L2 buttons simultaneously, and then press the A button.
-
Ready to Launch: Once you have completed the above steps, you can proceed to launch the Unitree Legged Node.
cd ros2_ws
source /opt/ros/humble/setup.bash
ros2 run unitree_a1_legged udp
Press Enter to continue...
run on second terminal
ros2 run unitree_a1_legged example_position
If the dynamic library cannot be found, you can use the following command.
export LD_LIBRARY_PATH=<PATH::TO::unitree_legged_sdk>/lib:$LD_LIBRARY_PATH