chrono::parsers::ChParserVehicleYAML Class Reference
Description
Utility class to parse a YAML specification file for a vehicle model.
#include <ChParserVehicleYAML.h>
Public Types | |
enum | VehicleType { WHEELED, TRACKED } |
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. | |
void | SetVerbose (bool verbose) |
Set verbose temrinal output (default: false). | |
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 |
bool | Output () const |
ChOutput::Type | GetOutputType () const |
double | GetOutputFPS () const |
void | SetOutputDir (const std::string &out_dir) |
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. | |
const std::string & | GetName () const |
Return the name of the YAML vehicle model. | |
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 |
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