chrono::vehicle::ChTrackTestRigInteractiveDriver Class Reference
Description
Interactive driver for a track test rig.
This class implements support for keyboard control of a track test rig, but is independent of a particular implementation of a keyboard event handler.
#include <ChTrackTestRigInteractiveDriver.h>
Inheritance diagram for chrono::vehicle::ChTrackTestRigInteractiveDriver:

Collaboration diagram for chrono::vehicle::ChTrackTestRigInteractiveDriver:

Public Member Functions | |
| double | GetPost () |
| Get the displacement for current actuated post. | |
| void | NextPost () |
| Change current actuated post to next (cycle as needed). | |
| void | PreviousPost () |
| Change current actuated post to previous (cycle as needed). | |
| void | IncreasePost () |
| Increment displacement of current actuated post. | |
| void | DecreasePost () |
| Decrement displacement of current actuated post. | |
| void | IncreaseThrottle () |
| Increase Throttle. | |
| void | DecreaseThrottle () |
| Decrease Throttle. | |
| void | SetDisplacementDelta (double delta) |
| Set the time response for post displacement control. More... | |
| void | SetThrottleDelta (double delta) |
| Set the time response for throttle control. More... | |
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. More... | |
| virtual bool | Ended () const |
| Return true when driver stopped producing inputs. | |
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. | |
| 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::ChTrackTestRigDriver | |
| int | m_nposts |
| number of actuated posts | |
| 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 | |
Member Function Documentation
◆ SetDisplacementDelta()
|
inline |
Set the time response for post displacement control.
This value represents the time (in seconds) for changing the displacement input from 0 to 1 (or 0 to -1). Default: 1/250.
◆ SetThrottleDelta()
|
inline |
Set the time response for throttle control.
This value represents the time (in seconds) for changing the throttle input from 0 to 1. Default: 1/50.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_vehicle/tracked_vehicle/test_rig/ChTrackTestRigInteractiveDriver.h
- /builds/uwsbel/chrono/src/chrono_vehicle/tracked_vehicle/test_rig/ChTrackTestRigInteractiveDriver.cpp
Public Member Functions inherited from