chrono::sensor::ChFilterRadarSavePC Class Reference

Description

A filter that, when applied to a sensor, saves point cloud data.

Format will be CSV one point per line, with data as x,y,z,x_vel,y_vel,z_vel,intensity,clusterID

#include <ChFilterRadarSavePC.h>

Inheritance diagram for chrono::sensor::ChFilterRadarSavePC:
Collaboration diagram for chrono::sensor::ChFilterRadarSavePC:

Public Member Functions

 ChFilterRadarSavePC (std::string data_path="", std::string name="ChFilterRadarSavePC")
 Class constructor. More...
 
virtual ~ChFilterRadarSavePC ()
 Class destructor.
 
virtual void Apply ()
 Apply function. Saves point cloud data in CSV file format.
 
virtual void Initialize (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut)
 Initializes all data needed by the filter access apply function. More...
 
- Public Member Functions inherited from chrono::sensor::ChFilter
virtual ~ChFilter ()
 Virtual class desctructor.
 
std::string & Name ()
 Accesses the name of the filter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from chrono::sensor::ChFilter
 ChFilter (std::string name)
 protected constructor for the filter which requires a name as input. More...
 
void InvalidFilterGraphNullBuffer (std::shared_ptr< ChSensor > pSensor)
 Error function for invalid filter graph: null buffer found.
 
void InvalidFilterGraphBufferTypeMismatch (std::shared_ptr< ChSensor > pSensor)
 Error function for invalid filter graph: type mismatch in graph.
 
void InvalidFilterGraphSensorTypeMismatch (std::shared_ptr< ChSensor > pSensor)
 Error function for invalid filter graph: type mismatch in graph.
 

Constructor & Destructor Documentation

◆ ChFilterRadarSavePC()

CH_SENSOR_API chrono::sensor::ChFilterRadarSavePC::ChFilterRadarSavePC ( std::string  data_path = "",
std::string  name = "ChFilterRadarSavePC" 
)

Class constructor.

Parameters
data_pathPath to where data should be saved
nameThe name of the filter

Member Function Documentation

◆ Initialize()

CH_SENSOR_API void chrono::sensor::ChFilterRadarSavePC::Initialize ( std::shared_ptr< ChSensor pSensor,
std::shared_ptr< SensorBuffer > &  bufferInOut 
)
virtual

Initializes all data needed by the filter access apply function.

Parameters
pSensorA pointer to the sensor on which the filter is attached.
bufferInOutA buffer that is passed into the filter.

Implements chrono::sensor::ChFilter.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterRadarSavePC.h
  • /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterRadarSavePC.cpp