Skip to content

Commit 789ab6c

Browse files
Merge pull request #33 from abizovnuralem/multi_robot_support
Multi robot support
2 parents f1018b8 + 6c447ce commit 789ab6c

39 files changed

+2442
-810
lines changed

README.md

+48-70
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
![Ros2 SDK](https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/49edebbe-11b6-49c6-b82d-bc46257674bd)
2+
13
# Welcome to the Unitree Go2 ROS2 SDK Project!
24

3-
![ROS2 CI](https://github.com/abizovnuralem/go2_ros2_sdk/actions/workflows/ros_build.yaml/badge.svg)
5+
[![IsaacSim](https://img.shields.io/badge/IsaacSim-4.0-silver.svg)](https://docs.omniverse.nvidia.com/isaacsim/latest/overview.html)
6+
[![Python](https://img.shields.io/badge/python-3.10-blue.svg)](https://docs.python.org/3/whatsnew/3.10.html)
7+
[![Linux platform](https://img.shields.io/badge/platform-linux--64-orange.svg)](https://releases.ubuntu.com/22.04/)
8+
[![Windows platform](https://img.shields.io/badge/platform-windows--64-orange.svg)](https://www.microsoft.com/en-us/)
9+
![ROS2 Build](https://github.com/abizovnuralem/go2_ros2_sdk/actions/workflows/ros_build.yaml/badge.svg)
10+
[![License](https://img.shields.io/badge/license-BSD--2-yellow.svg)](https://opensource.org/licenses/BSD-2-Clause)
411

5-
We are delighted to present you with our integration of the Unitree Go2 ROS2 SDK, leveraging the innovative go2-WebRTC interface, originally designed by the talented @tfoldi. You can explore and utilize his groundbreaking work at go2-webrtc on GitHub.
12+
We are happy to present you our integration of the Unitree Go2 with ROS2 over Wi-Fi, that was designed by the talented [@tfoldi](https://github.com/tfoldi). You can explore his groundbreaking work at [go2-webrtc](https://github.com/tfoldi/go2-webrtc).
613

7-
This resourceful project is here to empower your Unitree GO2 AIR/PRO/EDU robots with ROS2 SDK capabilities. We're thrilled to offer an enhanced level of control and interaction, enabling you to take your robotics projects to new heights.
14+
This repo will empower your Unitree GO2 AIR/PRO/EDU robots with ROS2 capabilities, using both WebRTC (Wi-Fi) and CycloneDDS (Ethernet) protocols.
815

916
## Project RoadMap:
17+
1018
1. URDF :white_check_mark:
1119
2. Joint states sync in real time :white_check_mark:
1220
3. IMU sync in real time :white_check_mark:
@@ -17,14 +25,17 @@ This resourceful project is here to empower your Unitree GO2 AIR/PRO/EDU robots
1725
9. Camera stream :white_check_mark:
1826
10. Foxglove bridge :white_check_mark:
1927
11. Laser Scan :white_check_mark:
20-
12. SLAM (slam_toolbox) :white_check_mark:
21-
13. Navigation (nav2) :white_check_mark:
22-
14. Object detection
23-
15. AutoPilot
28+
12. Multi robot support :white_check_mark:
29+
13. WebRTC and CycloneDDS support :white_check_mark:
30+
14. Creating a PointCloud map and store it
31+
15. SLAM (slam_toolbox) (in the current version is not working, need to fix params)
32+
16. Navigation (nav2) (in the current version is not working, need to fix params)
33+
17. Object detection
34+
18. AutoPilot
2435

2536
## Your feedback and support mean the world to us.
2637

27-
If you're as enthusiastic about this project as we are, please consider giving it a :star: star on our GitHub repository.
38+
If you're as enthusiastic about this project as we are, please consider giving it a :star: star!!!
2839

2940
Your encouragement fuels our passion and helps us develop our RoadMap further. We welcome any help or suggestions you can offer!
3041

@@ -36,35 +47,21 @@ Together, let's push the boundaries of what's possible with the Unitree Go2 and
3647

3748
:robot: Compatible with AIR, PRO, and EDU variants
3849

39-
:footprints: Access to foot force sensors feedback (available on GO2 PRO/EDU)
50+
:footprints: Access to foot force sensors feedback (available on some GO2 PRO models or EDU)
4051

4152

42-
Real time Go2 Air/PRO/EDU joints sync:
53+
## Real time Go2 Air/PRO/EDU joints sync:
4354

4455
<p align="center">
4556
<img width="1280" height="640" src="https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/bf3f5a83-f02b-4c78-a7a1-b379ce057492" alt='Go2 joints sync'>
4657
</p>
4758

48-
Go2 Air/PRO/EDU lidar point cloud:
49-
50-
<p align="center">
51-
<img width="1280" height="640" src="https://github.com/abizovnuralem/go2_ros2_sdk/blob/master/go2_lidar_3.gif?raw=true" alt='Go2 point cloud'>
52-
</p>
59+
## Go2 Air/PRO/EDU lidar point cloud:
5360

5461
<p align="center">
5562
<img width="1280" height="640" src="https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/9c1c3826-f875-4da1-a650-747044e748e1" alt='Go2 point cloud'>
5663
</p>
5764

58-
## Topic
59-
Real time Go2 Air/PRO ROS2 topics
60-
61-
<p align="left">
62-
<img width="731" height="383" src="https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/4d36c2c0-bd21-4af7-925e-b8fd6db68e61" alt='Go2 topic list'>
63-
</p>
64-
65-
<p align="left">
66-
<img width="446" height="1045" src="https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/671af655-877b-4f36-89d3-91730674526d" alt='Go2 topic list'>
67-
</p>
6865

6966
## System requirements
7067
Tested systems and ROS2 distro
@@ -74,41 +71,18 @@ Tested systems and ROS2 distro
7471
|Ubuntu 22.04|humble|![ROS2 CI](https://github.com/abizovnuralem/go2_ros2_sdk/actions/workflows/ros_build.yaml/badge.svg)
7572
|Ubuntu 22.04|rolling|![ROS2 CI](https://github.com/abizovnuralem/go2_ros2_sdk/actions/workflows/ros_build.yaml/badge.svg)
7673

77-
A single workspace can contain as many packages as you want, each in their own folder. You can also have packages of different build types in one workspace (CMake, Python, etc.). You cannot have nested packages.
7874

79-
Best practice is to have a src folder within your workspace, and to create your packages in there. This keeps the top level of the workspace “clean”.
80-
81-
Your workspace should look like:
82-
```
83-
workspace_folder/
84-
src/
85-
py_package_1/
86-
package.xml
87-
resource/py_package_1
88-
setup.cfg
89-
setup.py
90-
py_package_1/
91-
92-
py_package_2/
93-
package.xml
94-
resource/py_package_2
95-
setup.cfg
96-
setup.py
97-
py_package_2/
98-
```
99-
100-
clone this repo to src folder of your own ros2_ws repo
75+
## Installation
10176

10277
```
78+
mkdir -p ros2_ws/src
79+
cd ros2_ws/src
10380
git clone --recurse-submodules https://github.com/abizovnuralem/go2_ros2_sdk.git
104-
105-
cd go2_ros2_sdk
81+
cp -a go2_ros2_sdk/. .
82+
rm -r -f go2_ros2_sdk
10683
sudo apt install python3-pip clang
10784
pip install -r requirements.txt
10885
cd ..
109-
mkdir -p ros2_ws/src
110-
copy all files inside go2_ros2_sdk folder to ros2_ws/src folder
111-
11286
```
11387
install rust language support in your system https://www.rust-lang.org/tools/install
11488

@@ -126,21 +100,37 @@ https://docs.ros.org/en/humble/Installation.html
126100

127101
```
128102
source /opt/ros/$ROS_DISTRO/setup.bash
129-
cd ros2_ws
130103
rosdep install --from-paths src --ignore-src -r -y
131104
colcon build
132105
```
133106

134107
## Usage
135-
don't forget to setup your GO2-robot in Wifi-mode and get IP then
108+
don't forget to setup your GO2-robot in Wifi-mode and get IP (You can use mobile app to get it, go to Device -> Data -> Automatic Machine Inspection, (look for STA Network: wlan0))
136109

137110
```
138-
export ROBOT_IP="Your robot ip"
139-
cd ros2_ws
140111
source install/setup.bash
112+
export ROBOT_IP="robot_ip"
113+
export CONN_TYPE="webrtc"
141114
ros2 launch go2_robot_sdk robot.launch.py
142115
```
143116

117+
118+
## Multi robot support
119+
120+
If you want to connect several robots for collaboration:
121+
```
122+
export ROBOT_IP="robot_ip_1, robot_ip_2, robot_ip_N"
123+
```
124+
125+
## Switching between webrtc connection (Wi-Fi) to CycloneDDS (Ethernet)
126+
```
127+
export CONN_TYPE="webrtc"
128+
```
129+
or
130+
```
131+
export CONN_TYPE="cyclonedds"
132+
```
133+
144134
## Foxglove
145135

146136
<p align="center">
@@ -154,13 +144,7 @@ sudo snap install foxglove-studio
154144

155145
1. Open Foxglove Studio and press "Open Connection".
156146
2. In the "Open Connection" settings, choose "Foxglove WebSocket" and use the default configuration ws://localhost:8765, then press "Open".
157-
3. (Optional) You can also import a default layout view from the foxglove.json file located inside this repository.
158147

159-
## SLAM
160-
161-
<p align="center">
162-
<img width="1280" height="640" src="https://github.com/abizovnuralem/go2_ros2_sdk/assets/33475993/59f33599-a54c-4cff-8ac2-6859a05ccb8a" alt='Slam'>
163-
</p>
164148

165149
## WSL 2
166150

@@ -198,21 +182,15 @@ If you are running ROS2 under WSL2 - you may need to configure Joystick\Gamepad
198182
199183
Run `ros2 run joy joy_enumerate_devices`
200184
201-
You should see something like this
202-
203185
```
204186
ID : GUID : GamePad : Mapped : Joystick Device Name
205187
-------------------------------------------------------------------------------
206188
0 : 030000005e040000120b000007050000 : true : false : Xbox Series X Controller
207189
```
208190
209-
## Development
210-
211-
To contribute or modify the project, refer to these resources for implementing additional features or improving the existing codebase. PRs are welcome!
212-
213191
## Thanks
214192
215-
Special thanks to @legion1581, @tfoldi, @budavariam, @alex.lin and TheRoboVerse community!
193+
Special thanks to @tfoldi, @legion1581, @budavariam, @alex.lin and TheRoboVerse community!
216194
217195
## License
218196

foxglove.json

-159
This file was deleted.

go2_lidar_3.gif

-11.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)