#include <RadarData.h>
Public Member Functions | |
size_t | GetDetectionCount () const |
Returns the number of current detections. More... | |
RadarData & | operator= (RadarData &&)=default |
RadarData ()=default | |
void | Reset () |
Deletes the current detections. More... | |
void | SetResolution (uint32_t resolution) |
Set a new resolution for the RadarData. More... | |
void | WriteDetection (RadarDetection detection) |
Adds a new detection. More... | |
Static Public Attributes | |
static constexpr auto | detection_size = sizeof(RadarDetection) |
Private Attributes | |
std::vector< RadarDetection > | _detections |
Friends | |
class | carla::ros2::ROS2 |
class | s11n::RadarSerializer |
Definition at line 34 of file RadarData.h.
|
explicitdefault |
|
inline |
Returns the number of current detections.
Definition at line 58 of file RadarData.h.
Referenced by carla::ros2::ROS2::ProcessDataFromRadar().
|
inline |
Deletes the current detections.
It doesn't change the resolution nor the allocated memory.
Definition at line 64 of file RadarData.h.
Referenced by ARadar::PostPhysTick().
|
inline |
Set a new resolution for the RadarData.
Allocates / Deallocates space in memory if needed.
Definition at line 49 of file RadarData.h.
Referenced by ARadar::SetPointsPerSecond().
|
inline |
Adds a new detection.
Definition at line 69 of file RadarData.h.
Referenced by ARadar::SendLineTraces().
|
friend |
Definition at line 77 of file RadarData.h.
|
friend |
Definition at line 76 of file RadarData.h.
|
private |
Definition at line 74 of file RadarData.h.
Referenced by carla::ros2::ROS2::ProcessDataFromRadar(), and carla::sensor::s11n::RadarSerializer::Serialize().
|
static |
Definition at line 41 of file RadarData.h.