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
 

Member Function Documentation

◆ calculateObstacleArea()

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

◆ ComparatorDESCPrt()

static bool ComparatorDESCPrt ( ManagedObstaclePtr & i,
ManagedObstaclePtr & j )
inlinestatic

◆ 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

◆ 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

◆ 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

◆ update_position()

void update_position ( const unsigned int thickness)

Member Data Documentation

◆ line_matches

std::vector<Eigen::Vector2f> line_matches

◆ m_input_index

unsigned long m_input_index = 0

◆ m_last_matched

IceUtil::Time m_last_matched

◆ m_mutex

std::shared_mutex m_mutex

◆ m_obstacle

obstacledetection::Obstacle m_obstacle

◆ m_published

bool m_published

◆ m_updated

bool m_updated

◆ m_value

float m_value

◆ position_buffer

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

◆ position_buffer_fillctr

unsigned int position_buffer_fillctr = 0

◆ position_buffer_index

unsigned int position_buffer_index = 0

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