Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dbaldwin/feb0d279c67e0bcb191d2b366f867a84 to your computer and use it in GitHub Desktop.
Save dbaldwin/feb0d279c67e0bcb191d2b366f867a84 to your computer and use it in GitHub Desktop.
docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:foxy
# Go to http://localhost:6080 and open a terminal
# Menu > System Tools > MATE Terminal
sudo apt update
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
# The following is a fork of the repo with some changes to get the project to build
git clone https://github.com/dbaldwin/unitree_ros2_to_real
cd unitree_ros2_to_real
git clone -b v3.5.1 https://github.com/unitreerobotics/unitree_legged_sdk
mv ros2_unitree_legged_msgs/ ..
cd
git clone -b v1.4.0 https://github.com/lcm-proj/lcm
cd lcm
mkdir build
cd build
cmake ../
make
sudo make install
cd ~/ros2_ws
colcon build
source install/setup.bash
sudo ldconfig -v
ros2 run unitree_legged_real ros2_udp highlevel
@Fritzppc
Copy link

Fritzppc commented Jan 30, 2023

Hi Dennis,

Having a problem with this, and not sure what to do, or what I did wrong. Everything was going fine until colcon build. Your videos are usually very good, so I was disappointed that I can't figure this out.
ros 2 problem

Thanks, Fritz

@dbaldwin
Copy link
Author

Fritz, can you confirm you did line 1 properly?

https://gist.github.com/dbaldwin/feb0d279c67e0bcb191d2b366f867a84#file-unitree-go1-ros2-setup-with-ubuntu-focal-fossa-and-ros-foxy-L1

Are you running Foxy? colcon should be already installed and accessible globally.

@Fritzppc
Copy link

Well, I reloaded everything and it actually worked. But so painfull.... Thanks for doing this.

@an1ya1
Copy link

an1ya1 commented Jul 1, 2023

image

what does this error mean?

@dbaldwin
Copy link
Author

dbaldwin commented Jul 2, 2023

@A1N1Ya see the forum post here:

https://community.droneblocks.io/t/go1-development-with-ros2-c-and-python/679/4

It may be related to the JDK version you're running. Let me know if this doesn't work for you.

@an1ya1
Copy link

an1ya1 commented Jul 4, 2023

@A1N1Ya see the forum post here:

https://community.droneblocks.io/t/go1-development-with-ros2-c-and-python/679/4

It may be related to the JDK version you're running. Let me know if this doesn't work for you.

Thank you very much! I use the WSL with the Linux subsystem that is provided by you on the Youtube,Now I can compile all of the unitree_legged_sdk example code

@an1ya1
Copy link

an1ya1 commented Aug 22, 2023

On this basis, I want to realize the gazebo simulation of go1 , and the underlying control may be further debugged. Can you teach me how to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment