chrono::vehicle::WheeledVehicle Class Reference

Description

Wheeled vehicle model constructed from a JSON specification file.

#include <WheeledVehicle.h>

Inheritance diagram for chrono::vehicle::WheeledVehicle:
Collaboration diagram for chrono::vehicle::WheeledVehicle:

Public Member Functions

 WheeledVehicle (const std::string &filename, ChMaterialSurfaceBase::ContactMethod contact_method=ChMaterialSurfaceBase::DVI)
 
 WheeledVehicle (ChSystem *system, const std::string &filename)
 
virtual int GetNumberAxles () const override
 Return the number of axles for this vehicle.
 
virtual void Initialize (const ChCoordsys<> &chassisPos, double chassisFwdVel=0) override
 Initialize this vehicle at the specified global location and orientation.
 
- Public Member Functions inherited from chrono::vehicle::ChWheeledVehicle
 ChWheeledVehicle (ChMaterialSurfaceBase::ContactMethod contact_method=ChMaterialSurfaceBase::DVI)
 Construct a vehicle system with a default ChSystem.
 
 ChWheeledVehicle (ChSystem *system)
 Construct a vehicle system using the specified ChSystem.
 
virtual ~ChWheeledVehicle ()
 Destructor.
 
std::shared_ptr< ChSuspensionGetSuspension (int id) const
 Get the specified suspension subsystem.
 
std::shared_ptr< ChSteeringGetSteering (int id)
 Get the specified steering subsystem.
 
std::shared_ptr< ChWheelGetWheel (const WheelID &wheel_id) const
 Get a handle to the specified vehicle wheel subsystem.
 
std::shared_ptr< ChBrakeGetBrake (const WheelID &wheel_id) const
 Get a handle to the specified vehicle brake subsystem.
 
std::shared_ptr< ChDrivelineGetDriveline () const
 Get a handle to the vehicle's driveline subsystem.
 
virtual double GetVehicleMass () const override
 Get the vehicle total mass. More...
 
virtual std::shared_ptr< ChShaftGetDriveshaft () const override
 Get a handle to the vehicle's driveshaft body.
 
virtual double GetDriveshaftSpeed () const override
 Get the angular speed of the driveshaft. More...
 
std::shared_ptr< ChBodyGetWheelBody (const WheelID &wheelID) const
 Get a handle to the specified wheel body.
 
const ChVectorGetWheelPos (const WheelID &wheel_id) const
 Get the global location of the specified wheel.
 
const ChQuaternionGetWheelRot (const WheelID &wheel_id) const
 Get the orientation of the specified wheel. More...
 
const ChVectorGetWheelLinVel (const WheelID &wheel_id) const
 Get the linear velocity of the specified wheel. More...
 
ChVector GetWheelAngVel (const WheelID &wheel_id) const
 Get the angular velocity of the specified wheel. More...
 
double GetWheelOmega (const WheelID &wheel_id) const
 Get the angular speed of the specified wheel. More...
 
WheelState GetWheelState (const WheelID &wheel_id) const
 Get the complete state for the specified wheel. More...
 
void SetSuspensionVisualizationType (VisualizationType vis)
 Set visualization type for the suspension subsystems. More...
 
void SetSteeringVisualizationType (VisualizationType vis)
 Set visualization type for the steering subsystems. More...
 
void SetWheelVisualizationType (VisualizationType vis)
 Set visualization type for the wheel subsystems. More...
 
virtual void Synchronize (double time, double steering, double braking, double powertrain_torque, const TireForces &tire_forces)
 Update the state of this vehicle at the current time. More...
 
virtual void LogConstraintViolations () override
 Log current constraint violations.
 
- Public Member Functions inherited from chrono::vehicle::ChVehicle
virtual ~ChVehicle ()
 Destructor.
 
ChSystemGetSystem ()
 Get a pointer to the Chrono ChSystem.
 
double GetChTime () const
 Get the current simulation time of the underlying ChSystem.
 
std::shared_ptr< ChChassisGetChassis () const
 Get a handle to the vehicle's chassis subsystem.
 
std::shared_ptr< ChBodyAuxRefGetChassisBody () const
 Get a handle to the vehicle's chassis body.
 
const ChVectorGetVehiclePos () const
 Get the vehicle location. More...
 
const ChQuaternionGetVehicleRot () const
 Get the vehicle orientation. More...
 
double GetVehicleSpeed () const
 Get the vehicle speed. More...
 
double GetVehicleSpeedCOM () const
 Get the speed of the chassis COM. More...
 
ChVector GetVehicleAcceleration (const ChVector<> &locpos) const
 Get the acceleration at the specified point. More...
 
ChVector GetDriverPos () const
 Get the global location of the driver.
 
void SetChassisVisualizationType (VisualizationType vis)
 Set visualization mode for the chassis subsystem.
 
virtual void Advance (double step)
 Advance the state of this vehicle by the specified time step.
 
void SetStepsize (double val)
 Set the integration step size for the vehicle system.
 
double GetStepsize () const
 Get the current value of the integration step size for the vehicle system.
 

Additional Inherited Members

- Protected Member Functions inherited from chrono::vehicle::ChVehicle
 ChVehicle (ChMaterialSurfaceBase::ContactMethod contact_method=ChMaterialSurfaceBase::DVI)
 Construct a vehicle system with a default ChSystem.
 
 ChVehicle (ChSystem *system)
 Construct a vehicle system using the specified ChSystem.
 
- Protected Attributes inherited from chrono::vehicle::ChWheeledVehicle
ChSuspensionList m_suspensions
 list of handles to suspension subsystems
 
ChAntirollbarList m_antirollbars
 list of handles to antirollbar subsystems (optional)
 
std::shared_ptr< ChDrivelinem_driveline
 handle to the driveline subsystem
 
ChSteeringList m_steerings
 list of handles to steering subsystems
 
ChWheelList m_wheels
 list of handles to wheel subsystems
 
ChBrakeList m_brakes
 list of handles to brake subsystems
 
- Protected Attributes inherited from chrono::vehicle::ChVehicle
ChSystemm_system
 pointer to the Chrono system
 
bool m_ownsSystem
 true if system created at construction
 
std::shared_ptr< ChChassism_chassis
 handle to the chassis subsystem
 
double m_stepsize
 integration step-size for the vehicle system