bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
mcts_line_following::TowardsTheLine Struct Reference

Public Member Functions

uint_t operator() (const TrackModel &model, std::mt19937 &generator) const

Static Public Member Functions

static uint_t steer (const TrackModel &model)

Detailed Description

The rollout policy: head along the track and back towards the line, the further from it the more sharply, with the command whose turn rate is closest. Near a box it heads for a path DETOUR_OFFSET outside the line instead, to go around the box. Every ROLLOUT_RANDOM of the time it takes a random command, so that the rollouts also try other ways

Member Function Documentation

◆ operator()()

uint_t mcts_line_following::TowardsTheLine::operator() ( const TrackModel & model,
std::mt19937 & generator ) const
inline

◆ steer()

uint_t mcts_line_following::TowardsTheLine::steer ( const TrackModel & model)
inlinestatic

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