fix: detect remote SLAM bridge and clear loading state on response
This commit is contained in:
@@ -3135,6 +3135,9 @@ renderer.domElement.addEventListener('click', async (event) => {
|
||||
});
|
||||
|
||||
function applySlamState(state) {
|
||||
// Any valid state payload confirms that the bridge is responding. Missing
|
||||
// ROS data is reported separately by the topic status indicators.
|
||||
markVisualizationResponseReceived();
|
||||
latestSlamState = state;
|
||||
latestSlamStateReceivedAt = Date.now();
|
||||
resetNavigationPoseForNewSession(state);
|
||||
@@ -3150,7 +3153,6 @@ function applySlamState(state) {
|
||||
clearNavigationGoalMarker();
|
||||
navigationGoalId = null;
|
||||
}
|
||||
if (state?.pose || state?.pose_3d || state?.scan || state?.map || state?.point_cloud || state?.sensor_point_cloud) markVisualizationResponseReceived();
|
||||
if (NAV2_VIEW_MODE === 'navigation' && state?.tf?.map_to_odom) {
|
||||
navigationMapToOdom = state.tf.map_to_odom;
|
||||
updateNavigationMapTransform();
|
||||
|
||||
Reference in New Issue
Block a user