chrono::vehicle::ChIrrGuiDriverTTR Class Reference


Irrlicht-based GUI driver for the a track test rig.

This class extends the ChIrrGuiDriver for a vehicle with controls for the shaker posts.

#include <ChIrrGuiDriverTTR.h>

Inheritance diagram for chrono::vehicle::ChIrrGuiDriverTTR:
Collaboration diagram for chrono::vehicle::ChIrrGuiDriverTTR:

Public Member Functions

 ChIrrGuiDriverTTR (ChVehicleIrrApp &app, double displacement_limit=0.1)
double GetDisplacement () const
 Get the post vertical displacement.
virtual bool OnEvent (const irr::SEvent &event) override
 Override for OnEvent.
void SetDisplacementDelta (double delta)
- Public Member Functions inherited from chrono::vehicle::ChIrrGuiDriver
 ChIrrGuiDriver (ChVehicleIrrApp &app)
 Construct an Irrlicht GUI driver. More...
virtual void Synchronize (double time) override
 Update the state of this driver system at the specified time.
void SetThrottleDelta (double delta)
 Set the time response for throttle control. More...
void SetSteeringDelta (double delta)
 Set the time response for steering control. More...
void SetBrakingDelta (double delta)
 Set the time response for braking control. More...
void SetInputDataFile (const std::string &filename)
 Set the input file for the underlying data driver.
void SetInputMode (InputMode mode)
 Set the current functioning mode.
std::string GetInputModeAsString () const
 Return the current functioning mode as a string.
- Public Member Functions inherited from chrono::vehicle::ChDriver
 ChDriver (ChVehicle &vehicle)
double GetThrottle () const
 Get the driver throttle input (in the range [0,1])
double GetSteering () const
 Get the driver steering input (in the range [-1,+1])
double GetBraking () const
 Get the driver braking input (in the range [0,1])
virtual void Initialize ()
 Initialize this driver system.
virtual void Advance (double step)
 Advance the state of this driver system by the specified time step.
bool LogInit (const std::string &filename)
 Initialize output file for recording driver inputs.
bool Log (double time)
 Record the current driver inputs to the log file.
void SetSteering (double val, double min_val=-1, double max_val=1)
 Overwrite the value for the driver steering input.
void SetThrottle (double val, double min_val=0, double max_val=1)
 Overwrite the value for the driver throttle input.
void SetBraking (double val, double min_val=0, double max_val=1)
 Overwrite the value for the driver braking input.

Additional Inherited Members

- Public Types inherited from chrono::vehicle::ChIrrGuiDriver
 Functioning modes for a ChIrrGuiDriver. More...
- Protected Attributes inherited from chrono::vehicle::ChIrrGuiDriver
double m_throttleDelta
double m_steeringDelta
double m_brakingDelta
int m_dT
InputMode m_mode
double m_time_shift
std::shared_ptr< ChDataDriverm_data_driver
- Protected Attributes inherited from chrono::vehicle::ChDriver
 reference to associated vehicle
double m_throttle
 current value of throttle input
double m_steering
 current value of steering input
double m_braking
 current value of braking input

Constructor & Destructor Documentation

chrono::vehicle::ChIrrGuiDriverTTR::ChIrrGuiDriverTTR ( ChVehicleIrrApp app,
double  displacement_limit = 0.1 
apphandle to the vehicle Irrlicht application
displacement_limitlimits for post displacement