翻译Lanlet2

https://github.com/changhexingchen/Lanelet2/blob/master/lanelet2_core/doc/RegulatoryElementTagging.md

Lanelet2/lanelet2_core/doc/RegulatoryElementTagging.md

Tagging Regulatory Elements

Regulatory Elements are divided into categories. The most common ones are TrafficLightTrafficSignSpeedLimit and RightOfWay, which are already included in the core library, but there are many more ways to model restrictions on lanelets and areas. More might be added in the future and also users are able to add own regulatory elements by inheriting from the generic RegulatoryElement class and registering the new type using the RegisterRegulatoryElement class.

This document describes the generic layout of a Regulatory Element and shows how the common Regulatory Elements are structured.

本文件描述了交通规则元素的一般布局,并展示了那些普通的交通规则元素(如:交通灯,交通标志,限速标志)是如何被结构化的。

Tags

Regulatory Elements always have type=regulatory_element. If this tag is not present, Lanelet2 will add it when writing to an .osm file.

交通规则元素总是有这个键值对:type=regulatory_element。如果这个标签不存在,Lanelet2将在写入.osm格式的文件时添加它。

Subtype

The subtype tag helps Lanelet2 to distinguish between the different regulatory elements. For the basic Regulatory Elements this would be:

  • traffic_light
  • traffic_sign
  • speed_limit
  • right_of_way

子类型标记帮助Lanelet2区分不同的交通规则。对于基本的交通规则来说,这将是:

  • 红绿灯
  • 指示牌
  • 车速限制
  • 路权

Other, Optional Tags

The following tags can be used to add more information to a Regulatory Element (of course you can add you own to enhance your map and implement a new TrafficRule object that implements them). The default values for the tag are highlighted.

  • dynamic (yes/no): Indicates that this Regulatory Element might change its meaning based on a condition. Examples would be a road that is closed on weekends. Or a speed limit that is only in action if the road is wet. By default, Lanelet2 cannot handle dynamic Regulatory Elements and will ignore them. Specialized traffic rule classes could be implemented that use background information (such as the current time) to resolve dynamic Regulatory Elements.
  • fallback (yes/no): Indicates that this Regulatory Element has a lower priority than another Regulatory Element. Examples are right of way regulations that become valid if the traffic lights of an intersection are out of order.

其他的可选标签

以下标签被用来向交通规则添加更多信息(当然,您可以添加自己的标签来增强你的地图并新建TrafficRule对象实施与你的地图)。标签的默认值被突出显示(高亮显示)。

  • 动态(的)(yes/no):指示此交通规则可能根据某种情况更改其含义。例如,一条道路在周末关闭。或者只有在路面潮湿的情况下才会起作用的限速。默认情况下,Lanelet2无法处理动态交通规则,所以将忽略它们。可以实现专门化的交通规则类,这些类使用背景信息(例如当前时间)来解析动态交通规则。
  • 后退(yes/no):指示此交通规则的优先级低于另一个交通规则。例如,当交叉路口的交通灯出现故障时,通行(权)规则就会生效。

Basic Regulatory Elements

一些基本的交通规则

Traffic Sign

 

A traffic sign generically expresses a restriction that is expressed by a traffic sign. The refers part refers to traffic signs that form the rule. The cancels parameter then refers to traffic signs that mark the end of the restriction expressed by the sign (e.g. the end of no-overtaking section). The ref_line and cancel_line parameters can then be used to define the exact start and end points of the rule. The LineStrings referenced by that must not have an intersection with the referencing lanelet or Area. If they do, the rule is valid from/to this intersection point. If not, the rule is valid for the whole lanelet/area.

交通标志

一般情况下,一种交通标志表达一种限制。参考部分是指构成规则的交通标志。cancels参数则是指解除限制(如禁止超车路段结束)。用ref_line和cancel_line参数定义规则的确切起点和终点。它引用的线串不能与引用的小lanelet或Area有交叉。如果他们这样做了,规则从/到这个交点是有效的。如果不是,则该规则适用于整个lanelet/area。

Speed Limit

Speed limits work very similar to traffic signs. If they are put up by a traffic sign, they simply reference this traffic sign. Similar for the ref_line and the cancels role. The TrafficRules class then takes care of interpreting the speed limit from the subtype of the referenced traffic sign.

Alternatively, if the speed limit does not originate from a traffic sign, a sign_type tag can be used to define the speed limit. The value should contain the unit, eg "50 km/h". mph or mps or similar units are possible as well. If no unit is given, km/h is assumed.

限速

限速工作原理与交通标志非常相似。如果他们被一个交通标志提供,他们只是简单地引用这个交通标志。类似于ref_line和cancels角色。然后,traffic rules类负责从引用的交通标志的子类型(subtype)解释速度限制。

或者,如果速度限制不是来自交通标志,可以使用sign_type标记来定义速度限制。数值应包含单位,如“50km /h”。英里每小时或mps或类似的单位也是可能的。如果没有给出单位,则默认是km/h。

Traffic Light

Traffic lights are also similar to traffic signs. Instead of a sign, the light itself is referenced as refers parameter. The cancels and cancels_line role have no meaning for traffic lights. The ref_line can reference the respective stop line. If they are not present, the stop line is implicitly at the end of the lanelet or Area.

交通灯

交通灯也类似于其他交通标志。并不是一个符号,灯本身被引用作为参数。cancels和cancels_line角色对于交通灯没有意义。ref_line可以引用各自的停止线。如果它们不存在,则停止线隐含地位于lanelet或Area的末尾。

Right of Way

By default, intersecting lanelets are treated as a "first come first served" situation, meaning that the vehicle that arrives first at the intersection point has right of way. The RightOfWay Regulatory Element changes this. It has three roles:

  • yield: References the lanelets that have to yield
  • right_of_way: the lanelets that have the right of way over the yielding ones
  • ref_line: The lines where vehicles that are crossing a yield lanelet have to stop at. If not set, this is the end of the yieldlanelet.

Only one lanelet of a chain of lanelets that belong to the same lane have to be referenced. Generally this is the last lanelet that can be undoubtedly assigned to one specific intersection arm (i.e. the last lanelet before the intersection begins). All lanelets that are mentioned by the right of way Regulatory Element also have to reference the regulatory element.

路权

默认情况下,相交的lanelets被视为“先到先得”的情况,这意味着首先到达交叉点(或者翻译成冲突点)的车辆拥有优先通行权。路权的概念改变了这一点。它承担三个角色:

  • 屈服/让步:引用具有路权的Lanelets
  • 路权:具有先行权的lanelets
  • ref_line:车辆需要停在那里的停止线。如果不设置,就相当于具有路权并且不需要让行。

只需引用属于同一lane的一个lanelets链中的一个lanelet。一般来说,这是最后一个可以毫无疑问地分配给一个特定交臂的lanelet(即交点开始前的最后一个lanelet)。所有被指定路权的lanelets也要引用基本的交通规则。

猜你喜欢

转载自www.cnblogs.com/yibeimingyue/p/10397041.html