chrono::sensor::Sensor Class Reference

Description

Sensor class for constructing sensors from a JSON specification file.

#include <Sensor.h>

Inheritance diagram for chrono::sensor::Sensor:
Collaboration diagram for chrono::sensor::Sensor:

Static Public Member Functions

static std::shared_ptr< ChSensorCreateFromJSON (const std::string &filename, std::shared_ptr< chrono::ChBody > parent, chrono::ChFrame< double > offsetPose)
 Create sensor from specified JSON file. More...
 

Member Function Documentation

◆ CreateFromJSON()

CH_SENSOR_API std::shared_ptr< ChSensor > chrono::sensor::Sensor::CreateFromJSON ( const std::string &  filename,
std::shared_ptr< chrono::ChBody parent,
chrono::ChFrame< double >  offsetPose 
)
static

Create sensor from specified JSON file.

Parameters
filenamePath and filename for the JSON file.
parentThe parent on which the sensor should be attached.
offsetPoseThe position and rotation of the Sensor

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