Skip to content

Commit d69eec4

Browse files
authored
Update README.md
1 parent 55f8c9f commit d69eec4

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Install libg2o:
140140
sudo apt-get install -y ros-humble-libg2o
141141
```
142142
143-
### 3. Get ugv_nav4d_ros2 and a test environment for robot husky in gazebo
143+
### 4. Get ugv_nav4d_ros2 and a test environment for robot husky in gazebo
144144
145145
```
146146
mkdir -p ~/your_ros2_workspace/src
@@ -155,12 +155,6 @@ cd ros2_humble_gazebo_sim
155155
bash install_dependencies.bash
156156
```
157157
158-
### 4. Husky Configuration
159-
To ensure that Gazebo can find the robot model, you need to export the following environment variable. Replace /path/to/ with the actual **complete** path where you clone the repository `ros2_humble_gazebo_sim`. Add this command to your terminal:
160-
```
161-
export IGN_GAZEBO_RESOURCE_PATH=/path/to/your_ros2_workspace/ros2_humble_gazebo_sim/resource:$IGN_GAZEBO_RESOURCE_PATH
162-
```
163-
164158
### 5. Building the ROS 2 Workspace
165159
Before launching the simulation, source your env.sh from ugv_nav4d and build your ROS 2 workspace:
166160
@@ -170,8 +164,10 @@ source path/to/ugv_nav4d/build/install/env.sh
170164
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
171165
```
172166
173-
### 6. Test Environment with Turlebot3 and Nav2 Integration
174-
Follow the steps in this section to play around with a Turtlebot3 and Nav2. Ugv_nav4d expects a pointcloud map. The map can be provided by SLAM or static pointclouds as `PLY`. A dummp flat plane `PLY` file is used in these steps.
167+
# Turlebot3 and Nav2 Integration
168+
Install [Nav2](https://docs.nav2.org/development_guides/build_docs/index.html) from the instructions on the homepage.
169+
170+
Follow the steps in this section to play around with a Turtlebot3 and Nav2. Ugv_nav4d expects a pointcloud map. The map can be provided by SLAM or static pointclouds as `PLY`. An example flat plane `PLY` file is used in these steps.
175171
176172
Install turtlebot3-gazebo package and launch simulation
177173
```
@@ -185,7 +181,7 @@ Clone a repo with config files for nav2 and ugv_nav4d
185181
cd ~/your_ros2_workspace
186182
git clone [email protected]:haider8645/turtlebot3_nav2_ugv_nav4d_config.git
187183
```
188-
Start nav2 controller_server
184+
Start the nav2 controller_server.
189185
190186
Note: Please provide the fullpath for `your_ros2_workspace` in the launch file arguments.
191187
```
@@ -220,7 +216,13 @@ ros2 service call /ugv_nav4d_ros2/map_publish std_srvs/srv/Trigger
220216
221217
You can now send goals to the planner using `2D Goal Pose` in rviz and visualize the results.
222218
223-
### 7. Test Environment with Husky
219+
# Husky Integration
220+
221+
To ensure that Gazebo can find the robot model, you need to export the following environment variable. Replace /path/to/ with the actual **complete** path where you clone the repository `ros2_humble_gazebo_sim`. Add this command to your terminal:
222+
```
223+
export IGN_GAZEBO_RESOURCE_PATH=/path/to/your_ros2_workspace/ros2_humble_gazebo_sim/resource:$IGN_GAZEBO_RESOURCE_PATH
224+
```
225+
224226
Launch the Gazebo simulation by executing the following command in your terminal:
225227
```
226228
source ~/your_ros2_workspace/install/setup.bash
@@ -281,7 +283,6 @@ In a new terminal, start a python script to visualize the labeled path in rviz2.
281283
cd ~/your_ros2_workspace/src/ugv_nav4d_ros2/scripts
282284
python3 visualize_path.py
283285
```
284-
### 8. Plan
285286
286287
In a new terminal, start Rviz2.
287288
```

0 commit comments

Comments
 (0)