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

#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}

Detailed Description

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.

Member Enumeration Documentation

◆ Kind

enum class libstp::map::MapSegment::Kind : uint8_t
strong
Enumerator
Line 
Wall 

Definition at line 14 of file MapSegment.hpp.

Member Function Documentation

◆ length()

float libstp::map::MapSegment::length ( ) const
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.

Member Data Documentation

◆ endX

float libstp::map::MapSegment::endX {0.0f}

Definition at line 19 of file MapSegment.hpp.

◆ endY

float libstp::map::MapSegment::endY {0.0f}

Definition at line 20 of file MapSegment.hpp.

◆ kind

Kind libstp::map::MapSegment::kind {Kind::Line}

Definition at line 16 of file MapSegment.hpp.

◆ startX

float libstp::map::MapSegment::startX {0.0f}

Definition at line 17 of file MapSegment.hpp.

◆ startY

float libstp::map::MapSegment::startY {0.0f}

Definition at line 18 of file MapSegment.hpp.

◆ widthCm

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

Definition at line 21 of file MapSegment.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/MapSegment.hpp