scenic.simulators.webots.utils

Various utilities for working with Webots scenarios.

Summary of Module Members

Module Attributes

ENU

The ENU coordinate system (the Webots default).

NUE

The NUE coordinate system.

EUN

The EUN coordinate system.

Classes

WebotsCoordinateSystem

A Webots coordinate system into which Scenic positions can be converted.

Member Details

class WebotsCoordinateSystem(system='ENU')[source]

A Webots coordinate system into which Scenic positions can be converted.

See the Webots documentation of WorldInfo.coordinateSystem for a discussion of the possible coordinate systems. Since Webots R2022a, the default coordinate axis convention is ENU (X-Y-Z=East-North-Up), which is the same as Scenic’s.

positionToScenic(pos)[source]

Convert a Webots position to a Scenic position.

positionFromScenic(pos)[source]

Convert a Scenic position to a Webots position.

ENU = <scenic.simulators.webots.utils.WebotsCoordinateSystem object>

The ENU coordinate system (the Webots default).

NUE = <scenic.simulators.webots.utils.WebotsCoordinateSystem object>

The NUE coordinate system.

EUN = <scenic.simulators.webots.utils.WebotsCoordinateSystem object>

The EUN coordinate system.