You also have to control the simulation (trigger the time step calculation) using traci.simulationStep(). Please have a closer look at the tutorials linked below. You can start from there and add small parts if you still struggle...

Regards
Mirko


Am 23.07.2018 um 18:44 schrieb himanshu soni:
Have a look at my code and help me understand what am I doing wrong?

On Mon, Jul 23, 2018 at 10:10 PM himanshu soni <[email protected] <mailto:[email protected]>> wrote:

    I am used to generating using *.net.xml* format and also with
    *NETEDIT, *but I don't understand how to edit a particular network
    scenario using Python, like adding a car to a network. That's what
    I'm looking for.


    On Mon, Jul 23, 2018 at 9:31 PM Jakob Erdmann
    <[email protected] <mailto:[email protected]>> wrote:

        Please take a closer look at the tutorials. They contain links
        to example files.

        2018-07-23 17:34 GMT+02:00 himanshu soni
        <[email protected] <mailto:[email protected]>>:

            Thanks for the response, it would be helpful if you could
            send me a sample project.

            On Mon, Jul 23, 2018 at 5:23 PM Jakob Erdmann
            <[email protected] <mailto:[email protected]>> wrote:

                Yes. See http://sumo.dlr.de/wiki/Tutorials#TraCI_Tutorials
                and
                http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python


                2018-07-23 11:46 GMT+02:00 himanshu soni
                <[email protected]
                <mailto:[email protected]>>:

                    Hello,
                    I am a fresher to SUMO. Can anyone tell me if I
                    can control my SUMO simulation with my self-made
                    python programs? If yes, can anyone send me a
                    simple program?

                    _______________________________________________
                    sumo-user mailing list
                    [email protected] <mailto:[email protected]>
                    To change your delivery options, retrieve your
                    password, or unsubscribe from this list, visit
                    https://dev.eclipse.org/mailman/listinfo/sumo-user


                _______________________________________________
                sumo-user mailing list
                [email protected] <mailto:[email protected]>
                To change your delivery options, retrieve your
                password, or unsubscribe from this list, visit
                https://dev.eclipse.org/mailman/listinfo/sumo-user


            _______________________________________________
            sumo-user mailing list
            [email protected] <mailto:[email protected]>
            To change your delivery options, retrieve your password,
            or unsubscribe from this list, visit
            https://dev.eclipse.org/mailman/listinfo/sumo-user


        _______________________________________________
        sumo-user mailing list
        [email protected] <mailto:[email protected]>
        To change your delivery options, retrieve your password, or
        unsubscribe from this list, visit
        https://dev.eclipse.org/mailman/listinfo/sumo-user



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

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

Reply via email to