Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is speed limit in LogicalLane related to <speed> tag in OpenDRIVE? #823

Open
xuanyuxin opened this issue Jun 19, 2024 · 0 comments
Open

Comments

@xuanyuxin
Copy link

xuanyuxin commented Jun 19, 2024

I tried to define speed limit both for lane and road in an OpenDRIVE file:

<road name="cubic_road" length="1.4644343507055999e+03" id="0" junction="-1">
        <link>
        </link>
		<speed max="80.0" unit="km/h"/>
...
<lane id="-7" type="border" level= "false">
                        <speed sOffset="0.0" max="80.0" unit="km/h"/>
...

However, I am not able to get the speed limit properly in OSI trace, i.e. the following Python code prints nothing:

self.msg = GroundTruth()
...
for m in self.msg.logical_lane:
    print('      lane speed limit:', m.traffic_rule.speed_limit.speed_limit_value.value)
for m in self.msg.road_marking:
    print('      road speed limit:', m.road_marking.value.value)

I see in the proto file (osi_logicallane.proto and osi_trafficsign.proto), the speed_limit_value and its value is optional, am I accessing it correct or is there another way to examine whether the speed limit actually exists or not?

message SpeedLimit {
    optional TrafficSignValue speed_limit_value = 1;
}
...
message TrafficSignValue
{
    optional double value = 1;
}

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant