Description

Collaboration diagram for Utilities:

Classes

class  chrono::synchrono::GPScoord
 Wrapper class around ChVector stores GPS points as (lat, long, alt) in degrees. More...
 
class  chrono::synchrono::SynGPSTools
 Holds a SynTerrain along with the GPS coordinate mapped to the origin of the ChVector space. More...
 

Functions

void chrono::synchrono::SetDataPath (const std::string &path)
 Set the path to the SynChrono data directory (ATTENTION: not thread safe)
 
const std::string & chrono::synchrono::GetDataPath ()
 Obtain the current path to the SynChrono data directory (thread safe)
 
std::string chrono::synchrono::GetDataFile (const std::string &filename)
 Obtain the complete path to the specified filename, given relative to the SynChrono data directory (thread safe)
 
Document chrono::synchrono::ReadFileJSON (const std::string &filename)
 Load and return a RapidJSON document from the specified file. More...
 
SYN_API ChVector chrono::synchrono::ReadVectorJSON (const rapidjson::Value &a)
 Load and return a ChVector from the specified JSON array.
 
SYN_API ChQuaternion chrono::synchrono::ReadQuaternionJSON (const rapidjson::Value &a)
 Load and return a ChQuaternion from the specified JSON array.
 
SYN_API ChCoordsys chrono::synchrono::ReadCoordsysJSON (const rapidjson::Value &a, const rapidjson::Value &b)
 Load and return a ChCoordsys from the specified JSON values.
 
VisualizationType chrono::synchrono::ReadVisualizationTypeJSON (const std::string &type)
 Load and return the visualization type from the specified JSON file.
 

Function Documentation

◆ ReadFileJSON()

SYN_API rapidjson::Document chrono::synchrono::ReadFileJSON ( const std::string &  filename)

Load and return a RapidJSON document from the specified file.

A Null document is returned if the file cannot be opened.