CARLA
Loading...
Searching...
No Matches
carla::sensor::data::LidarMeasurement Class Reference

Measurement produced by a Lidar. More...

#include <LidarMeasurement.h>

Inheritance diagram for carla::sensor::data::LidarMeasurement:

Public Member Functions

auto GetChannelCount () const
 Number of channels of the Lidar.
auto GetHorizontalAngle () const
 Horizontal angle of the Lidar at the time of the measurement.
auto GetPointCount (size_t channel) const
 Retrieve the number of points that channel generated.
Public Member Functions inherited from carla::sensor::data::Array< data::LidarDetection >
reference at (size_type pos)
const_reference at (size_type pos) const
iterator begin ()
const_iterator begin () const
const_iterator cbegin () const
const_iterator cend () const
const_reverse_iterator crbegin () const
const_reverse_iterator crend () const
value_type * data ()
const value_type * data () const
bool empty () const
iterator end ()
const_iterator end () const
reference operator[] (size_type pos)
const_reference operator[] (size_type pos) const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
size_type size () const
Public Member Functions inherited from carla::sensor::SensorData
size_t GetFrame () const
 Frame count when the data was generated.
const rpc::Transform & GetSensorTransform () const
 Sensor's transform when the data was generated.
double GetTimestamp () const
 Simulation-time when the data was generated.
virtual ~SensorData ()=default

Protected Types

using Serializer = s11n::LidarSerializer

Protected Member Functions

 LidarMeasurement (RawData &&data)
Protected Member Functions inherited from carla::sensor::data::Array< data::LidarDetection >
 Array (RawData &&data, FuncT get_offset)
 Array (size_t offset, RawData &&data)
const RawData & GetRawData () const
Protected Member Functions inherited from carla::sensor::SensorData
const auto & GetEpisode () const
 SensorData (const RawData &data)
 SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform)

Protected Attributes

friend Serializer

Private Types

using Super = Array<data::LidarDetection>

Private Member Functions

auto GetHeader () const

Additional Inherited Members

Public Types inherited from carla::sensor::data::Array< data::LidarDetection >
using const_iterator
using const_pointer
using const_reference
using const_reverse_iterator
using iterator
using pointer
using reference
using reverse_iterator
using size_type
using value_type

Detailed Description

Measurement produced by a Lidar.

Consists of an array of 3D points plus some extra meta-information about the Lidar.

Definition at line 20 of file LidarMeasurement.h.

Member Typedef Documentation

◆ Serializer

◆ Super

Constructor & Destructor Documentation

◆ LidarMeasurement()

carla::sensor::data::LidarMeasurement::LidarMeasurement ( RawData && data)
inlineexplicitprotected

Member Function Documentation

◆ GetChannelCount()

auto carla::sensor::data::LidarMeasurement::GetChannelCount ( ) const
inline

Number of channels of the Lidar.

Definition at line 47 of file LidarMeasurement.h.

References GetHeader().

◆ GetHeader()

auto carla::sensor::data::LidarMeasurement::GetHeader ( ) const
inlineprivate

◆ GetHorizontalAngle()

auto carla::sensor::data::LidarMeasurement::GetHorizontalAngle ( ) const
inline

Horizontal angle of the Lidar at the time of the measurement.

Definition at line 42 of file LidarMeasurement.h.

References GetHeader().

◆ GetPointCount()

auto carla::sensor::data::LidarMeasurement::GetPointCount ( size_t channel) const
inline

Retrieve the number of points that channel generated.

Points are sorted by channel, so this method allows to identify the channel that generated each point.

Definition at line 54 of file LidarMeasurement.h.

References GetHeader().

Member Data Documentation

◆ Serializer

Definition at line 27 of file LidarMeasurement.h.


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