You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -117,16 +117,21 @@ This provides instructions for setting up a test environment using **Gazebo Fort
117
117
## Prerequisites
118
118
119
119
### 1. Install ROS2 Humble
120
-
Ensure you have **ROS2 Humble** installed on your system.
121
-
122
-
```
123
-
sudo apt install ros-humble-desktop-full
124
-
```
120
+
Ensure you have **ROS2 Humble** installed on your system. Follow the official page at [ROS2 Humble Debian Installation](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html)
125
121
126
122
### 2. Install Gazebo Fortress
127
123
If you need to install **Gazebo Fortress**, follow the instructions provided on the official page at [Gazebo Installation](https://gazebosim.org/docs/latest/ros_installation/).
128
124
129
-
### 3. Get the repos
125
+
### 3. Install SLAM
126
+
If you have a SLAM package which provides a pointcloud map on a topic then you can skip this step. If not then you can use [lidarslam_ros2](https://github.com/rsasaki0109/lidarslam_ros2). Please follow the build and install instructions from the original repository. Set the parameter `robot_frame_id: "husky/base_link"` for the `scanmatcher` node in [lidarslam.yaml](https://github.com/rsasaki0109/lidarslam_ros2/blob/a63b8fa2485e05251505b2bb209598285106bff2/lidarslam/param/lidarslam.yaml#L4)
127
+
128
+
Install libg2o:
129
+
130
+
```
131
+
sudo apt-get install -y ros-humble-libg2o
132
+
```
133
+
134
+
### 3. Get ugv_nav4d_ros2 and a test environment for robot husky in gazebo
130
135
131
136
```
132
137
mkdir -p your_ros2_workspace/src
@@ -137,6 +142,8 @@ You can clone the repo `ros2_humble_gazebo_sim` anywhere in your system. Here we
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:
cd ~/your_ros2_workspace/ros2_humble_gazebo_sim/simulation
160
168
ros2 launch start.launch.py
161
169
```
170
+
You can use the `Teleop` plugin of Gazebo for sending velocity commands to the robot. Click on the three dots in top-right corner of Gazebo window and search for `Teleop`. Select the plugin and adjust the values as shown in figure.
171
+
172
+

173
+
174
+
Alternative to the `Teleop` plugin, you can use a joystick for moving the robot. For this, set the argument `use_joystick:=True`. Adjust the config files in the folder `/config` of the `ros2_humble_gazebo_sim` package from Step 3. Provide the full paths to the arguments `joy_config_file` and `teleop_twist_config_file` as shown below:
In a new terminal, source your workspace and start SLAM. Remap the node scanmatcher's topic `/input_cloud` to `/husky/scan/points` in the `lidarslam.launch.py`
In a new terminal, source your workspace, ugv_nav4d library, and launch the ugv_nav4d_ros2. Replace the /path/to/ugv_nav4d with the location of the ugv_nav4d library. Add this command to your terminal:
210
+
In a new terminal, source your workspace, ugv_nav4d library, and launch the ugv_nav4d_ros2. Replace the /path/to/your/ugv_nav4d with the location of the ugv_nav4d library. Add this command to your terminal:
The gaps in the MLS map are due to the gaps in the scanned points. Move the robot around in the environment. After some time, you will see the MLS start to fill out the gaps.
0 commit comments