-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEnvironment notes
More file actions
26 lines (21 loc) · 1.58 KB
/
Copy pathEnvironment notes
File metadata and controls
26 lines (21 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Gazebo (world).sdf default max_step_size is 0.001. Changed to 0.01 in testV1 to increase speed. Worked great so far.
Could also decrease realtime_update_rate, but that might break SLAM.
Could also try downrating camera and lidar sensors.
mapper_params set to load map of driveway.
Driveway mesh model z-pose set to 1' below the origin plane so that the road surface is level
driveway.sdf:
Set groundplane and driveway mesh friction coefficient to 0.8 for rough asphalt (wheels set to 0.7)
To edit a map:
-Using slam toolbox, generate a map image in RVIZ.
-Since the Save Map button doesnt seem to do anything, use
ros2 run nav2_map_server map_saver_cli -f driveway_raw
-Upload the .yaml and .pgm generated to https://gyropalm.github.io/ROS-SLAM-Map-Editor/editor.html
-Make edits as needed, then use the Download Map button to save the edited map.
-The new .yaml filed needs to be edited so that the "image" line contains the full path to the new .pgm file, where ever you end up saving it (you "world" folder, for example), otherwise nav2 map server wont find it.
To run SLAM and Nav2 with costmap in a new world:
-Start Gazebo in the desired world
-Launch rviz2
-Launch SLAM Toolbox from its package: ros2 launch slam_toolbox online_async_launch.py use_sim_time:=true
-Launch Nav2 from its package: ros2 launch nav2_bringup bringup_launch.py use_sim_time:=true
This allows SLAM to map and localize the new world while Nav2 generates a costmap of the layout and obstacles.
Neither of those programs relies on an existing map or edited parameters file at this point, but the generated map can be saved or serialized.