I am trying to build a 2D map out of scan data which i have simulated in my own software. However, when running the cartographer id does not show anything in rviz.
What can be the problem? In a first step I want to get a map using scandata only. However I have already prepared some odometry data (x,y,theta) as well. For now, I am just trying to get something out of pure scandata:
I have written a publisher node which reads-in a textfile with my scan data (811 rays each scan with an angular resolution of 0.3333 degree, spanning a scan-range of 270 degree) and publishes them which then I store with the command "rosbag record -a"
I have tested the bagfile with cartographer_rosbag_validate and everything looks fine.
I have also tried to provide odometrydata (x, y, theta) with another publisher but that did not change anything in the output.
Then I have tried to provide simulated IMU data as well. Here I just provided data in a plausible range such that cartographer_rosbag_validate does not complain just to see any scan ata in rviz but that did not happen.
What can be the problem here? Any suggestion or recommendation is highly appreciated. Thanks!
Here is the content of my files:
demo_kuve.launch:
kuve_test.launch:
kuve_test.urdf:
kuve_test.lua:
include "map_builder.lua"
include "trajectory_builder.lua"
options = {
map_builder = MAP_BUILDER,
trajectory_builder = TRAJECTORY_BUILDER,
map_frame = "map",
tracking_frame = "base_link",
published_frame = "base_link",
odom_frame = "base_link",
provide_odom_frame = false,
publish_frame_projected_to_2d = false,
use_odometry = false,
use_nav_sat = false,
use_landmarks = false,
num_laser_scans = 1,
num_multi_echo_laser_scans = 0,
num_subdivisions_per_laser_scan = 1,
num_point_clouds = 0,
lookup_transform_timeout_sec = 0.2,
submap_publish_period_sec = 0.3,
pose_publish_period_sec = 5e-3,
trajectory_publish_period_sec = 30e-3,
rangefinder_sampling_ratio = 1.,
odometry_sampling_ratio = 1.,
fixed_frame_pose_sampling_ratio = 1.,
imu_sampling_ratio = 1.,
landmarks_sampling_ratio = 1.,
}
MAP_BUILDER.use_trajectory_builder_2d = true
TRAJECTORY_BUILDER_2D.num_accumulated_range_data = 10
return options
I can also upload the bagfile somewhere if needed.
Thank you so much!
Raffael
↧