// Copyright 2016 The Cartographer Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto2";

package cartographer.mapping.proto;

import "cartographer/mapping_2d/proto/probability_grid.proto";
import "cartographer/mapping_3d/proto/hybrid_grid.proto";
import "cartographer/transform/proto/transform.proto";

// Serialized state of a mapping_2d::Submap.
message Submap2D {
  optional transform.proto.Rigid3d local_pose = 1;
  optional int32 num_range_data = 2;
  optional bool finished = 3;
  optional mapping_2d.proto.ProbabilityGrid probability_grid = 4;
}

// Serialized state of a mapping_3d::Submap.
message Submap3D {
  optional transform.proto.Rigid3d local_pose = 1;
  optional int32 num_range_data = 2;
  optional bool finished = 3;
  optional mapping_3d.proto.HybridGrid high_resolution_hybrid_grid = 4;
  optional mapping_3d.proto.HybridGrid low_resolution_hybrid_grid = 5;
}
