turtlebot2.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. -- Copyright 2016 The Cartographer Authors
  2. --
  3. -- Licensed under the Apache License, Version 2.0 (the "License");
  4. -- you may not use this file except in compliance with the License.
  5. -- You may obtain a copy of the License at
  6. --
  7. -- http://www.apache.org/licenses/LICENSE-2.0
  8. --
  9. -- Unless required by applicable law or agreed to in writing, software
  10. -- distributed under the License is distributed on an "AS IS" BASIS,
  11. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. -- See the License for the specific language governing permissions and
  13. -- limitations under the License.
  14. include "map_builder.lua"
  15. options = {
  16. map_builder = MAP_BUILDER,
  17. map_frame = "map",
  18. tracking_frame = "base_link",
  19. odom_frame = "odom",
  20. provide_odom_frame = false,
  21. use_odometry_data = true,
  22. use_constant_odometry_variance = true,
  23. constant_odometry_translational_variance = 1e-7,
  24. constant_odometry_rotational_variance = 1e-7,
  25. publish_occupancy_grid = false,
  26. use_horizontal_laser = true,
  27. use_horizontal_multi_echo_laser = false,
  28. horizontal_laser_min_range = 0.,
  29. horizontal_laser_max_range = 30.,
  30. horizontal_laser_missing_echo_ray_length = 5.,
  31. num_lasers_3d = 0,
  32. lookup_transform_timeout_sec = 0.2,
  33. submap_publish_period_sec = 0.3,
  34. pose_publish_period_sec = 5e-3,
  35. }
  36. options.map_builder.use_trajectory_builder_2d = true
  37. options.map_builder.trajectory_builder_2d.use_imu_data = false
  38. options.map_builder.trajectory_builder_2d.use_online_correlative_scan_matching = true
  39. return options