Skip to main content

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

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

Back to the top