Re: [sumo-user] [MICROSCOPIC SIMULATION][SIMULATION STEP][vNext]
I got your point Jakob. Our voluntee was to use SUMO to manage all the interaction between vehicles and, after all these interactions, use it as a target speed and/or position for our ego vehicle in the vehicle dynamic. If it was reached do nothing otherwise override the values with the one calculated in the vehicle dynamic software. So we have to change our plans Regards Ing. Luca Di Costanzo - MsC in Hydraulic and Transportation Engineering Bsc in Civil Engineering contact: dicostanzo.l...@gmail.com skype: lucadicostanzo82 tel: +39 333 43 92 544 2018-04-13 11:42 GMT+02:00 Luca Di Costanzo : > Thanks Jakob. > At the end now I'm strongly convinced that, to do what we planned, we have > to read vNext variable. > > As far as you know is it accessible through TraCI? Do you think, moreover, > that could be possible to create a script in MATLAB to read this variable? > > I have to admit that till now we are using SUMo with traci4matlab, instead > of python, cause we are more experienced with it and I can assure > > Regards > > Ing. Luca Di Costanzo > > - > MsC in Hydraulic and Transportation Engineering > Bsc in Civil Engineering > contact: dicostanzo.l...@gmail.com > skype: lucadicostanzo82 > tel: +39 333 43 92 544 > ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] [MICROSCOPIC SIMULATION][SIMULATION STEP][vNext]
It is not possible to read the vNext value of the current simulation step via TraCI before that step is done. Since it generally depends on the interactions of all vehicles it is only known after the simulation step has been fully computed. If you use moveToXY, then vNext for that vehicle is not used. The speed value for the vehicle is deduced from the covered distance. You could therefore perform the same computation in your own code and would not need TraCI for this at all. regards, Jakob 2018-04-13 11:42 GMT+02:00 Luca Di Costanzo : > Thanks Jakob. > At the end now I'm strongly convinced that, to do what we planned, we have > to read vNext variable. > > As far as you know is it accessible through TraCI? Do you think, moreover, > that could be possible to create a script in MATLAB to read this variable? > > I have to admit that till now we are using SUMo with traci4matlab, instead > of python, cause we are more experienced with it and I can assure > > Regards > > Ing. Luca Di Costanzo > > - > MsC in Hydraulic and Transportation Engineering > Bsc in Civil Engineering > contact: dicostanzo.l...@gmail.com > skype: lucadicostanzo82 > tel: +39 333 43 92 544 > > ___ > sumo-user mailing list > sumo-user@eclipse.org > 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 sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] [MICROSCOPIC SIMULATION][SIMULATION STEP][vNext]
Thanks Jakob. At the end now I'm strongly convinced that, to do what we planned, we have to read vNext variable. As far as you know is it accessible through TraCI? Do you think, moreover, that could be possible to create a script in MATLAB to read this variable? I have to admit that till now we are using SUMo with traci4matlab, instead of python, cause we are more experienced with it and I can assure Regards Ing. Luca Di Costanzo - MsC in Hydraulic and Transportation Engineering Bsc in Civil Engineering contact: dicostanzo.l...@gmail.com skype: lucadicostanzo82 tel: +39 333 43 92 544 ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] [MICROSCOPIC SIMULATION][SIMULATION STEP][vNext]
Here is how it works: http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#Application_order_of_traci_commands_and_simulation_step regards, Jakob 2018-04-12 17:36 GMT+02:00 Luca Di Costanzo : > Hi guys, > > I'd like to ask, better, how microsimulation working in SUMO. Since that > me and my fellows are trying to add an external dynamic vehicle in SUMO > through Simulink. We established a communication between SUMO and Simulink > but we stucked when we tried to override the position in SUMO we obtained > with the dynamic vehicle since that the commands as "moveToXY" or > "setspeed" are implemented with a delay of 1 timestep. > > For that reason I tryed to gain a broader knowledge about "MSVehicle.cpp" > and I would like to understand if, vNext is calculated and applied in the > SIMULATION STEP or, the vNext that it's used to update vehicle status is > related and applied in the next simulation step. > > If vNext works as the second description I would like to know if could be > possible to read this variale or/and also the variable myState.myPos. > > I attacched this figure to help you, if I was not clear, to which variable > I'm talking about > > > > Regards > > Ing. Luca Di Costanzo > > - > MsC in Hydraulic and Transportation Engineering > Bsc in Civil Engineering > contact: dicostanzo.l...@gmail.com > skype: lucadicostanzo82 > tel: +39 333 43 92 544 > > ___ > sumo-user mailing list > sumo-user@eclipse.org > 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 sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] [MICROSCOPIC SIMULATION][SIMULATION STEP][vNext]
Hi guys, I'd like to ask, better, how microsimulation working in SUMO. Since that me and my fellows are trying to add an external dynamic vehicle in SUMO through Simulink. We established a communication between SUMO and Simulink but we stucked when we tried to override the position in SUMO we obtained with the dynamic vehicle since that the commands as "moveToXY" or "setspeed" are implemented with a delay of 1 timestep. For that reason I tryed to gain a broader knowledge about "MSVehicle.cpp" and I would like to understand if, vNext is calculated and applied in the SIMULATION STEP or, the vNext that it's used to update vehicle status is related and applied in the next simulation step. If vNext works as the second description I would like to know if could be possible to read this variale or/and also the variable myState.myPos. I attacched this figure to help you, if I was not clear, to which variable I'm talking about Regards Ing. Luca Di Costanzo - MsC in Hydraulic and Transportation Engineering Bsc in Civil Engineering contact: dicostanzo.l...@gmail.com skype: lucadicostanzo82 tel: +39 333 43 92 544 ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user