Skip to content

Commit c8628bf

Browse files
authored
fix(gnss_poser): no conversion when projection type is local (#6356)
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
1 parent 81605c1 commit c8628bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sensing/gnss_poser/src/gnss_poser_core.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ void GNSSPoser::callbackNavSatFix(
7878
return;
7979
}
8080

81+
if (projector_info_.projector_type == MapProjectorInfo::Message::LOCAL) {
82+
RCLCPP_ERROR_THROTTLE(
83+
this->get_logger(), *this->get_clock(), std::chrono::milliseconds(5000).count(),
84+
"map_projector_info is local projector type. Unable to convert GNSS pose.");
85+
return;
86+
}
87+
8188
// check fixed topic
8289
const bool is_fixed = isFixed(nav_sat_fix_msg_ptr->status);
8390

0 commit comments

Comments
 (0)