Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] A vehicle type problem

Hello,
battery model parameters are not re-evaluated when changing a vehicles type. They can only be set at vehicle creation time.
You can modify some model values directly using setParameter calls: http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#Supported_Device_Parameters

regards,
Jakob


2018-09-02 13:46 GMT+02:00 Craig <wenger0815@xxxxxxxxx>:
Hello,

I define the vehicle type,

<vType id="ElectricBus" accel="1.0" decel="1.0" length="12" maxSpeed="100.0">
<param key="maximumBatteryCapacity" value="2000"/>
<param key="maximumPower" value="1000"/>
<param key="vehicleMass" value="10000"/>
<param key="frontSurfaceArea" value="5"/>
<param key="airDragCoefficient" value="0.6"/>
<param key="internalMomentOfInertia" value="0.01"/>
<param key="radialDragCoefficient" value="0.5"/>
<param key="rollDragCoefficient" value="0.01"/>
<param key="constantPowerIntake" value="100"/>
<param key="propulsionEfficiency" value="0.9"/>
<param key="recuperationEfficiency" value="0.9"/>
<param key="stoppingTreshold" value="0.1"/> 
</vType>

then I set the type via traci (traci.vehicle.setType("A", "ElectricBus"))
I can see length and maxSpeed modify the values, but the electric vehicle parameters don't modify. I get the electric vehicle parameters from the Battery.out.xml.

Do I miss some step?



Regards,
Craig

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top