Skip to content

Commit

Permalink
Fixed OSC LanePosition handling (#627)
Browse files Browse the repository at this point in the history
Change-Id: I3b5d38149e640338519ce322234d64947a5a1199
  • Loading branch information
fabianoboril authored Sep 4, 2020
1 parent 76d56c6 commit 47bf022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
* Fixed bug with ending roads near stop signals to break the simulation
* Fixed exception bug in spawn function of CarlaDataProvider
* Fixed access to private member of CARLA LocalPlanner inside OSC NpcVehicleControl
* Fixed handling of OSC LanePosition (#625)
### :ghost: Maintenance
* Exposed traffic manager port flag to enable the execution of multiple scenarios on a single machine.

Expand Down
2 changes: 1 addition & 1 deletion srunner/tools/openscenario_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def convert_position_to_transform(position, actor_list=None):

transform = waypoint.transform
if lane_pos.find('Orientation') is not None:
orientation = rel_pos.find('Orientation')
orientation = lane_pos.find('Orientation')
dyaw = math.degrees(float(orientation.attrib.get('h', 0)))
dpitch = math.degrees(float(orientation.attrib.get('p', 0)))
droll = math.degrees(float(orientation.attrib.get('r', 0)))
Expand Down

0 comments on commit 47bf022

Please sign in to comment.