chrono::ros::ChROSSensorHandlerUtilities Class Reference

Description

Utility class with static functions that may be useful for sensor-specific ROS handlers.

#include <ChROSSensorHandlerUtilities.h>

Static Public Member Functions

template<class FilterType , const char * FilterName>
static bool CheckSensorHasFilter (std::shared_ptr< chrono::sensor::ChSensor > sensor)
 Check for filter in Sensor filter list. More...
 
template<typename T = double, unsigned long N = 3>
static std::array< T, N *N > CalculateCovariance (const std::array< T, N > &data, const std::array< T, N > &mean, unsigned long count)
 Calculates the covariance of the sensor data. More...
 

Member Function Documentation

◆ CalculateCovariance()

template<typename T = double, unsigned long N = 3>
static std::array<T, N * N> chrono::ros::ChROSSensorHandlerUtilities::CalculateCovariance ( const std::array< T, N > &  data,
const std::array< T, N > &  mean,
unsigned long  count 
)
inlinestatic

Calculates the covariance of the sensor data.

Parameters
datathe sensor data
Returns
the covariance of the sensor data

◆ CheckSensorHasFilter()

template<class FilterType , const char * FilterName>
static bool chrono::ros::ChROSSensorHandlerUtilities::CheckSensorHasFilter ( std::shared_ptr< chrono::sensor::ChSensor sensor)
inlinestatic

Check for filter in Sensor filter list.

Returns true if present, false if not.

Template Parameters
FilterTypethe filter to search for
FilterNamename of the filter to search for

The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_ros/handlers/sensor/ChROSSensorHandlerUtilities.h