scenic.simulators.webots.road.interface
Python library supporting the main Scenic module.
Summary of Module Members
Functions
|
|
|
|
Convert a Scenic position to a Webots position. |
|
Convert a Scenic heading to a Webots rotation vector. |
|
Convert a Webots position to a Scenic position. |
|
Convert a Webots rotation vector to a Scenic heading. |
Classes
OSM crossroads |
|
Objects with OSM id tags |
|
PedestrianCrossing nodes |
|
OSM roads |
|
|
Member Details
- webotsToScenicPosition(pos)[source]
Convert a Webots position to a Scenic position. Drops the Webots Y coordinate.
Deprecated since version 2.1.0: Use
WebotsCoordinateSystem
instead.
- scenicToWebotsPosition(pos, y=0, coordinateSystem='ENU')[source]
Convert a Scenic position to a Webots position.
Deprecated since version 2.1.0: Use
WebotsCoordinateSystem
instead.
- webotsToScenicRotation(rot, tolerance2D=None)[source]
Convert a Webots rotation vector to a Scenic heading. Assumes the object lies in the Webots X-Z plane, with a rotation axis close to the Y axis. If
tolerance2D
is given, returnsNone
if the orientation of the object is not sufficiently close to being 2D.Deprecated since version 2.1.0: Use
WebotsCoordinateSystem
instead.