![]() |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
#include <stoplinedetection.hpp>


Public Member Functions | |
| StopLineDetection () | |
| ~StopLineDetection () | |
Private Member Functions | |
| void | on_stop_line_detection_callback (sensor_msgs::msg::Image::SharedPtr msg) |
| bool | detect_startline (cv::Mat &image, std_msgs::msg::Header const &header) |
| bool | detect_stopline (cv::Mat &image, std_msgs::msg::Header const &header) |
| rcl_interfaces::msg::SetParametersResult | new_parameters_callback (const std::vector< rclcpp::Parameter > ¶meters) |
Additional Inherited Members | |
Protected Member Functions inherited from GalaxisNode | |
| GalaxisNode ()=delete | |
| GalaxisNode (std::string p_name, unsigned int p_heartbeatTimePeriod) | |
| GalaxisNode (std::string p_name) | |
| template<typename MsgSPtr > | |
| void | tickSub (std::map< galaxis::serviceStates::State, std::function< void(const MsgSPtr)>> const *p_functionMapPtr, MsgSPtr const p_message) |
| template<typename... Args> | |
| void | tickPub (std::map< galaxis::serviceStates::State, std::function< void(Args...)>> const *p_functionMapPtr, Args... p_args) |
| void | register_callback (std::function< void(galaxis::serviceStates::State)> p_function) |
| void | service_state_callback (ServiceStateType::SharedPtr const p_msgSPtr) |
| galaxis::serviceStates::State | get_current_service_state () const |
| void | enable_parameters (std::function< rcl_interfaces::msg::SetParametersResult(const std::vector< rclcpp::Parameter > &)> callbackFunc) |
| void | create_parameters (std::shared_ptr< json > configJsonSPtr) |
| json const & | get_global_settings () |
Definition at line 24 of file stoplinedetection.hpp.
| StopLineDetection::StopLineDetection | ( | ) |
Definition at line 34 of file stoplinedetection.cpp.
References GalaxisNode::enable_parameters(), GalaxisNode::get_global_settings(), galaxis::camera::getOptimalCameraMatrix(), galaxis::camera::getPerspectiveTransform(), galaxis::utils::log(), m_debugMode, m_simulationMode, m_startlineDetectionMode, m_startLineImagePublisher, m_stopLineDetectionMode, m_stopLineImagePublisher, m_StopLineImageSubscriber, m_stopLinePublisherSPtr, new_parameters_callback(), newCameraMatrix, on_stop_line_detection_callback(), perspectiveTransformMatrix, and galaxis::utils::read_json_file().

| StopLineDetection::~StopLineDetection | ( | ) |
Definition at line 80 of file stoplinedetection.cpp.
|
private |
Parameters for Shi-Tomasi algorithm
Apply corner detection
Draw corners detected
Definition at line 212 of file stoplinedetection.cpp.
References galaxis::utils::MicroStopwatch::get_milliseconds(), galaxis::utils::log_debug(), m_debugMode, m_startLineBlockSize, m_startLineClusterEps, m_startLineGreynessLowerThreshold, m_startLineImagePublisher, m_startLineK, m_startLineMinDistance, m_startLinePointsCountThreshold, and m_startLineQualityLevel.
Referenced by on_stop_line_detection_callback().


|
private |
Apply Canny edge detector
Show the result
Definition at line 148 of file stoplinedetection.cpp.
References galaxis::utils::log_debug(), m_debugMode, m_stopLineHoughMaxLineGap, m_stopLineHoughMinLineLength, m_stopLineHoughThreshold, and m_stopLineImagePublisher.
Referenced by on_stop_line_detection_callback().


|
private |
Definition at line 278 of file stoplinedetection.cpp.
References galaxis::utils::log(), galaxis::utils::log_warning(), m_startLineBlockSize, m_startLineClusterEps, m_startLineGreynessLowerThreshold, m_startLineK, m_startLineMinDistance, m_startLinePointsCountThreshold, m_startLineQualityLevel, m_stopLineHoughMaxLineGap, m_stopLineHoughMinLineLength, and m_stopLineHoughThreshold.
Referenced by StopLineDetection().


|
private |
Definition at line 82 of file stoplinedetection.cpp.
References detect_startline(), detect_stopline(), galaxis::utils::MicroStopwatch::get_milliseconds(), galaxis::utils::log(), m_startlineDetectionMode, m_stopLineDetectionMode, m_stopLinePublisherSPtr, galaxis::camera::matrixD_mtx, galaxis::camera::matrixK_dist, newCameraMatrix, and perspectiveTransformMatrix.
Referenced by StopLineDetection().


|
private |
Definition at line 27 of file stoplinedetection.hpp.
Referenced by detect_startline(), detect_stopline(), and StopLineDetection().
|
private |
Definition at line 31 of file stoplinedetection.hpp.
|
private |
Definition at line 32 of file stoplinedetection.hpp.
|
private |
Definition at line 34 of file stoplinedetection.hpp.
|
private |
Definition at line 33 of file stoplinedetection.hpp.
|
private |
Definition at line 35 of file stoplinedetection.hpp.
|
private |
Definition at line 26 of file stoplinedetection.hpp.
Referenced by StopLineDetection().
|
private |
Definition at line 56 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 58 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 28 of file stoplinedetection.hpp.
Referenced by on_stop_line_detection_callback(), and StopLineDetection().
|
private |
Definition at line 53 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 40 of file stoplinedetection.hpp.
Referenced by detect_startline(), and StopLineDetection().
|
private |
Definition at line 57 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 55 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 59 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 54 of file stoplinedetection.hpp.
Referenced by detect_startline(), and new_parameters_callback().
|
private |
Definition at line 47 of file stoplinedetection.hpp.
|
private |
Definition at line 29 of file stoplinedetection.hpp.
Referenced by on_stop_line_detection_callback(), and StopLineDetection().
|
private |
Definition at line 50 of file stoplinedetection.hpp.
Referenced by detect_stopline(), and new_parameters_callback().
|
private |
Definition at line 49 of file stoplinedetection.hpp.
Referenced by detect_stopline(), and new_parameters_callback().
|
private |
Definition at line 51 of file stoplinedetection.hpp.
Referenced by detect_stopline(), and new_parameters_callback().
|
private |
Definition at line 39 of file stoplinedetection.hpp.
Referenced by detect_stopline(), and StopLineDetection().
|
private |
Definition at line 45 of file stoplinedetection.hpp.
Referenced by StopLineDetection().
|
private |
Definition at line 42 of file stoplinedetection.hpp.
Referenced by on_stop_line_detection_callback(), and StopLineDetection().
|
private |
Definition at line 61 of file stoplinedetection.hpp.
Referenced by on_stop_line_detection_callback(), and StopLineDetection().
|
private |
Definition at line 62 of file stoplinedetection.hpp.
Referenced by on_stop_line_detection_callback(), and StopLineDetection().