MCPcopy Create free account
hub / github.com/Ekumen-OS/beluga / initialize_from_map

Method initialize_from_map

beluga_amcl/src/amcl_node.cpp:708–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708bool AmclNode::initialize_from_map() {
709 RCLCPP_INFO(get_logger(), "Initializing particles from map");
710
711 if (!particle_filter_) {
712 RCLCPP_ERROR(get_logger(), "Could not initialize particles: The particle filter has not been initialized");
713 return false;
714 }
715
716 particle_filter_->initialize_from_map();
717 enable_tf_broadcast_ = true;
718
719 RCLCPP_INFO(
720 get_logger(), "Particle filter initialized with %ld particles distributed across the map",
721 particle_filter_->particles().size());
722
723 return true;
724}
725
726} // namespace beluga_amcl
727

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected