Skip to content

Commit

Permalink
HL/misc improvements (#15)
Browse files Browse the repository at this point in the history
* Clarify speed of video in caption

* Compressed images to load faster

* Fixed a typo

* Clarify map saving for with and without namespacing because it is causing confusion

* Added clarification that the examples are for sim

* Specify world options

* Added oakd power saving to faq

* Clarified requirements for sim with a custom world

* Added additional faq troubleshooting steps / direction

* Added github metadata to match other repos
  • Loading branch information
hilary-luo authored Sep 8, 2023
1 parent 5051040 commit 27886ca
Show file tree
Hide file tree
Showing 22 changed files with 108 additions and 8 deletions.
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug Report
about: Provide a report for what the issue is
title: ''
labels: bug
assignees: hilary-luo

---

**Please provide the following information:**
- OS: (e.g. Ubuntu 20.04)
- ROS Distro: (e.g. Galactic)
- Built from source or installed:
- Package version: (if from repository, give version from `sudo dpkg -s ros-$ROS_VERSION-turtlebot4-PACKAGE_WITH_ISSUE`, if from source, give commit hash)

**Expected behaviour**
A clear and concise description of what you expected to happen.

**Actual behaviour**
A clear and concise description of what you encountered.

**To Reproduce**
Provide the steps to reproduce:
1. run something
2. launch something else
3. see the error


**Other notes**
Add anything else you thing is important.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Provide context for the feature you are requesting
title: ''
labels: enhancement
assignees: hilary-luo

---

**Describe the the feature you would like**
A clear and concise description of what you want to happen.

**Other notes**
Add anything else you thing is important.
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Description

Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.

Fixes # (issue).

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce. Also list any relevant details for your test configuration.

```bash
# Run this command
ros2 launch package launch.py
```

## Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
Binary file modified mechanical/media/TTB4_NED_battery.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mechanical/media/TTB4_NED_iso.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified mechanical/media/create_tray.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/TurtleBot4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/TurtleBot4s.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion setup/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Installing a new image on the Raspberry Pi will delete any changes you may have

Find the latest TurtleBot 4 Raspberry Pi images at <http://download.ros.org/downloads/turtlebot4/>.

- Download the latest image extract it.
- Download the latest image and extract it.
- Power off your robot and then remove the microSD card from the Raspberry Pi.
- Insert the microSD card into your PC. You may need an adapter.
- Install the imaging tool `dcfldd`
Expand Down
Binary file modified setup/media/controller.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified setup/media/create_ap_mode.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified setup/media/display_ip2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified setup/media/ethernet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions software/turtlebot4_simulator.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Turtlebot 4 Ignition launch configuration options:
- options: *true, false*
- default: *false*
- **world**: Which world to use for simulation
- options: *depot, maze, warehouse*
- default: *warehouse*
- **namespace**: Optional robot namespace
- options: Any valid ROS 2 name as a string
Expand Down
7 changes: 7 additions & 0 deletions troubleshooting/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ You can now go to your terminal and SSH into the robot by typing:
```bash
ssh [email protected]
```
If you are still unable to ssh into the robot and receive the error `No route to host` then this may be the result of the sd card being flashed improperly. This can happen if the image wasn't extracted before flashing or if the image was flashed to a partition on the sd card. Instructions on how to flash the SD card can be found [here](../setup/basic.md#install-latest-raspberry-pi-image).

If you are able to ssh into the robot then you can continue the setup instructions to [connect the raspberry pi to your network](../setup/basic.md#connect-the-raspberry-pi-to-your-network).

### 2. Waiting to connect to bluetoothd...

Expand All @@ -71,6 +74,10 @@ To fix this, call `sudo systemctl disable hciuart` and then reboot the Pi with `

Once the Pi has restarted, call `sudo systemctl restart hciuart`. Now you can run `sudo bluetoothctl` again and the bluetooth controller should be found.

### 4. OAKD topics not present

There is an automatic power-saving mode that shuts down the OAKD topics when the robot is docked. Undock your robot.

## Common issues with the user PC

### 1. ros2: command not found
Expand Down
Binary file modified troubleshooting/media/ethernet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified troubleshooting/media/rpi4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified troubleshooting/media/rpi4_wifi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion tutorials/generate_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,16 @@ Keep watch of RVIZ as you drive the robot around the area to make sure that the

Once you are happy with your map, you can save it with the following command:


```bash
ros2 run nav2_map_server map_saver_cli -f "map_name" --ros-args -p map_subscribe_transient_local:=true -r __ns:=/namespace
ros2 service call /slam_toolbox/save_map slam_toolbox/srv/SaveMap "name:
data: 'map_name'"
```

<!-- TODO: Change the instructions below when this works - aka when slam-toolbox 2.7.2 is released: If you are using namespacing, you will have to add the namespace to the service topic for example `/robot1/slam_toolbox/save_map`. -->

```note
If you are using namespacing, you will need to call the map saver tool directly: `ros2 run nav2_map_server map_saver_cli -f "map_name" --ros-args -p map_subscribe_transient_local:=true -r __ns:=/namespace`
```

This will save the map to your current directory.
Expand Down
18 changes: 14 additions & 4 deletions tutorials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ Replace `office.yaml` with your own map.
ros2 launch turtlebot4_ignition_bringup ignition.launch.py nav2:=true slam:=off localization:=true
```

This will launch the simulation in the default `depot` world and will use the existing `depot.yaml` file for the map. If you are using a different world you will need to create a map for it and pass that in as a launch argument.
This will launch the simulation in the default `depot` world and will use the existing `depot.yaml` file for the map. If you are using a custom world you will need to build the [turtlebot4_simulator package](../software/turtlebot4_simulator.md#source-installation) from source and place your world file [alongside the others](https://github.com/turtlebot/turtlebot4_simulator/tree/galactic/turtlebot4_ignition_bringup/worlds). You will then need to create a map for it and pass both the world name and the map file path in as launch arguments.

For example:
```bash
ros2 launch turtlebot4_ignition_bringup ignition.launch.py nav2:=true slam:=off localization:=true world:=classroom map:=classroom.yaml
ros2 launch turtlebot4_ignition_bringup ignition.launch.py nav2:=true slam:=off localization:=true world:=classroom map:=path/to/classroom.yaml
```

{% endtab %}
Expand Down Expand Up @@ -89,12 +89,22 @@ If using multiple robots through the namespacing method, an additional `namespac
ros2 launch turtlebot4_ignition_bringup turtlebot4_ignition.launch.py nav2:=true slam:=false localization:=true rviz:=true
```

This will launch the simulation in the default `warehouse` world and will use the existing [`warehouse.yaml`](https://github.com/turtlebot/turtlebot4/blob/humble/turtlebot4_navigation/maps/warehouse.yaml) file for the map. If you are using a different world you will need to create a map for it and pass that in as a launch argument.
This will launch the simulation in the default `warehouse` world and will use the existing [`warehouse.yaml`](https://github.com/turtlebot/turtlebot4/blob/humble/turtlebot4_navigation/maps/warehouse.yaml) file for the map.

To launch a different supported world, see the [simulation package](../software/turtlebot4_simulator.md#ignition-bringup) for a list of supported worlds. You must pass the name of the chosen world and the path to the map file.

For example:
```bash
ros2 launch turtlebot4_ignition_bringup turtlebot4_ignition.launch.py nav2:=true slam:=false localization:=true \
rviz:=true world:=depot map:=/opt/ros/humble/share/turtlebot4_navigation/maps/depot.yaml
```

If you are using a custom world you will need to build the [turtlebot4_simulator package](../software/turtlebot4_simulator.md#source-installation) from source and place your world file [alongside the others](https://github.com/turtlebot/turtlebot4_simulator/tree/humble/turtlebot4_ignition_bringup/worlds). You will then need to create a map for it and pass both the world name and the map file path in as launch arguments.

For example:
```bash
ros2 launch turtlebot4_ignition_bringup turtlebot4_ignition.launch.py nav2:=true slam:=false localization:=true \
rviz:=true world:=maze map:=src/turtlebot4/turtlebot4_navigation/maps/maze.yaml
rviz:=true world:=classroom map:=path/to/classroom.yaml
```

{% endtab %}
Expand Down
8 changes: 6 additions & 2 deletions tutorials/turtlebot4_navigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ TurtleBot 4 Navigator requires at least version 1.0.11 of Nav2 Simple Commander

## Install Tutorial Package

The following examples can be installed with `sudo apt install ros-$ROS_DISTRO-turtlebot4-tutorials` and are available at <https://github.com/turtlebot/turtlebot4_tutorials>. For each example, the robot starts on a dock at the origin of the map.
The following examples can be installed with `sudo apt install ros-$ROS_DISTRO-turtlebot4-tutorials` and are available at <https://github.com/turtlebot/turtlebot4_tutorials>. For each example, the robot starts on a dock at the origin of the map.

```note
All of these examples are designed to be run in the simulation environment. In order to run these tutorial codes with a physical robot you must install the tutorial package from source and modify target destinations to ones that make sense in your map. You then must individually launch SLAM, Nav2, Localization, and RViz as necessary and pass a map of your environment when launching localization. This is only recommended for intermediate users and up because there are no walkthrough instructions.
```

## Navigate to Pose

Expand Down Expand Up @@ -263,7 +267,7 @@ ros2 launch turtlebot4_viz view_robot.launch.py
<source src="media/nav_to_pose_rviz_humble.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<figcaption>Navigate to a pose</figcaption>
<figcaption>Navigate to a pose (3x speed)</figcaption>
</figure>

{% endtab %}
Expand Down

0 comments on commit 27886ca

Please sign in to comment.