diff --git a/src/test_tif_loader.cpp b/src/test_tif_loader.cpp index e3f64fc..15ed979 100644 --- a/src/test_tif_loader.cpp +++ b/src/test_tif_loader.cpp @@ -81,8 +81,8 @@ class MapPublisher : public rclcpp::Node { geometry_msgs::msg::TransformStamped static_transformStamped; static_transformStamped.header.frame_id = map_->getCoordinateName(); static_transformStamped.child_frame_id = map_->getGridMap().getFrameId(); - static_transformStamped.transform.translation.x = map_origin(0); - static_transformStamped.transform.translation.y = map_origin(1); + static_transformStamped.transform.translation.x = map_origin.x(); + static_transformStamped.transform.translation.y = map_origin.y(); static_transformStamped.transform.translation.z = 0.0; static_transformStamped.transform.rotation.x = 0.0; static_transformStamped.transform.rotation.y = 0.0;