25 proto::LandmarkData proto;
28 auto* item = proto.add_landmark_observations();
29 item->set_id(observation.id);
30 *item->mutable_landmark_to_tracking_transform() =
32 item->set_translation_weight(observation.translation_weight);
33 item->set_rotation_weight(observation.rotation_weight);
41 for (
const auto& item : proto.landmark_observations()) {
45 item.translation_weight(),
46 item.rotation_weight(),
proto::FixedFramePoseData ToProto(const FixedFramePoseData &pose_data)
FixedFramePoseData FromProto(const proto::FixedFramePoseData &proto)
Time FromUniversal(const int64 ticks)
int64 ToUniversal(const Time time)
std::vector< LandmarkObservation > landmark_observations