map_assembler node is now available on ROS2

This commit is contained in:
matlabbe
2024-09-11 23:45:55 -07:00
parent 28f997477a
commit c21b0ee84e
5 changed files with 487 additions and 347 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ GuiWrapper::GuiWrapper(const rclcpp::NodeOptions & options) :
initCachePath = UDirectory::currentDir(true) + initCachePath;
}
RCLCPP_INFO(this->get_logger(), "rtabmap_viz: Initializing cache with local database \"%s\"", initCachePath.c_str());
if(!callMapDataService("get_map_data", false, true, true))
if(!callMapDataService(rtabmapNodeName_+"/get_map_data", false, true, true))
{
RCLCPP_ERROR(this->get_logger(),
"The cache will still be loaded "