Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] moveToXY

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 netconvert options and typemap).

A2: when used without distance argument, getLeader only looks as far as the braking distance of the vehicle. Use the distance argument.

regards,
Jakob

Am Mo., 2. Dez. 2019 um 21:56 Uhr schrieb Mohsin Memon <mohsin.ldce@xxxxxxxxx>:
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 on the middle
of the lane. I am hereby attaching the screenshot of sumo gui. I would be
very much obliged if you please let me know the reason behind such kind of
behaviour.

<http://sumo-user-mailing-list.90755.n8.nabble.com/file/t206/offset.jpg>



Another query is regarding leading vehicle position:

I want to get the position of leading vehicle every time step in sumo so
that i can update the traffic data in IPG from sumo.


I am using function in matlab as follows:

[A,B] = traci.vehicle.getLeader('125');

But every timestep, the value of A is always empty(''). There is no error
shown too.


Could you please help me to get the leading vehicle data in sumo?


Thanks and regards,
Mohammed Mohsin Memon





--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top