Re: [sumo-user] moveToXY change position

2020-11-01 Thread Jakob Erdmann
Moving the vehicle beyond the road boundary should work if and only if the second bit of the keepRoute flag is set (i.e. keepRoute=2). However, to make a vehicle park it is recommended to set a stop with attribute parking=True instead. Am Do., 22. Okt. 2020 um 05:08 Uhr schrieb 謝昀宸 : > Dear Sumo

Re: [sumo-user] moveToXY repeated execution

2020-08-27 Thread Jakob Erdmann
The mapping position should be independent of the road angle. I recommend that you check the exact x,y position that you are mapping to (i.e. by loading pois with these coordinates into the simulation or creating them with traci). Am Do., 27. Aug. 2020 um 07:24 Uhr schrieb 謝昀宸 : > I want to let m

Re: [sumo-user] moveToXY

2019-12-06 Thread Jakob Erdmann
leave out constants.VAR_IDList. the surrounding vehicle ids are part of the result object implicitly. Am Do., 5. Dez. 2019 um 16:59 Uhr schrieb Mohsin Memon < mohsin.l...@gmail.com>: > Hi Jakob, > > Thank you very much for your quick response. > > I want to retrieve the vehicle IDs of the surroun

Re: [sumo-user] moveToXY

2019-12-05 Thread Mohsin Memon
Hi Jakob, Thank you very much for your quick response. I want to retrieve the vehicle IDs of the surrounding vehicles and for that my code is as follows: traci.vehicle.subscribeContext('1100', traci.constants.CMD_GET_VEHICLE_VARIABLE,250 {traci.constants.VAR_IDList, traci.constants.VAR_SPEED});

Re: [sumo-user] moveToXY

2019-12-05 Thread Jakob Erdmann
I think the default arguments for subscribeContext are invalid in the matlab client. You should get better results if you set subscriptionBegin=0 subscriptionEnd=86400 the domain refers to the type of object you wish to retrieve CMD_GET_VEHICLE_VARIABLE to retrieve vehicles CMD_GET_PERSON_VARIABLE

Re: [sumo-user] moveToXY

2019-12-05 Thread Mohsin Memon
Hi Jakob, I am eagerly waiting for your reply for above query regarding context subscription. I would be very much grateful if you reply me. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse

Re: [sumo-user] moveToXY

2019-12-04 Thread Mohsin Memon
Hi Jakob, I have defined the vehicle route in advance and now the leader vehicle is detected. Now my task is to generate random traffic in sumo and get the surrounding vehicle IDs,position and velocity and transfer it to IPG Traffic objects. I have already generated random traffic of 1000 vehicl

Re: [sumo-user] moveToXY

2019-12-04 Thread Mohsin Memon
Hi Jakob, Thank you very much for your reply. I will try as you suggested. I have one query regarding Pedestrain crossing IDs, Pedestrian XY coordinates information using TraCI. I have developed a scenario in SUMO, in which, the pedestrians have been generated randomly using randomtrips.py and a

Re: [sumo-user] moveToXY

2019-12-03 Thread Jakob Erdmann
When moving a vehicle continuously with moveToXY without setting the vehicle route in advance, then the route will always consist of a single edge (updated every time moveToXY moves the vehicle to a new edge). This precludes leader search beyond the current edge. There are plans to make this more c

Re: [sumo-user] moveToXY

2019-12-03 Thread Mohsin Memon
Hi Jakob, In my query, different lane ID means "lane id value" . For ex: "-25637754#2_0" and "-25637754#3_0"... This both values are on the same lane... Problem is : I have one vehicle on lane ID : -25637754#2_0 in front of my EGO vehicle which is on lane ID value : -25637754#3_0... and the dist

Re: [sumo-user] moveToXY

2019-12-03 Thread Jakob Erdmann
- to check directly neighboring lanes you can use vehicle.getRightLeaders, vehicle.getLeftLeaders - to get all vehicles in a given radius, you can use context subscriptions: https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#context_subscriptions and https://sumo.dlr.de/docs/TraCI/In

Re: [sumo-user] moveToXY

2019-12-03 Thread Mohsin Memon
Hi Jakob, thank you very much for your reply, now it worked perfectly fine. Regarding leader vehicle, now the vehicle is been detected but only when it is in the same lane ID and when it is in different lane , it does not show any value although distance argument is satisfying. When the leader v

Re: [sumo-user] moveToXY

2019-12-02 Thread Jakob Erdmann
A1: if you use keepRoute=2 then the exact vehicle coordinate is used. Possibly, the networks in your two simulations do not exactly line up. This might happen if there is lots of spacing from non-driving lanes in your OpenDRIVE network and these lanes are not imported by netconvert. (check netconve

Re: [sumo-user] moveToXY

2019-12-02 Thread Mohsin Memon
Hi Jakob, I have one more query regarding moveToXY: I am now able to control my vehicle successfully using IPG ego vehicle position. I am calling function like this every timestep : traci.vehicle.moveToXY('125','',1,X,Y,angle,2); The query is : vehicle is running offset to the lane and not

Re: [sumo-user] moveToXY

2019-11-27 Thread Jakob Erdmann
For conversion, use traci.simulation.convertGeo also see https://sumo.dlr.de/docs/Geo-Coordinates.html The angle can be set to traci constant INVALID_DOUBLE_VALUE to indicate that the vehicle should assume the angle of the road. If you set it to another value, it will determine vehicle yaw. Am Mi

Re: [sumo-user] moveToXY

2019-11-27 Thread Mohsin Memon
Hi Jakob, Thank you very much for your reply. I have one more query regarding angle and x,y position values: I tried angle argument for moveToXY to be left blank("") as EdgeID argument but it didn't work. I think it is mandatory and cannot be left blank. Regarding angle argument, I just want to

Re: [sumo-user] moveToXY

2019-11-26 Thread Jakob Erdmann
The edgeID argument for moveToXY can be left blank (""). It is only needed for disambiguation on intersections when there are many lanes on top of each other. Am Di., 26. Nov. 2019 um 16:26 Uhr schrieb Mohsin Memon < mohsin.l...@gmail.com>: > Hi Jakob, > > Thank you very much for your help. I can

Re: [sumo-user] moveToXY

2019-11-26 Thread Mohsin Memon
Hi Jakob, Thank you very much for your help. I can see the vehicle in sumo network now. I have one doubt here: I want to control my EGO vehicle using moveToXY getting data from IPG Carmaker every timesteps, For edgeID, I want to give input from SUMO itself as there is no such parameter in IPG C

Re: [sumo-user] moveToXY

2019-11-25 Thread Jakob Erdmann
my mistake. The call should be: traci.vehicle.add(veh_ID, "") For adding vehicles with route file, see https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#vehicles_and_routes https://sumo.dlr.de/docs/NETEDIT.html#demand_specific_modes Am Mo., 25. Nov. 2019 um 14:53 Uhr

Re: [sumo-user] moveToXY

2019-11-25 Thread Mohsin Memon
Hi Jakob, I tried adding vehicle with ID '125' but again I am getting an error : Error in traci.vehicle.add (line 44) p.parse(vehID, routeID, varargin{:}) I am just calling traci.vehicle.add(veh_ID); in matlab. veh_ID = '125' I would be very much obliged if you reply me in this matter. And I

Re: [sumo-user] moveToXY

2019-11-23 Thread Jakob Erdmann
if you plan to control a vehicle with moveToXY, you can add it with am empty routeID :traci.vehicle.add(vehicleID) Am Sa., 23. Nov. 2019 um 18:14 Uhr schrieb Mirko Barthauer < m.bartha...@t-online.de>: > You can only move already existing vehicles, just as the function name > suggests and what ca

Re: [sumo-user] moveToXY

2019-11-23 Thread Mirko Barthauer
You can only move already existing vehicles, just as the function name suggests and what can be deduced from the error message you got. Please add first vehicle "125" and then call moveToXY. Regards Mirko Am 23.11.2019 um 17:19 schrieb Mohsin Memon: Do I need to first insert a vehicle with ID

Re: [sumo-user] moveToXY

2019-11-23 Thread Mohsin Memon
Hi Jakob, I have one doubt here : the function moveToXY in matlab will move the existing vehicle in the network OR it will place a new vehicle in network?? Do I need to first insert a vehicle with ID '125' into the network or I can directly place a new vehicle with ID '125' into the sumo network

Re: [sumo-user] moveToXY

2019-11-22 Thread Jakob Erdmann
This error is helpfully telling you that vehicle '125' is not yet in the simulation and therefore cannot be moved. You can catch this error and keep trying or check beforehand for the presence of the vehicle (i.e. using traci.vehicle.getIDList). Am Fr., 22. Nov. 2019 um 19:17 Uhr schrieb Mohsin Me

Re: [sumo-user] moveToXY

2019-11-22 Thread Mohsin Memon
Hi Jakob, Thanks for your reply, I have followed the link you sent but getting an error: -- Sent from: http://sumo-user-mailing-list

Re: [sumo-user] moveToXY

2019-11-21 Thread Jakob Erdmann
Why can you not use the function from traci4matlab? https://github.com/pipeacosta/traci4matlab/blob/master/%2Btraci/%2Bvehicle/moveToXY.m Am Fr., 22. Nov. 2019 um 02:17 Uhr schrieb Mohsin Memon < mohsin.l...@gmail.com>: > Hi.. I am working on moveToXY to place ego vehicle in SUMO, but > unfortuna

Re: [sumo-user] moveToXY and FatalTraCIError: connection closed by SUMO

2019-01-11 Thread Jakob Erdmann
Hello, thanks to your example I was able to find and fix the bug that was causing the crash (https://github.com/eclipse/sumo/issues/5029). However, I also found another issue so I recommend you use changeLaneRelative to move your vehicle back onto the forward lane (see https://github.com/eclipse/su

Re: [sumo-user] moveToXY and FatalTraCIError: connection closed by SUMO

2019-01-11 Thread Zheya
Hi, Jacok, I'm reading the model description of opposite direction driving, and the assumed duration for overtaking the leading vehicle is taken into making the decision. I wonder how you estimate the assumed duration, like using the max speed of oncoming vehicles to calculate the time to overtake

Re: [sumo-user] moveToXY and FatalTraCIError: connection closed by SUMO

2019-01-10 Thread Jakob Erdmann
This looks as if sumo crashed. Please zip up your scenario files and traci script and send them to me so I can reproduce the problem. Please remove all vehicles and all traci code that is not needed to show the problem. regards, Jakob Am Do., 10. Jan. 2019 um 00:04 Uhr schrieb Zheya : > Hi all,