chrono::vehicle::ChIrrGuiDriverTTR Class Reference

Description

Irrlicht-based GUI driver for the a track test rig.This class implements the functionality required by its base ChDriverSTR class using keyboard inputs.

As an Irrlicht event receiver, its OnEvent() callback is used to keep track and update the current driver inputs.

#include <ChIrrGuiDriverTTR.h>

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

Public Member Functions

 ChIrrGuiDriverTTR (irrlicht::ChIrrApp &app)
 
void SetThrottleDelta (double delta)
 
void SetDisplacementDelta (double delta)
 
- Public Member Functions inherited from chrono::vehicle::ChDriverTTR
double GetDisplacement (int index) const
 Get the specified post vertical displacement (in the range [-1,+1])
 
double GetThrottle () const
 Get the driver throttle input (in the range [-1,+1])
 

Additional Inherited Members

- Protected Member Functions inherited from chrono::vehicle::ChDriverTTR
void SetDisplacement (int index, double val, double min_val=-1, double max_val=1)
 Overwrite the value for the specified post displacement input.
 
void SetThrottle (double val, double min_val=-1, double max_val=1)
 Overwrite the value for the throttle input.
 
virtual void Initialize (size_t num_posts, const std::vector< double > &locations)
 Initialize this driver system.
 
virtual void Synchronize (double time)
 Update the state of this driver system at the current time.
 
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 SetTimeDelay (double delay)
 Set value of the time delay. More...
 
- Protected Attributes inherited from chrono::vehicle::ChDriverTTR
std::vector< double > m_displ
 current values of post displacements
 
double m_throttle
 current value of throttle input
 
double m_delay
 time delay before generating inputs
 
std::vector< double > m_locations
 post locations in X direction
 
std::string m_log_filename
 name of output file for recording driver inputs