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


Public Member Functions | |
| LaneDetectionGT () | |
| ~LaneDetectionGT () | |
Private Member Functions | |
| void | groundtruthLeftLineCallback (visualization_msgs::msg::Marker::SharedPtr p_message) |
| void | groundtruthCenterLineCallback (visualization_msgs::msg::Marker::SharedPtr p_message) |
| void | groundtruthRightLineCallback (visualization_msgs::msg::Marker::SharedPtr p_message) |
| void | groundtruthCallback (visualization_msgs::msg::Marker::SharedPtr p_message, LINE_TYPE type) |
| void | groundtruthObstacleCallback (visualization_msgs::msg::Marker::SharedPtr p_message) |
| void | carPoseCallback (geometry_msgs::msg::Pose::SharedPtr p_message) |
| void | checkReady () |
| void | loop () |
Private Attributes | |
| Vector2i | m_lineImageWindowSize |
| MapDataLayer | m_mapDataLayer |
| int | m_simulatedLDFPSWaitingTimeMicroseconds = 1000 |
| bool | m_ready = false |
| float | m_obstacleDetectionDistanceCM = 200.f |
| int | m_groundtruthTileIteratorLeftLine = 1 |
| int | m_groundtruthTileIteratorCenterLine = 1 |
| int | m_groundtruthTileIteratorRightLine = 1 |
| std::map< int, Obstacle > | m_obstacleMap |
| std::mutex | m_carPoseMtx |
| Vector2f | m_currentCarPositionCM = Vector2f(-100000,-100000) |
| double | m_currentAbsoluteOrientation = -100000 |
| rclcpp::Time | m_currentCarPoseTimestamp |
| rclcpp::Subscription< visualization_msgs::msg::Marker >::SharedPtr | m_subscriberLeftLineSPtr |
| rclcpp::Subscription< visualization_msgs::msg::Marker >::SharedPtr | m_subscriberMiddleLineSPtr |
| rclcpp::Subscription< visualization_msgs::msg::Marker >::SharedPtr | m_subscriberRightLineSPtr |
| rclcpp::Subscription< visualization_msgs::msg::Marker >::SharedPtr | m_subscriberObstacleSPtr |
| rclcpp::Subscription< geometry_msgs::msg::Pose >::SharedPtr | m_subscriberCarPoseSPtr |
| image_transport::Publisher | m_imgtransPub |
| rclcpp::Publisher< ObstacleListType >::SharedPtr | m_publisherObstacleSPtr |
Definition at line 32 of file LaneDetectionGT.hpp.
| LaneDetectionGT::LaneDetectionGT | ( | ) |
Definition at line 26 of file LaneDetectionGT.cpp.
References carPoseCallback(), groundtruthCenterLineCallback(), groundtruthLeftLineCallback(), groundtruthObstacleCallback(), groundtruthRightLineCallback(), galaxis::utils::log(), loop(), m_imgtransPub, m_lineImageWindowSize, m_obstacleDetectionDistanceCM, m_publisherObstacleSPtr, m_simulatedLDFPSWaitingTimeMicroseconds, m_subscriberCarPoseSPtr, m_subscriberLeftLineSPtr, m_subscriberMiddleLineSPtr, m_subscriberObstacleSPtr, m_subscriberRightLineSPtr, and galaxis::utils::read_configuration().

| LaneDetectionGT::~LaneDetectionGT | ( | ) |
Definition at line 63 of file LaneDetectionGT.cpp.
|
private |
Definition at line 162 of file LaneDetectionGT.cpp.
References m_carPoseMtx, m_currentAbsoluteOrientation, m_currentCarPoseTimestamp, m_currentCarPositionCM, MATH_PI_DOUBLE, and galaxis::autopilot::simluationCarPositionOffsetToFrontAxisM.
Referenced by LaneDetectionGT().

|
private |
Definition at line 195 of file LaneDetectionGT.cpp.
References galaxis::utils::log(), m_currentAbsoluteOrientation, m_currentCarPositionCM, m_groundtruthTileIteratorCenterLine, m_groundtruthTileIteratorLeftLine, m_groundtruthTileIteratorRightLine, and m_ready.
Referenced by groundtruthCallback().


|
private |
Definition at line 79 of file LaneDetectionGT.cpp.
References CENTER_LINE, checkReady(), LEFT_LINE, galaxis::utils::log(), galaxis::utils::log_warning(), m_groundtruthTileIteratorCenterLine, m_groundtruthTileIteratorLeftLine, m_groundtruthTileIteratorRightLine, m_mapDataLayer, m_ready, RIGHT_LINE, and MapDataLayer::updateMap().
Referenced by groundtruthCenterLineCallback(), groundtruthLeftLineCallback(), and groundtruthRightLineCallback().


|
private |
Definition at line 71 of file LaneDetectionGT.cpp.
References CENTER_LINE, and groundtruthCallback().
Referenced by LaneDetectionGT().


|
private |
Definition at line 67 of file LaneDetectionGT.cpp.
References groundtruthCallback(), and LEFT_LINE.
Referenced by LaneDetectionGT().


|
private |
Definition at line 136 of file LaneDetectionGT.cpp.
References galaxis::utils::log(), m_obstacleMap, Obstacle::positionCM, and Obstacle::widthCM.
Referenced by LaneDetectionGT().


|
private |
Definition at line 75 of file LaneDetectionGT.cpp.
References groundtruthCallback(), and RIGHT_LINE.
Referenced by LaneDetectionGT().


|
private |
Definition at line 206 of file LaneDetectionGT.cpp.
References MapDataLayer::getLineObject(), galaxis::map::data::LinePoints< T >::getPointsXY(), galaxis::autopilot::imageCLinePixelByteIndex, galaxis::autopilot::imageLLinePixelByteIndex, galaxis::autopilot::imageRLinePixelByteIndex, galaxis::utils::log(), galaxis::utils::log_warning(), m_carPoseMtx, m_currentAbsoluteOrientation, m_currentCarPoseTimestamp, m_currentCarPositionCM, m_imgtransPub, m_lineImageWindowSize, m_mapDataLayer, m_obstacleDetectionDistanceCM, m_obstacleMap, m_publisherObstacleSPtr, m_ready, and m_simulatedLDFPSWaitingTimeMicroseconds.
Referenced by LaneDetectionGT().


|
private |
Definition at line 48 of file LaneDetectionGT.hpp.
Referenced by carPoseCallback(), and loop().
|
private |
Definition at line 50 of file LaneDetectionGT.hpp.
Referenced by carPoseCallback(), checkReady(), and loop().
|
private |
Definition at line 51 of file LaneDetectionGT.hpp.
Referenced by carPoseCallback(), and loop().
Definition at line 49 of file LaneDetectionGT.hpp.
Referenced by carPoseCallback(), checkReady(), and loop().
|
private |
Definition at line 43 of file LaneDetectionGT.hpp.
Referenced by checkReady(), and groundtruthCallback().
|
private |
Definition at line 42 of file LaneDetectionGT.hpp.
Referenced by checkReady(), and groundtruthCallback().
|
private |
Definition at line 44 of file LaneDetectionGT.hpp.
Referenced by checkReady(), and groundtruthCallback().
|
private |
Definition at line 63 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT(), and loop().
|
private |
Definition at line 34 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT(), and loop().
|
private |
Definition at line 36 of file LaneDetectionGT.hpp.
Referenced by groundtruthCallback(), and loop().
|
private |
Definition at line 40 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT(), and loop().
|
private |
Definition at line 46 of file LaneDetectionGT.hpp.
Referenced by groundtruthObstacleCallback(), and loop().
|
private |
Definition at line 64 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT(), and loop().
|
private |
Definition at line 39 of file LaneDetectionGT.hpp.
Referenced by checkReady(), groundtruthCallback(), and loop().
|
private |
Definition at line 38 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT(), and loop().
|
private |
Definition at line 60 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT().
|
private |
Definition at line 54 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT().
|
private |
Definition at line 55 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT().
|
private |
Definition at line 58 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT().
|
private |
Definition at line 56 of file LaneDetectionGT.hpp.
Referenced by LaneDetectionGT().