67 for (
const auto& old_landmark : old_poi.
landmark()) {
69 new_landmark->set_name(old_landmark.name());
70 AINFO <<
"Refreshed point of interest: " << old_landmark.
name();
72 for (
const auto& old_end_point : old_landmark.waypoint()) {
74 old_xyz.set_x(old_end_point.pose().x());
75 old_xyz.set_y(old_end_point.pose().y());
76 old_xyz.set_z(old_end_point.pose().z());
82 XYZToSL(old_xyz, &new_lane, &new_s, &new_l);
85 const auto new_xyz =
SLToXYZ(new_lane, new_s, new_l);
89 new_end_point.set_id(new_lane);
90 new_end_point.set_s(new_s);
91 auto* pose = new_end_point.mutable_pose();
92 pose->set_x(new_xyz.x());
93 pose->set_y(new_xyz.y());
94 pose->set_z(new_xyz.z());
95 *new_landmark->add_waypoint() = new_end_point;
97 AINFO <<
"\n ============ from ============ \n"
98 << old_end_point.DebugString()
99 <<
"\n ============ to ============ \n"
100 << new_end_point.DebugString() <<
"XYZ distance is "
bool GetProtoFromASCIIFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as ascii representation of protobufs,...