ManagedObstacle Class Reference

#include <RobotAPI/components/DynamicObstacleManager/ManagedObstacle.h>

Public Member Functions

void update_position (const unsigned int)
 

Static Public Member Functions

static double calculateObstacleArea (const obstacledetection::Obstacle &o)
 
static bool ComparatorDESCPrt (ManagedObstaclePtr &i, ManagedObstaclePtr &j)
 
static float ellipsis_ellipsis_coverage (const Eigen::Vector2f e1_origin, const float e1_rx, const float e1_ry, const float e1_yaw, const Eigen::Vector2f e2_origin, const float e2_rx, const float e2_ry, const float e2_yaw)
 
static float line_segment_ellipsis_coverage (const Eigen::Vector2f e_origin, const float e_rx, const float e_ry, const float e_yaw, const Eigen::Vector2f line_seg_start, const Eigen::Vector2f line_seg_end)
 
static bool point_ellipsis_coverage (const Eigen::Vector2f e_origin, const float e_rx, const float e_ry, const float e_yaw, const Eigen::Vector2f point)
 

Public Attributes

std::vector< Eigen::Vector2f > line_matches
 
unsigned long m_input_index = 0
 
IceUtil::Time m_last_matched
 
std::shared_mutex m_mutex
 
obstacledetection::Obstacle m_obstacle
 
bool m_published
 
bool m_updated
 
float m_value
 
std::array< std::tuple< double, double, double, double, double >, 6 > position_buffer
 
unsigned int position_buffer_fillctr = 0
 
unsigned int position_buffer_index = 0
 

Detailed Description

Definition at line 49 of file ManagedObstacle.h.

Member Function Documentation

◆ calculateObstacleArea()

double calculateObstacleArea ( const obstacledetection::Obstacle &  o)
static

Definition at line 53 of file ManagedObstacle.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ComparatorDESCPrt()

static bool ComparatorDESCPrt ( ManagedObstaclePtr i,
ManagedObstaclePtr j 
)
inlinestatic

Definition at line 53 of file ManagedObstacle.h.

+ Here is the call graph for this function:

◆ ellipsis_ellipsis_coverage()

float ellipsis_ellipsis_coverage ( const Eigen::Vector2f  e1_origin,
const float  e1_rx,
const float  e1_ry,
const float  e1_yaw,
const Eigen::Vector2f  e2_origin,
const float  e2_rx,
const float  e2_ry,
const float  e2_yaw 
)
static

Definition at line 73 of file ManagedObstacle.cpp.

+ Here is the call graph for this function:

◆ line_segment_ellipsis_coverage()

float line_segment_ellipsis_coverage ( const Eigen::Vector2f  e_origin,
const float  e_rx,
const float  e_ry,
const float  e_yaw,
const Eigen::Vector2f  line_seg_start,
const Eigen::Vector2f  line_seg_end 
)
static

Definition at line 97 of file ManagedObstacle.cpp.

+ Here is the call graph for this function:

◆ point_ellipsis_coverage()

bool point_ellipsis_coverage ( const Eigen::Vector2f  e_origin,
const float  e_rx,
const float  e_ry,
const float  e_yaw,
const Eigen::Vector2f  point 
)
static

Definition at line 58 of file ManagedObstacle.cpp.

+ Here is the call graph for this function:

◆ update_position()

void update_position ( const unsigned int  thickness)

Definition at line 155 of file ManagedObstacle.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ line_matches

std::vector<Eigen::Vector2f> line_matches

Definition at line 79 of file ManagedObstacle.h.

◆ m_input_index

unsigned long m_input_index = 0

Definition at line 82 of file ManagedObstacle.h.

◆ m_last_matched

IceUtil::Time m_last_matched

Definition at line 70 of file ManagedObstacle.h.

◆ m_mutex

std::shared_mutex m_mutex

Definition at line 74 of file ManagedObstacle.h.

◆ m_obstacle

obstacledetection::Obstacle m_obstacle

Definition at line 69 of file ManagedObstacle.h.

◆ m_published

bool m_published

Definition at line 71 of file ManagedObstacle.h.

◆ m_updated

bool m_updated

Definition at line 72 of file ManagedObstacle.h.

◆ m_value

float m_value

Definition at line 73 of file ManagedObstacle.h.

◆ position_buffer

std::array<std::tuple<double, double, double, double, double>, 6> position_buffer

Definition at line 78 of file ManagedObstacle.h.

◆ position_buffer_fillctr

unsigned int position_buffer_fillctr = 0

Definition at line 76 of file ManagedObstacle.h.

◆ position_buffer_index

unsigned int position_buffer_index = 0

Definition at line 77 of file ManagedObstacle.h.


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