chrono::parsers::ChParserVehicleYAML Class Reference
Description
Utility class to parse a YAML specification file for a vehicle model.
#include <ChParserVehicleYAML.h>
Inheritance diagram for chrono::parsers::ChParserVehicleYAML:

Collaboration diagram for chrono::parsers::ChParserVehicleYAML:

Public Types | |
enum | VehicleType { WHEELED, TRACKED } |
![]() | |
enum | DataPathType { ABS, REL } |
Public Member Functions | |
ChParserVehicleYAML (const std::string &yaml_model_filename, const std::string &yaml_sim_filename, bool verbose=false) | |
Create a YAML parser and load the model from the specified input YAML file. | |
bool | HasSimulationData () const |
Return true if a YAML simulation file has been loaded. | |
bool | HasModelData () const |
Return true if a YAML model file has been loaded. | |
double | GetTimestep () const |
double | GetEndtime () const |
bool | EnforceRealtime () const |
bool | Render () const |
double | GetRenderFPS () const |
CameraVerticalDir | GetCameraVerticalDir () const |
const ChVector3d & | GetCameraLocation () const |
const ChVector3d & | GetCameraTarget () const |
bool | EnableShadows () const |
std::shared_ptr< ChSystem > | CreateSystem () |
Create and return a Chrono system configured from cached simulation parameters. | |
void | LoadModelFile (const std::string &yaml_filename) |
Load the specified vehicle model input YAML file. | |
VehicleType | GetVehicleType () const |
Get vehicle type (from specified vehicleJSON file). | |
std::string | GetVehicleTypeAsString () const |
Get vehicle type as a string. | |
void | CreateVehicle (ChSystem &sys) |
Populate the given system with the cached Chrono::Vehicle model. | |
std::shared_ptr< vehicle::ChVehicle > | GetVehicle () const |
Return the underlying vehicle model. | |
std::shared_ptr< vehicle::RigidTerrain > | GetTerrain () const |
Return the underlying rigid terrain (may be null). | |
const ChVector3d & | GetChassisPoint () const |
double | GetChaseDistance () const |
double | GetChaseHeight () const |
![]() | |
void | SetVerbose (bool verbose) |
Set verbose terminal output (default: false). | |
void | SetOutputDir (const std::string &out_dir) |
Set root output directory (default: ""). | |
const std::string & | GetName () const |
Return the name of the YAML model. | |
virtual bool | Output () const |
Return true if generating output. | |
ChOutput::Type | GetOutputType () const |
Return the output type. | |
virtual double | GetOutputFPS () const |
Return the output frequency. | |
virtual void | SaveOutput (int frame) |
Save simulation output results at the current time. | |
Additional Inherited Members | |
![]() | |
std::string | GetDatafilePath (const std::string &filename) |
Return the path to the specified data file. | |
![]() | |
static void | CheckVersion (const YAML::Node &a) |
static std::string | ToUpper (std::string in) |
static DataPathType | ReadDataPathType (const YAML::Node &a) |
Read the data path type (absolute or relative). | |
static ChVector3d | ReadVector (const YAML::Node &a) |
Load and return a ChVector3d from the specified node. | |
static ChQuaterniond | ReadQuaternion (const YAML::Node &a) |
Load and return a ChQuaternion from the specified node. | |
static ChQuaterniond | ReadCardanAngles (const YAML::Node &a, bool use_degrees) |
Load a Cardan angle sequence from the specified node and return as a quaternion. More... | |
static ChQuaterniond | ReadRotation (const YAML::Node &a, bool use_degrees) |
Return a quaternion loaded from the specified node. More... | |
static ChCoordsysd | ReadCoordinateSystem (const YAML::Node &a, bool use_degrees) |
Load and return a coordinate system from the specified node. | |
static std::shared_ptr< ChFunction > | ReadFunction (const YAML::Node &a, bool use_degrees) |
Load and return a ChFunction object from the specified node. | |
static ChColor | ReadColor (const YAML::Node &a) |
Load and return a ChColor from the specified node. | |
static ChOutput::Type | ReadOutputType (const YAML::Node &a) |
static ChOutput::Mode | ReadOutputMode (const YAML::Node &a) |
static void | PrintNodeType (const YAML::Node &node) |
Print YAML node type. | |
![]() | |
std::string | m_name |
name of the YAML model | |
bool | m_verbose |
verbose terminal output (default: false) | |
bool | m_use_degrees |
all angles given in degrees (default: true) | |
std::string | m_output_dir |
root oputput directory | |
std::shared_ptr< ChOutput > | m_output_db |
output database | |
DataPathType | m_data_path |
std::string | m_rel_path |
std::string | m_script_directory |
OutputParameters | m_output |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserVehicleYAML.h
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserVehicleYAML.cpp