.. _pilot.MapNode: pilot.MapNode ============= .. cpp:namespace:: pilot::MapNode `MapNode` describes a node in a Road Map. It has a position as well as an optional name, in addition to some parameters. Inherits from :ref:`pilot.MapElement`. Fields ------ .. cpp:member:: int parent = -1 Parent node id, if any. If a :ref:`pilot.MapNode` or :ref:`pilot.MapStation` has a parent its position (and orientation) is defined relative to it. .. cpp:member:: string name Optional node name, usually a station name. .. cpp:member:: Vector2d position 2D (x, y) map position, see :ref:`math.Vector2d`. .. cpp:member:: Vector3d offset 3D (x, y, yaw) pose offset relative to parent, see :ref:`math.Vector3d`. If parent is a :ref:`pilot.MapStation` the offset is relative to its orientation. .. cpp:member:: set drive_flags A set of drive flags for this node, see :ref:`pilot.drive_flags_e`.