Download OpenDRIVE Manager User Manual
Transcript
5.2.2 Track Co-ordinates Track co-ordinates consist of the components: trackId unique ID of the road [-] s run-length along chord line [m] t lateral distance to chord line [m] h heading relative to chord line [rad] p pitch relative to chord line [rad] r roll relative to chord line [rad] They may be applied to a position object in the following ways: 1) Create a co-ordinate object and apply it to the position object Example: OpenDrive::TrackCoord myCoord( 17, 5.0, 3.0 ); myManager.setPos( myCoord ); 2) Apply the co-ordinates directly to the position object Example: myManager.setTrackPos( 17, 5.0, 3.0 ); In both examples, the position will be set to road no. 17, run-length 5.0m and 3.0m lateral offset from the chord line. 5.2.3 Lane Co-ordinates Lane co-ordinates are derived from track co-ordinates and consist of the following components: trackId unique ID of the road [-] laneId unique ID of the lane within the road [-] offset lateral offset from the lane center [m] s run-length along chord line [m] h heading relative to chord line [rad] p pitch relative to chord line [rad] r roll relative to chord line [rad] They may be applied to a position object in the following ways: 1) Create a co-ordinate object and apply it to the position object Example: OpenDrive::LaneCoord myCoord( 5, 1, 5.0, 0.0 ); myManager.setPos( myCoord ); 2) Apply the co-ordinates directly to the position object Example: myManager.setLanePos( 5, 1, 5.0, 0.0 ); In both examples, the position will be set to road no. 5, lane no. 1, run-length 5.0m and zero offset from the lane center. Date: Name: August 08, 2012 Marius Dupuis Title: OpenDRIVE Manager – User Manual Document No.: Issue: Page: VI2008.029 I 12 of 30 Copyright note according to DIN / ISO 16016