Skip to content

Commit 781189b

Browse files
authored
Update README.md
update instructions for real robot
1 parent 5ee4b80 commit 781189b

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

README.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Then explore the world with the [`teleop_twist_keyboard`](http://wiki.ros.org/te
166166

167167
When you finished exploring the new world, use the [`map_saver`](http://wiki.ros.org/map_server#map_saver) node from the [`map_server`](http://wiki.ros.org/map_server) package to store the mapped enviornment:
168168

169-
```
169+
```console
170170
rosrun map_server map_saver -f ~/map
171171
```
172172

@@ -195,45 +195,49 @@ The following video shows how to map a new environment and navigate in it
195195

196196
[<img src="https://img.youtube.com/vi/IcYkQyzUqik/hqdefault.jpg" width="250">](https://youtu.be/IcYkQyzUqik)
197197

198-
First, brinup the robot hardware including its laser with the following launch file in the `diffbot_bringup` package.
199-
Make sure to run this on the real robot (e.g. connect to it via ssh):
198+
Start by setting up the ROS Network, by making the development PC the rosmaster (set the `ROS_MASTER_URI` environment variable accordingly, see [ROS Network Setup](https://ros-mobile-robots.com/ros-network-setup/) for more details),
199+
Then follow the steps listed below to run the real Diffbot or Remo robot hardware:
200200

201-
```
202-
roslaunch diffbot_bringup diffbot_bringup_with_laser.launch
203-
```
201+
1. First, brinup the robot hardware including its laser with the following launch file from the [`diffbot_bringup`](./diffbot_bringup) package.
202+
Make sure to run this on the real robot (e.g. connect to it via `ssh`):
204203

205-
then, in a new terminal on your remote/work pc (not the single board computer) run the slam gmapping with the same command as in the simulation:
204+
```console
205+
roslaunch diffbot_bringup diffbot_bringup_with_laser.launch
206+
```
206207

207-
```
208-
roslaunch diffbot_slam diffbot_slam.launch slam_method:=gmapping
209-
```
208+
2. Then, in a new terminal on your remote/work development machine (not the single board computer) run the slam gmapping with the same command as in the simulation:
210209

211-
As you can see in the video, this should open up RViz and the [`rqt_robot_steering`](http://wiki.ros.org/rqt_robot_steering) plugin.
210+
```console
211+
roslaunch diffbot_slam diffbot_slam.launch slam_method:=gmapping
212+
```
212213

213-
Next, steer the robot around manually and save the map with the following command when you are done:
214+
As you can see in the video, this should open up RViz and the [`rqt_robot_steering`](http://wiki.ros.org/rqt_robot_steering) plugin.
214215

215-
```
216-
rosrun map_server map_saver -f office
217-
```
216+
3. Next, steer the robot around manually either using the `keyboard_teleop` node or using the `rqt_robot_steering` node
217+
and save the map with the following command when you are done exploring:
218218

219-
Finally it is possible to use the created map for navigation, after running the following launch files:
219+
```console
220+
rosrun map_server map_saver -f office
221+
```
220222

221-
On the single board computer (e.g. Raspberry Pi) make sure that the following is launched:
223+
After the mapping process it is possible to use the created map for navigation, after running the following launch files:
222224

223-
```
224-
roslaunch diffbot_bringup diffbot_bringup_with_laser.launch
225-
```
225+
1. On the single board computer (e.g. Raspberry Pi) make sure that the following is launched:
226226

227-
Then on the work/remote pc run the `diffbot_hw.lauch` from the `diffbot_navigation` package:
227+
```console
228+
roslaunch diffbot_bringup diffbot_bringup_with_laser.launch
229+
```
228230

229-
```
230-
roslaunch diffbot_navigation diffbot_hw.lauch
231-
```
231+
2. Then on the work/remote development machine run the `diffbot_hw.lauch` from the `diffbot_navigation` package:
232+
233+
```console
234+
roslaunch diffbot_navigation diffbot_hw.lauch
235+
```
232236

233-
Among other essential navigation and map server nodes, this will also launch an instance of RViz on your work pc where you can use its tools to:
237+
Among other essential navigation and map server nodes, this will also launch an instance of RViz on your work pc where you can use its tools to:
234238

235-
1. Localize the robot with the "2D Pose Estimate" tool (green arrow) in RViz
236-
2. Use the "2D Nav Goal" tool in RViz (red arrow) to send goals to the robot
239+
1. Localize the robot with the "2D Pose Estimate" tool (green arrow) in RViz
240+
2. Use the "2D Nav Goal" tool in RViz (red arrow) to send goals to the robot
237241

238242
## :construction: Future Work
239243

0 commit comments

Comments
 (0)