-
Notifications
You must be signed in to change notification settings - Fork 1
Update SLAM and Go2 documentation #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XueBin-weston marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| --- | ||
| sidebar_position: 1 | ||
| --- | ||
|
|
||
| # SLAM Setup and Configuration | ||
|
|
||
| ## 1. Setup | ||
|
|
||
| ### 1.1 Preparation on user's computer | ||
|
|
||
| - Laptop (recommended) with Ubuntu 20.04 or 22.04 | ||
| - ROS2 Foxy or [Humble](https://docs.ros.org/en/humble/Installation.html)(recommended) | ||
| - ROS_DOMAIN_ID=0 | ||
| - [Unitree_SDK_GO2](https://support.unitree.com/home/en/developer/Quick_start) (For programming capabilities)(for **GO2**) | ||
| - [Unitree_SDK_GO2-W](https://support.unitree.com/home/en/Go2-W_developer/Quick_Start) (For programming capabilities)(for **GO2-W**) | ||
| - [Unitree_ROS2](https://support.unitree.com/home/en/Go2-W_developer/ROS2_service) (For ros2 topics and communication on DDS) | ||
| - Modify the network interface name to match the ethernet connection | ||
| - Change the ros distro | ||
|  | ||
| - [Cyclonedds](https://docs.ros.org/en/humble/Installation/RMW-Implementations/DDS-Implementations/Working-with-Eclipse-CycloneDDS.html)((Required for communication with robot) | ||
| - Ethernet Cable | ||
|
|
||
| ### 1.2 Additional Preparation | ||
| - [Unitree Go App Binding](https://support.unitree.com/home/en/developer/App_binding) | ||
| - [Payload Information/ Installation Guide](https://support.unitree.com/home/en/developer/Payload) – Expansion Dock, Depth Camera, XT16 Lidar | ||
| - [Expansion Dock Configuration ](https://support.unitree.com/home/en/developer/module_update) – Username & password, how to connect, expansion dock module update | ||
| - rviz configuration inside the “Expansion Dock Module Update Package” in **unitree/module/unitree_slam/rviz2/** | ||
| - Username: unitree | ||
| - Password: 123 (same for sudo password) | ||
| - **ssh unitree@192.168.123.18** | ||
| - If you encounter building/ make/ code running (e.g. **./unitree_slam**) error, use **sudo** | ||
|
|
||
| ## 2. Configuration | ||
|
|
||
| ### 2.1 Wire Connection | ||
|
|
||
| > This information is also present in the [Expansion Dock Configuration](https://support.unitree.com/home/en/developer/module_update). | ||
|
|
||
|  | ||
|
|
||
| Set the wired connection as shown above after connecting to the robot dog (robot has to be on). | ||
| Once you have setup the connection successfully, you should be able to **ping 192.168.123.18** in a terminal; after **source unitree_ros2/setup.sh** and **ros2 topic list** you should be able to see the topics being displayed. | ||
|
|
||
| ### 2.2 SLAM Usage | ||
|
|
||
| > This is done on the expansion dock (*through remote-ssh*). | ||
|
|
||
| - For YSN (if required), refer to the QR code behind the Lidar | ||
|
|
||
| Default programs are found in /unitree/module/unitree_slam/bin. | ||
|
|
||
| To make modifications to the keyDemo file (such as changing the speed and obstacle avoidance/detection), edit the file in the **/unitree/module/unitree_slam/example/src/keyDemo.cpp**. | ||
|
|
||
| After editing, change directory to **/unitree/module/unitree_slam/example/** and create a build file is it has not been created. | ||
| - **cd /unitree/module/unitree_slam/example** | ||
| - **mkdir -p build && cd build** | ||
| - **sudo cmake ..** # if unable to **sudo cmake ..**, use **sudo su** and run **cmake .., exit** after executing this “cmake ..” command | ||
| - **sudo make -j** | ||
|
|
||
| You will need to open at least 3 terminals (+1 if you want to view rviz). Run the programs in this order (order matters): | ||
| 1. **cd /unitree/module/unitree_slam/bin** | ||
| 2. **sudo ./unitree_slam** | ||
| 3. **sudo ./xt16_driver** | ||
| 4. **sudo /keyDemo eth0** # if running default keyDemo | ||
| 1. For edited keyDemo: | ||
| 1. **cd /unitree/module/unitree_slam/example/build** | ||
| 2. **sudo ./keyDemo eth0** | ||
| 2. You will see this | ||
|  | ||
|
|
||
| For rviz, on <u>your own computer</u>, open a terminal and source **unitree_ros2/setup.sh** and **cd unitree/module/unitree_slam/rviz2/**. Run **rviz2 -d mapping.rviz** or **relocation.rviz** | ||
|
|
||
| Robot must start at the exact spot that mapping began, else it will have localisation issues, so choose the starting position wisely. Before mapping, ensure the robot <u>is standing</u>. | ||
|
|
||
| When mapping, control the Go2/Go2-W via RC slowly around the area that you would like to map. Repeat the route twice to ensure that the map is detailed and written properly. | ||
|
|
||
| - Press **W** to stop mapping | ||
| - Press **A** to start Relocation and Positioning Initialization | ||
| - Starting position has to line up with map, use rviz to guide to starting position | ||
| - Press **S** to add node/edge (checkpoints) | ||
| - The first node must always be the starting point | ||
| - Press **Any key** to stop SLAM and control the Go2/Go2-W to the starting point | ||
| - Press **A** to localize and press **D** to start the loop | ||
| - Cautions: | ||
| - Go2/Go2-W must be at the Initial Position before starting navigation | ||
| - if you would like to pause the navigation, press **Z** before doing **CTRL+C** to all terminals | ||
| - Remote will take precedence and stop SLAM navigation immediately when used | ||
| - After navigating through all the nodes/edges, the Go2/Go2-W will navigate back to the starting point by itself | ||
| - Eg. 1-2-3-2-1 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "label": "Unitree SLAM Guide", | ||
| "position": 3, | ||
| "link": { | ||
| "type": "generated-index", | ||
| "description": "Unitree SLAM Guide." | ||
| } | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please delete the duplicate "export default..."