1 Star 0 Fork 3

kissisgb/libOpenDRIVE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Junction.h 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
#pragma once
#include "XmlNode.h"
#include <map>
#include <string>
#include <vector>
namespace odr
{
struct JunctionLaneLink
{
int from = 0;
int to = 0;
};
struct JunctionConnection
{
enum class ContactPoint
{
None,
Start,
End
};
std::string id = "";
std::string incoming_road = "";
std::string connecting_road = "";
ContactPoint contact_point = ContactPoint::None;
std::vector<JunctionLaneLink> lane_links;
};
struct JunctionPriority
{
std::string high = "";
std::string low = "";
};
struct JunctionController
{
std::string id = "";
std::string type = "";
uint32_t sequence = 0;
};
class Junction : public XmlNode, public std::enable_shared_from_this<Junction>
{
public:
Junction() = default;
virtual ~Junction() = default;
std::string name = "";
std::string id = "";
std::map<std::string, JunctionConnection> connections;
std::map<std::string, JunctionController> controllers;
std::vector<JunctionPriority> priorities;
};
} // namespace odr
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kissisgb/libOpenDRIVE.git
git@gitee.com:kissisgb/libOpenDRIVE.git
kissisgb
libOpenDRIVE
libOpenDRIVE
master

搜索帮助