提交 184a7032 编写于 作者: 多味笋丝's avatar 多味笋丝 提交者: Qi Luo

modify map proto

上级 218b209e
......@@ -62,6 +62,8 @@ using PbStopSignType = apollo::hdmap::StopSign_StopType;
using PbBoundaryEdgeType = apollo::hdmap::BoundaryEdge_Type;
using PbRoadType = apollo::hdmap::Road_Type;
using PbSignInfoType = apollo::hdmap::SignInfo::Type;
using PbPassageType = apollo::hdmap::Passage_Type;
using PbPassageGroup = apollo::hdmap::PassageGroup;
struct StopLineInternal {
std::string id;
......
......@@ -353,11 +353,11 @@ Status ObjectsXmlParser::ToPassageType(const std::string& type,
std::string upper_str = UtilXmlParser::ToUpper(type);
if (upper_str == "ENTRANCE") {
*passage_type = apollo::hdmap::Passage_PassageType_ENTRANCE;
*passage_type = apollo::hdmap::Passage_Type_ENTRANCE;
} else if (upper_str == "EXIT") {
*passage_type = apollo::hdmap::Passage_PassageType_EXIT;
*passage_type = apollo::hdmap::Passage_Type_EXIT;
} else {
*passage_type = apollo::hdmap::Passage_PassageType_UNKNOWN;
*passage_type = apollo::hdmap::Passage_Type_UNKNOWN;
}
return Status::OK();
......
......@@ -12,12 +12,12 @@ message Passage {
repeated Id stop_sign_id = 4;
repeated Id lane_id = 5;
enum PassageType {
enum Type {
UNKNOWN = 0;
ENTRANCE = 1;
EXIT = 2;
};
optional PassageType type = 6;
optional Type type = 6;
};
......@@ -35,5 +35,4 @@ message PNCJunction {
repeated Id overlap_id = 3;
repeated PassageGroup passage_group = 4;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册