tess 1.0.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::RouteAttachmentRanking Struct Reference

#include <tess/sim/pibt_movement.h>

Public Member Functions

auto operator() (std::size_t agent, Coord3 candidate) const -> std::uint32_t

Static Public Member Functions

static auto clamped_distance (Coord3 lhs, Coord3 rhs) noexcept -> std::uint32_t

Public Attributes

std::span< const PathAgentStateagents
const PathAgentRoutesroutes = nullptr
std::uint32_t attach_radius = 1

Static Public Attributes

static constexpr std::uint32_t kDetachedBase
 Scores below kDetachedBase are attached; higher steer back.

Detailed Description

Ranks PIBT candidates by local attachment to each agent's retained route.

Member Data Documentation

◆ attach_radius

std::uint32_t tess::RouteAttachmentRanking::attach_radius = 1

Maximum hop from a candidate onto a route point. The default of 1 is the largest passability-safe radius; see the class comment before raising it.

◆ kDetachedBase

std::uint32_t tess::RouteAttachmentRanking::kDetachedBase
staticconstexpr
Initial value:
=
std::numeric_limits<std::uint32_t>::max() / 8

Scores below kDetachedBase are attached; higher steer back.


The documentation for this struct was generated from the following file: