LARS
LARS (Light Augmented Reality System) is an open-source framework for light-based interaction and real-time tracking in multi-robot experiments. Inspired by ARK, LARS extends the augmented reality paradigm to robotic collectives by projecting dynamic visual cues and environments onto the arena, enabling new experimental possibilities for collective robotics research, education, and outreach. LARS features integrated tracking, light projection, and modular experiment control with a user-friendly Qt GUI.
Loading...
Searching...
No Matches
rcsc::Ray2D Class Reference

2D ray line class More...

#include <ray_2d.h>

Public Member Functions

 Ray2D ()
 defalut constructor. all values are set to 0.
 Ray2D (const Vector2D &origin, const AngleDeg &direction)
 constructor with origin and direction
 Ray2D (const Vector2D &origin, const Vector2D &dir_point)
 constructor with origin and other point
const Vector2Dorigin () const
 get origin point
const AngleDegdir () const
 get the angle of this ray line
Line2D line () const
 get line generated from this ray
bool inRightDir (const Vector2D &point, const double &thr=10.0) const
 check whether p is on the direction of this Ray
Vector2D intersection (const Line2D &other) const
 get the intersection point with 'line'
Vector2D intersection (const Ray2D &other) const
 get the intersection point with 'ray'

Detailed Description

2D ray line class

Constructor & Destructor Documentation

◆ Ray2D() [1/2]

rcsc::Ray2D::Ray2D ( const Vector2D & origin,
const AngleDeg & direction )
inline

constructor with origin and direction

Parameters
originorigin point
directiondirection angle

◆ Ray2D() [2/2]

rcsc::Ray2D::Ray2D ( const Vector2D & origin,
const Vector2D & dir_point )
inline

constructor with origin and other point

Parameters
originorigin point
dir_pointdirection point

Member Function Documentation

◆ dir()

const AngleDeg & rcsc::Ray2D::dir ( ) const
inline

get the angle of this ray line

Returns
const referenct to the member variable

◆ inRightDir()

bool rcsc::Ray2D::inRightDir ( const Vector2D & point,
const double & thr = 10.0 ) const
inline

check whether p is on the direction of this Ray

Parameters
pointconsidered point
thrthreshold angle buffer
Returns
true or false

◆ intersection() [1/2]

Vector2D rcsc::Ray2D::intersection ( const Line2D & other) const

get the intersection point with 'line'

Parameters
otherconsidered line
Returns
intersection point. if it does not exist, the invaidated value vector is returned.

◆ intersection() [2/2]

Vector2D rcsc::Ray2D::intersection ( const Ray2D & other) const

get the intersection point with 'ray'

Parameters
otherconsidered ray
Returns
intersection point. if it does not exist, the invaidated value vector is returned.

◆ line()

Line2D rcsc::Ray2D::line ( ) const
inline

get line generated from this ray

Returns
new line object

◆ origin()

const Vector2D & rcsc::Ray2D::origin ( ) const
inline

get origin point

Returns
const referenct to the member variable

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