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

#include <LidarData.h>

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

Public Member Functions

 LidarData (uint32_t ChannelCount=0u)
 
LidarDataoperator= (LidarData &&)=default
 
virtual void ResetMemory (std::vector< uint32_t > points_per_channel)
 
void WritePointSync (LidarDetection &detection)
 
virtual void WritePointSync (SemanticLidarDetection &detection)
 
 ~LidarData ()=default
 
- Public Member Functions inherited from carla::sensor::data::SemanticLidarData
uint32_t GetChannelCount () const
 
float GetHorizontalAngle () const
 
SemanticLidarDataoperator= (SemanticLidarData &&)=default
 
 SemanticLidarData (uint32_t ChannelCount=0u)
 
void SetHorizontalAngle (float angle)
 
virtual void WriteChannelCount (std::vector< uint32_t > points_per_channel)
 
virtual ~SemanticLidarData ()
 

Private Attributes

std::vector< float > _points
 

Friends

class carla::ros2::ROS2
 
class s11n::LidarHeaderView
 
class s11n::LidarSerializer
 

Additional Inherited Members

- Protected Types inherited from carla::sensor::data::SemanticLidarData
enum  Index : size_t { HorizontalAngle, ChannelCount, SIZE }
 
- Protected Attributes inherited from carla::sensor::data::SemanticLidarData
std::vector< uint32_t > _header
 
uint32_t _max_channel_points
 

Detailed Description

Definition at line 76 of file LidarData.h.

Constructor & Destructor Documentation

◆ LidarData()

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

Definition at line 79 of file LidarData.h.

◆ ~LidarData()

carla::sensor::data::LidarData::~LidarData ( )
default

Member Function Documentation

◆ operator=()

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

◆ ResetMemory()

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

Reimplemented from carla::sensor::data::SemanticLidarData.

Definition at line 87 of file LidarData.h.

References DEBUG_ASSERT, and PropAttributes::SIZE.

Referenced by ARayCastLidar::ComputeAndSaveDetections().

+ Here is the caller graph for this function:

◆ WritePointSync() [1/2]

void carla::sensor::data::LidarData::WritePointSync ( LidarDetection detection)
inline

Definition at line 98 of file LidarData.h.

References carla::sensor::data::LidarDetection::intensity, carla::sensor::data::LidarDetection::point, carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.

Referenced by ARayCastLidar::ComputeAndSaveDetections().

+ Here is the caller graph for this function:

◆ WritePointSync() [2/2]

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

Reimplemented from carla::sensor::data::SemanticLidarData.

Definition at line 105 of file LidarData.h.

References DEBUG_ASSERT.

Friends And Related Function Documentation

◆ carla::ros2::ROS2

friend class carla::ros2::ROS2
friend

Definition at line 115 of file LidarData.h.

◆ s11n::LidarHeaderView

friend class s11n::LidarHeaderView
friend

Definition at line 114 of file LidarData.h.

◆ s11n::LidarSerializer

friend class s11n::LidarSerializer
friend

Definition at line 113 of file LidarData.h.

Member Data Documentation

◆ _points

std::vector<float> carla::sensor::data::LidarData::_points
private

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