libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::map::MapTransition Struct Reference

#include <WorldMap.hpp>

Collaboration diagram for libstp::map::MapTransition:
[legend]

Public Attributes

std::string id
std::string name
std::string fromLayer
std::string toLayer
TransitionEdge from
TransitionEdge to
bool bidirectional {true}
float widthCm {0.0f}

Detailed Description

A transition (ramp/portal) connecting two layers along a seam line on each. Crossing the from edge moves the robot onto toLayer (and back, when bidirectional). The parameter t along the edge maps 1:1 between layers; when the two edges are geometrically identical (a ramp drawn in the same table coordinates as the floor it rises from) the crossing is a pure layer switch with no position remap.

Definition at line 48 of file WorldMap.hpp.

Member Data Documentation

◆ bidirectional

bool libstp::map::MapTransition::bidirectional {true}

Definition at line 56 of file WorldMap.hpp.

◆ from

TransitionEdge libstp::map::MapTransition::from

Definition at line 54 of file WorldMap.hpp.

◆ fromLayer

std::string libstp::map::MapTransition::fromLayer

Definition at line 52 of file WorldMap.hpp.

◆ id

std::string libstp::map::MapTransition::id

Definition at line 50 of file WorldMap.hpp.

◆ name

std::string libstp::map::MapTransition::name

Definition at line 51 of file WorldMap.hpp.

◆ to

TransitionEdge libstp::map::MapTransition::to

Definition at line 55 of file WorldMap.hpp.

◆ toLayer

std::string libstp::map::MapTransition::toLayer

Definition at line 53 of file WorldMap.hpp.

◆ widthCm

float libstp::map::MapTransition::widthCm {0.0f}

Definition at line 57 of file WorldMap.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-map/include/libstp/map/WorldMap.hpp