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?
I tried to define speed limit both for lane and road in an OpenDRIVE file:
However, I am not able to get the speed limit properly in OSI trace, i.e. the following Python code prints nothing:
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?
Thank you very much!