chrono::vehicle::WheelID Class Reference

Description

Class to encode the ID of a vehicle wheel.

By convention, wheels are counted front to rear and left to right. In other words, for a vehicle with 2 axles, the order is: front-left, front-right, rear-left, rear-right.

#include <ChSubsysDefs.h>

Public Member Functions

 WheelID (int id)
 
 WheelID (int axle, VehicleSide side)
 
int id () const
 Return the wheel ID.
 
int axle () const
 Return the axle index for this wheel ID. More...
 
VehicleSide side () const
 Return the side for this wheel ID. More...
 

Member Function Documentation

int chrono::vehicle::WheelID::axle ( ) const

Return the axle index for this wheel ID.

Axles are counted from the front of the vehicle.

VehicleSide chrono::vehicle::WheelID::side ( ) const

Return the side for this wheel ID.

By convention, left is 0 and right is 1.