chrono::vehicle::ChTrackTestRigRoadDriver Class Reference

Description

Driver inputs for a track test rig based on road profile.

A driver model based on a user-specified road profile. Post displacements are computed based on current road height at each post location and a given translation speed of the road profile. The road profile input data is assumed to contain (x,z) pairs, with x locations in increasing order.

#include <ChTrackTestRigRoadDriver.h>

Inheritance diagram for chrono::vehicle::ChTrackTestRigRoadDriver:
Collaboration diagram for chrono::vehicle::ChTrackTestRigRoadDriver:

Public Member Functions

 ChTrackTestRigRoadDriver (const std::string &filename, double speed)
 Construct using data from the specified file.
 
virtual bool Ended () const override
 Return true when driver stopped producing inputs (end of data).
 
- Public Member Functions inherited from chrono::vehicle::ChTrackTestRigDriver
double GetDisplacement (int index) const
 Get the specified post vertical displacement (in the range [-1,+1])
 
double GetDisplacementSpeed (int index) const
 Get the specified post vertical displacement rate of change.
 
double GetThrottle () const
 Get the driver throttle input (in the range [-1,+1])
 
bool Started () const
 Return false while driver inputs are ignored (while the rig is reaching the ride height configuration) and true otherwise.
 

Additional Inherited Members

- Protected Member Functions inherited from chrono::vehicle::ChTrackTestRigDriver
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.
 
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.
 
- Protected Attributes inherited from chrono::vehicle::ChTrackTestRigDriver
std::vector< double > m_displ
 current values of post displacements
 
std::vector< double > m_displSpeed
 current value of post displacement rates of change
 
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
 

Constructor & Destructor Documentation

◆ ChTrackTestRigRoadDriver()

chrono::vehicle::ChTrackTestRigRoadDriver::ChTrackTestRigRoadDriver ( const std::string & filename,
double speed )

Construct using data from the specified file.

Parameters
filenamename of data file
speedtranslation speed

Member Function Documentation

◆ Ended()

bool chrono::vehicle::ChTrackTestRigRoadDriver::Ended ( ) const
overridevirtual

Return true when driver stopped producing inputs (end of data).

Reimplemented from chrono::vehicle::ChTrackTestRigDriver.


The documentation for this class was generated from the following files:
  • C:/M/B/src/chrono-9.0.1/src/chrono_vehicle/tracked_vehicle/test_rig/ChTrackTestRigRoadDriver.h
  • C:/M/B/src/chrono-9.0.1/src/chrono_vehicle/tracked_vehicle/test_rig/ChTrackTestRigRoadDriver.cpp