Skip to content

Commit

Permalink
added guide-post
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjarlow committed Apr 28, 2022
1 parent 523887a commit 71631e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions bind/emcc/xodr/jsxodr.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ EMSCRIPTEN_BINDINGS(jsxodr)
.value(enum2str<e_objectType>(e_objectType::PEDESTRIAN).c_str(),e_objectType::PEDESTRIAN) //pedestrian
.value(enum2str<e_objectType>(e_objectType::WIND).c_str(),e_objectType::WIND) //wind
.value(enum2str<e_objectType>(e_objectType::ROADMARK).c_str(),e_objectType::ROADMARK); //roadMark
.value(enum2str<e_objectType>(e_objectType::GUIDEPOST).c_str(),e_objectType::GUIDEPOST); //guide-post
;
//@js::enum_<e_orientation>(m,"e_orientation", js::arithmetic(),"")
enum_<e_orientation>("e_orientation") //""
Expand Down
6 changes: 4 additions & 2 deletions src/xodr/xodr.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ enum class e_objectType : std::uint8_t
TRAIN, //train //#DOC : deprecated
PEDESTRIAN, //pedestrian //#DOC : deprecated
WIND, //wind //#DOC : deprecated
ROADMARK //roadMark
ROADMARK, //roadMark
GUIDEPOST //guide-post
};
enum class e_orientation : std::uint8_t
{
Expand Down Expand Up @@ -516,7 +517,8 @@ inline std::vector<std::pair<std::string, e_objectType>>enum_map()
{ "train", e_objectType::TRAIN } ,
{ "pedestrian", e_objectType::PEDESTRIAN } ,
{ "wind", e_objectType::WIND } ,
{ "roadMark", e_objectType::ROADMARK }
{ "roadMark", e_objectType::ROADMARK } ,
{ "guide-post", e_objectType::GUIDEPOST }
};
}
template<>
Expand Down

0 comments on commit 71631e2

Please sign in to comment.