Steering and Slip angles output



  • Can anyone share how to output hand wheel steering angle and slip angles through python API? I'm looking for something similar to anv.GetProperty. Thanks in advance.



  • Here is how to out put Steering Angle and Slip Angles. Thanks to Cale Campbell and John Brabbs.

    vehicleDescriptor = anv.GetObjectDescriptorByTypeAndName('Vehicle','MRZR5')
    vehChildren = list(anv.EnumerateChildrenObjects(vehicleDescriptor.id))
    allWheels = list(anv.EnumerateObjectsByType('ODE Wheel'))
    vehWheels = [x for x in list(allWheels) if x.name in[y.name for y in vehChildren]]
    SteergAng = [(wheel.name,anv.GetProperty(wheel.id,'Steering Angle')) for wheel in vehWheels]
    print SteergAng
    slipAngles = [(wheel.name,anv.GetProperty(wheel.id,'Slip Angle')) for wheel in vehWheels]
    for item in slipAngles:
    print item

    Next is Hand wheel steering angle :-)


Log in to reply
 

Looks like your connection to ANVEL Forum was lost, please wait while we try to reconnect.