|
libstp
Robotics library for Botball
|
#include <MapSegment.hpp>
Public Types | |
| enum class | Kind : uint8_t { Line , Wall } |
Public Member Functions | |
| float | length () const noexcept |
Public Attributes | |
| Kind | kind {Kind::Line} |
| float | startX {0.0f} |
| float | startY {0.0f} |
| float | endX {0.0f} |
| float | endY {0.0f} |
| float | widthCm {0.0f} |
One line or wall segment in table coordinates (cm). Mirrors TableMapFileV1.lines[] from the web-ide ftmap schema, kept as a POD so the particle filter can keep vector<MapSegment> in a tight cache-friendly layout.
Definition at line 12 of file MapSegment.hpp.
|
strong |
| Enumerator | |
|---|---|
| Line | |
| Wall | |
Definition at line 14 of file MapSegment.hpp.
|
inlinenoexcept |
Length of the segment in cm. Provided here so the binding can expose it as a Python read-only property without duplicating the formula on the Python side.
Definition at line 26 of file MapSegment.hpp.
| float libstp::map::MapSegment::endX {0.0f} |
Definition at line 19 of file MapSegment.hpp.
| float libstp::map::MapSegment::endY {0.0f} |
Definition at line 20 of file MapSegment.hpp.
| Kind libstp::map::MapSegment::kind {Kind::Line} |
Definition at line 16 of file MapSegment.hpp.
| float libstp::map::MapSegment::startX {0.0f} |
Definition at line 17 of file MapSegment.hpp.
| float libstp::map::MapSegment::startY {0.0f} |
Definition at line 18 of file MapSegment.hpp.
| float libstp::map::MapSegment::widthCm {0.0f} |
Definition at line 21 of file MapSegment.hpp.