$darkmode
cloe::LaneBoundary Class Reference
Inheritance diagram for cloe::LaneBoundary:
Collaboration diagram for cloe::LaneBoundary:

Public Types

enum class  Type {
  Unknown , Solid , Dashed , Grass ,
  Curb
}
 
enum class  Color {
  Unknown , White , Yellow , Red ,
  Green , Blue
}
 

Public Member Functions

fable::Schema schema_impl () override
 
void to_json (fable::Json &j) const override
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void from_conf (const Conf &c)
 
Json to_json () const
 

Public Attributes

int id {-1}
 
int prev_id {-1}
 
int next_id {-1}
 
double dx_start {0}
 
double dy_start {0}
 
double heading_start {0}
 
double curv_hor_start {0}
 
double curv_hor_change {0}
 
double dx_end {0}
 
double exist_prob {0}
 
Type type {Type::Unknown}
 
Color color {Color::Unknown}
 
std::vector< Eigen::Vector3d > points
 

Friends

void to_json (fable::Json &j, const LaneBoundary::Type &t)
 
void from_json (const fable::Json &j, LaneBoundary::Type &t)
 
void to_json (fable::Json &j, const LaneBoundary::Color &t)
 
void from_json (const fable::Json &j, LaneBoundary::Color &t)
 

Additional Inherited Members

Member Enumeration Documentation

◆ Color

Color of the lane boundary.

◆ Type

Type of lane boundary.

Member Function Documentation

◆ schema_impl()

fable::Schema cloe::LaneBoundary::schema_impl ( )
overridevirtual

Return a new instance of the schema for this object.

This schema is then stored in schema_. This is called every time the object is created or moved, since Schema contains references to fields that (should be) in the object.

Reimplemented from fable::Confable.

◆ to_json()

void cloe::LaneBoundary::to_json ( fable::Json j) const
overridevirtual

Serialize a Confable to Json.

Note: If you implement this type, make sure to either use CONFABLE_FRIENDS or a using Confable::to_json statement in your derived type.

Reimplemented from fable::Confable.


The documentation for this class was generated from the following files: