bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
pi_camera_line_following::SquarePathDriver Class Reference

Public Types

enum class  State { FOLLOW , TO_CORNER , TURN , WAIT }

Public Member Functions

 SquarePathDriver (LineFollower follower, real_t near_edge, real_t half_line_width)
Command command (const LineReading &line, const Point &position, real_t heading, real_t side_heading, real_t dt)
State state () const noexcept
bool has_given_up () const
real_t give_up_after () const

Member Enumeration Documentation

◆ State

Enumerator
FOLLOW 
TO_CORNER 
TURN 
WAIT 

Constructor & Destructor Documentation

◆ SquarePathDriver()

pi_camera_line_following::SquarePathDriver::SquarePathDriver ( LineFollower follower,
real_t near_edge,
real_t half_line_width )
inline

Member Function Documentation

◆ command()

Command pi_camera_line_following::SquarePathDriver::command ( const LineReading & line,
const Point & position,
real_t heading,
real_t side_heading,
real_t dt )
inline

◆ give_up_after()

real_t pi_camera_line_following::SquarePathDriver::give_up_after ( ) const
inline

◆ has_given_up()

bool pi_camera_line_following::SquarePathDriver::has_given_up ( ) const
inline

◆ state()

State pi_camera_line_following::SquarePathDriver::state ( ) const
inlinenoexcept

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