- Plug in a charged battery
- Turn it on, and wait a minute for it to stand up on its own. This is high state mode.
- To enter low state, grab the controller and select L2+A, L2+A, L2+B, L2+L1+START.
- The robot should be laying on the floor now, and emitting a local wifi connection you can link to on your Linux machine.
- Download the Unitree Go1 repos, including unitree_ros, unitree_ros_to_real, and unitree_legged_sdk to your catkin_ws/src directory.
- Add the files from this repo's
srcfolder to the unitree_legged_sdk/example folder. - Add the files from this repo's
includefolder to the unitree_legged_sdk/include/unitree_legged_sdk folder. - Update the CMakeList located in ../catkin_ws/src/unitree_legged_sdk to add on these new executables and source code.
- Add the executable paths along with the gaitV3.cpp library to the CMakeLists.txt file so that these compile. 5a. To add a executable, for example:
add_executable(example_position_gaits example/robot_run_walk.cpp example/gaitV3.cpp)
target_link_libraries(robot_run_walk ${EXTRA_LIBS})
cd ~/catkin_wscatkin_make-> if there are syntax errors or compiler errors, they likely stem from the CMakeLists.txt file.cd ..catkin_ws/src/unitree_legged_sdk/example- Compile the code:
g++ robot_run_walk.cpp \
gaitV3.cpp \
-I ../include \
-L ../lib/cpp/amd64 \
-lunitree_legged_sdk \
-lpthread \
-o robot_run_walk
- Pair to the Unitree Go1, now in low state mode, through wifi.
- Execute the file:
./robot_run_walk