CARLA
Public Member Functions | Protected Types | Protected Attributes | Private Attributes | Friends | List of all members
carla::sensor::data::SemanticLidarData Class Reference

#include <SemanticLidarData.h>

+ Inheritance diagram for carla::sensor::data::SemanticLidarData:
+ Collaboration diagram for carla::sensor::data::SemanticLidarData:

Public Member Functions

uint32_t GetChannelCount () const
 
float GetHorizontalAngle () const
 
SemanticLidarDataoperator= (SemanticLidarData &&)=default
 
virtual void ResetMemory (std::vector< uint32_t > points_per_channel)
 
 SemanticLidarData (uint32_t ChannelCount=0u)
 
void SetHorizontalAngle (float angle)
 
virtual void WriteChannelCount (std::vector< uint32_t > points_per_channel)
 
virtual void WritePointSync (SemanticLidarDetection &detection)
 
virtual ~SemanticLidarData ()
 

Protected Types

enum  Index : size_t { HorizontalAngle, ChannelCount, SIZE }
 

Protected Attributes

std::vector< uint32_t > _header
 
uint32_t _max_channel_points
 

Private Attributes

std::vector< SemanticLidarDetection_ser_points
 

Friends

class carla::ros2::ROS2
 
class s11n::SemanticLidarHeaderView
 
class s11n::SemanticLidarSerializer
 

Detailed Description

Definition at line 86 of file SemanticLidarData.h.

Member Enumeration Documentation

◆ Index

Enumerator
HorizontalAngle 
ChannelCount 
SIZE 

Definition at line 90 of file SemanticLidarData.h.

Constructor & Destructor Documentation

◆ SemanticLidarData()

carla::sensor::data::SemanticLidarData::SemanticLidarData ( uint32_t  ChannelCount = 0u)
inlineexplicit

Definition at line 97 of file SemanticLidarData.h.

◆ ~SemanticLidarData()

virtual carla::sensor::data::SemanticLidarData::~SemanticLidarData ( )
inlinevirtual

Definition at line 104 of file SemanticLidarData.h.

Member Function Documentation

◆ GetChannelCount()

uint32_t carla::sensor::data::SemanticLidarData::GetChannelCount ( ) const
inline

Definition at line 114 of file SemanticLidarData.h.

◆ GetHorizontalAngle()

float carla::sensor::data::SemanticLidarData::GetHorizontalAngle ( ) const
inline

Definition at line 106 of file SemanticLidarData.h.

Referenced by ARayCastSemanticLidar::SimulateLidar().

+ Here is the caller graph for this function:

◆ operator=()

SemanticLidarData& carla::sensor::data::SemanticLidarData::operator= ( SemanticLidarData &&  )
default

◆ ResetMemory()

virtual void carla::sensor::data::SemanticLidarData::ResetMemory ( std::vector< uint32_t >  points_per_channel)
inlinevirtual

Reimplemented in carla::sensor::data::LidarData.

Definition at line 118 of file SemanticLidarData.h.

References DEBUG_ASSERT, and PropAttributes::SIZE.

Referenced by ARayCastSemanticLidar::ComputeAndSaveDetections().

+ Here is the caller graph for this function:

◆ SetHorizontalAngle()

void carla::sensor::data::SemanticLidarData::SetHorizontalAngle ( float  angle)
inline

Definition at line 110 of file SemanticLidarData.h.

Referenced by ARayCastSemanticLidar::SimulateLidar().

+ Here is the caller graph for this function:

◆ WriteChannelCount()

virtual void carla::sensor::data::SemanticLidarData::WriteChannelCount ( std::vector< uint32_t >  points_per_channel)
inlinevirtual

Definition at line 129 of file SemanticLidarData.h.

References PropAttributes::SIZE.

Referenced by ARayCastLidar::ComputeAndSaveDetections(), and ARayCastSemanticLidar::ComputeAndSaveDetections().

+ Here is the caller graph for this function:

◆ WritePointSync()

virtual void carla::sensor::data::SemanticLidarData::WritePointSync ( SemanticLidarDetection detection)
inlinevirtual

Reimplemented in carla::sensor::data::LidarData.

Definition at line 134 of file SemanticLidarData.h.

Referenced by ARayCastSemanticLidar::ComputeAndSaveDetections().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ carla::ros2::ROS2

friend class carla::ros2::ROS2
friend

Definition at line 147 of file SemanticLidarData.h.

◆ s11n::SemanticLidarHeaderView

friend class s11n::SemanticLidarHeaderView
friend

Definition at line 145 of file SemanticLidarData.h.

◆ s11n::SemanticLidarSerializer

friend class s11n::SemanticLidarSerializer
friend

Definition at line 146 of file SemanticLidarData.h.

Member Data Documentation

◆ _header

std::vector<uint32_t> carla::sensor::data::SemanticLidarData::_header
protected

◆ _max_channel_points

uint32_t carla::sensor::data::SemanticLidarData::_max_channel_points
protected

Definition at line 140 of file SemanticLidarData.h.

◆ _ser_points

std::vector<SemanticLidarDetection> carla::sensor::data::SemanticLidarData::_ser_points
private

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