6.3. Check Local Mapping functionality and plausibility¶
Especially after changing the camera position, a new camera matrix calibiration script or at the beginning of a testday, one should check functionality and plausibility of the local mapping module.
For doing so you will launch a debugging ros launch file. You will either specify a recorded rosbag or use the zed camera to use live images.
6.3.1. Using a recorded rosbag¶
Download it and place it inside the
as_ros/rosbags
folder.Enter the docker container:
docker exec -it as bash
Source the catkin workspace:
source devel/setup.bash
Start the local mapping debugging launch file. The command depends whether the rosbags contains compressed or uncompressed images:
Uncompressed images:
roslaunch local_mapping local_mapping_debug.launch input_rosbag:=/workspace/as_ros/rosbags/<rosbag_name>.bag
Compressed images:
roslaunch local_mapping local_mapping_debug.launch input_rosbag:=/workspace/as_ros/rosbags/<rosbag_name>.bag republish:=yes
If you need to use old camera matrices, you can specify the subdirectory of the camera matrices by appending
matrices_subdirectory:=<subdir>
Open the new, recorded rosbag in foxglove and check the visualization of the mapped cones in the 3D Panel for plausibility.
6.3.2. Using live images from the zed camera¶
Enter the docker container:
docker exec -it as bash
Source the catkin workspace:
source devel/setup.bash
Start the local_mapping debugging launch file:
roslaunch local_mapping local_mapping_debug.launch zed:=yes
If you need to use old camera matrices, you can specify the subdirectory of the camera matrices by appending
matrices_subdirectory:=<subdir>
Open foxglove and connect to the live roscore and check the visualization of the mapped cones in the 3D Panel for plausibility.