Skip to content

Commit

Permalink
Convert the target speed to float
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyadey23 authored Sep 30, 2021
1 parent b580bc5 commit e5b06cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srunner/tools/openscenario_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ def convert_maneuver_to_atomic(action, actor, actor_list, catalogs):
target_speed = ParameterRef(long_maneuver.find("SpeedActionTarget").find(
"AbsoluteTargetSpeed").attrib.get('value', 0))
atomic = ChangeActorTargetSpeed(
actor, target_speed, distance=distance, duration=duration, name=maneuver_name)
actor, float(target_speed), distance=distance, duration=duration, name=maneuver_name)

# relative velocity to given actor
if long_maneuver.find("SpeedActionTarget").find("RelativeTargetSpeed") is not None:
Expand Down

0 comments on commit e5b06cc

Please sign in to comment.