Skip to content

Commit

Permalink
Merge pull request #56 from jliphard/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
abizovnuralem authored Jul 22, 2024
2 parents a51aab0 + c982486 commit 7d23f0f
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Tested systems and ROS2 distro

## Installation

```
```shell
mkdir -p ros2_ws/src
cd ros2_ws/src
git clone --recurse-submodules https://github.com/abizovnuralem/go2_ros2_sdk.git
Expand All @@ -84,30 +84,27 @@ sudo apt install python3-pip clang
pip install -r requirements.txt
cd ..
```
install rust language support in your system https://www.rust-lang.org/tools/install

cargo should work in terminal
```
cargo --version
```

Build it

You need to install ros2 and rosdep package first.

https://docs.ros.org/en/humble/Installation.html
NOTE: check for any error messages, and do not disregard them. If `pip install` does not complete cleanly, various features will not work. For example, `open3d` does not yet support `python3.12` and therefroe you will need to set up a 3.11 `venv` first etc.

Install `rust` language support in your system: [instructions](https://www.rust-lang.org/tools/install)

`cargo` should work in terminal
```shell
cargo --version
```

Build `go2_ros_sdk`. You need to have `ros2` and `rosdep` installed. If you do not: [instructions](https://docs.ros.org/en/humble/Installation.html). Then:
```shell
source /opt/ros/$ROS_DISTRO/setup.bash
rosdep install --from-paths src --ignore-src -r -y
colcon build
```

## Usage
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))
Don't forget to set up your Go2 robot in Wifi-mode and obtain the IP. You can use the mobile app to get it, go to Device -> Data -> Automatic Machine Inspection and look for STA Network: wlan0.

```
```shell
source install/setup.bash
export ROBOT_IP="robot_ip"
export CONN_TYPE="webrtc"
Expand All @@ -116,21 +113,18 @@ ros2 launch go2_robot_sdk robot.launch.py


## 3D map generation
To save the map, you need to:

In order to save the map, you need to:

```
```shell
export MAP_SAVE=True
export MAP_NAME="3d_map"
```

Every 10 seconds, the map will be save to root folder of the repo.


## Multi robot support

If you want to connect several robots for collaboration:

```
export ROBOT_IP="robot_ip_1, robot_ip_2, robot_ip_N"
```
Expand Down Expand Up @@ -158,7 +152,6 @@ sudo snap install foxglove-studio
1. Open Foxglove Studio and press "Open Connection".
2. In the "Open Connection" settings, choose "Foxglove WebSocket" and use the default configuration ws://localhost:8765, then press "Open".


## WSL 2

If you are running ROS2 under WSL2 - you may need to configure Joystick\Gamepad to navigate the robot.
Expand Down

0 comments on commit 7d23f0f

Please sign in to comment.