Skip to content

Commit 5ee4b80

Browse files
authored
Update README.md
update navigation commands and gif animations
1 parent 9603217 commit 5ee4b80

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,25 @@ roslaunch diffbot_control diffbot.launch world_name:='$(find diffbot_gazebo)/wor
126126

127127
#### Navigation
128128

129-
To navigate the robot in the simulation run this command:
129+
To navigate the robot in the Gazebo simulator in `db_world.world` run the command:
130130

131131
```console
132-
roslaunch diffbot_navigation diffbot.launch world_name:='$(find diffbot_gazebo)/worlds/turtlebot3_world.world'
132+
roslaunch diffbot_navigation diffbot.launch
133133
```
134134

135-
Navigate the robot in a known map from the running [`map_server`](http://wiki.ros.org/map_server) using the [2D Nav Goal in RViz](http://wiki.ros.org/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack#A2D_Nav_Goal).
135+
This uses a previously mapped map of `db_world.world` (found in [`diffbot_navigation/maps`](./diffbot_navigation/maps/)) that is served by
136+
the [`map_server`](http://wiki.ros.org/map_server). With this you can use the [2D Nav Goal in RViz](http://wiki.ros.org/navigation/Tutorials/Using%20rviz%20with%20the%20Navigation%20Stack#A2D_Nav_Goal) directly to let the robot drive autonomously in the `db_world.world`.
136137

137-
[![DiffBot navigation](https://raw.githubusercontent.com/ros-mobile-robots/ros-mobile-robots.github.io/main/docs/resources/navigation/diffbot-navigation-gazebo-turtlebot3-world-small.gif)](https://youtu.be/2SwFTrJ1Ofg)
138+
[![DiffBot navigation](https://media.githubusercontent.com/media/ros-mobile-robots/ros-mobile-robots.github.io/main/docs/resources/navigation/db_world-nav.gif)](https://youtu.be/2SwFTrJ1Ofg)
139+
140+
To run the `turtlebot3_world.world` (or your own stored world and map) use the same `diffbot_navigation/launch/diffbot.launch` file but change
141+
the `world_name` and `map_file` arguments to your desired world and map yaml files:
142+
143+
```console
144+
roslaunch diffbot_navigation diffbot.launch world_name:='$(find diffbot_gazebo)/worlds/turtlebot3_world.world' map_file:='$(find diffbot_navigation)/maps/map.yaml'
145+
```
146+
147+
[![DiffBot navigation](https://github.com/ros-mobile-robots/ros-mobile-robots.github.io/raw/main/docs/resources/navigation/diffbot-navigation-gazebo-turtlebot3-world-small.gif)](https://youtu.be/2SwFTrJ1Ofg)
138148

139149
#### SLAM
140150

@@ -154,6 +164,12 @@ Then explore the world with the [`teleop_twist_keyboard`](http://wiki.ros.org/te
154164

155165
[![DiffBot slam](https://raw.githubusercontent.com/ros-mobile-robots/ros-mobile-robots.github.io/main/docs/resources/slam/diffbot-slam.gif)](https://youtu.be/gLlo5V-BZu0)
156166

167+
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:
168+
169+
```
170+
rosrun map_server map_saver -f ~/map
171+
```
172+
157173

158174
### DiffBot Control in Gazebo
159175

0 commit comments

Comments
 (0)