Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Error when loading a instance of a new vehicle type

Hello,

I would like to test a new type of vehicle named trotinette that means scooter in English to implement his driving on road network.

So I created this new vType based on bicycle vType class within the files SUMOVehicleClass (.h, .cpp) and SUMOVTypeParameter (.cpp). 

Here is the error message that I get when I try loading it with sumo-gui :

Loading done.
Error: Vehicle 'vh1' has no valid route. Edge 'e1' prohibits.
Quitting (on error).

Are there any other major files to modify to make it work? 

Find attached config, net and route files.

Best regards,
Azise

<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 5/16/2019 11:25:59 AM by Eclipse SUMO netedit Version UNKNOWN
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd";>

    <output>
        <output-file value="C:\Users\pdr\Documents\PDR%20SUMO\Troti\trotiNet.net.xml"/>
    </output>

    <processing>
        <offset.disable-normalization value="true"/>
    </processing>

    <junctions>
        <no-turnarounds value="true"/>
    </junctions>

</configuration>
-->

<net version="1.3" junctionCornerDetail="5" limitTurnSpeed="5.50" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd";>

    <location netOffset="0.00,0.00" convBoundary="0.00,0.00,100.00,0.00" origBoundary="10000000000.00,10000000000.00,-10000000000.00,-10000000000.00" projParameter="!"/>

    <edge id="e1" from="n1" to="n2" priority="-1">
        <lane id="e1_0" index="0" speed="13.89" length="100.00" shape="0.00,-1.60 100.00,-1.60"/>
    </edge>

    <junction id="n1" type="dead_end" x="0.00" y="0.00" incLanes="" intLanes="" shape="0.00,0.00 0.00,-3.20"/>
    <junction id="n2" type="dead_end" x="100.00" y="0.00" incLanes="e1_0" intLanes="" shape="100.00,-3.20 100.00,0.00"/>

</net>
<routes>
	<vType id="pkw" length="5" maxSpeed="50" accel="2.6" decel="4.5" sigma="0.2" speedDev="0.2" vClass="passenger"/>
	<vType id="bus" length="15" maxSpeed="30" accel="1.2" decel="2.5" sigma="0.1" speedDev="0.1" vClass="bus"/>
	<vType id="tram" length="40" maxSpeed="13" accel="0.8" decel="0.5" sigma="0.1" speedDev="0.1" vClass="rail_urban"/>
	<vType id="bike" length="1.8" width="0.8" maxSpeed="7.5" accel="0.8" decel="1.5" sigma="0.5" speedDev="0.5" vClass="bicycle"/>
	<vType id="trotinette" vClass="trotinette"/>

	<route id="rte1" edges="e1"/>
	<vehicle id="vh1" type="trotinette" depart="0" route="rte1" departPos="5" arrivalPos="95"/>
</routes>

Attachment: troti.sumocfg
Description: Binary data


Back to the top