Hi,
I am sorry, I cannot test matlab here. The python version works
according to our tests. Maybe someone of the TraCI4Matlab people has an
idea.
Best regards,
Michael
Am 13.10.2015 um 12:13 schrieb Sharan, S.:
> Dear Mr. Michael,
>
> As suggested by you I tried using traci.vehicle.moveToVTD to set the
> coordinates of the vehicles.
> The purpose of doing so is to visualize the lateral movement (every time
> step) while the car is changing the lane. But I am getting the following
> error.
>
> Error using traci.sendExact (line 46)
> 68 196 255 Error Setting VTD vehicle should obtain: edgeID, lane, x, y,
> angle.
>
>
> Error in traci.vehicle.moveToVTD (line 24)
> traci.sendExact();
>
> Error in final (line 115)
> traci.vehicle.moveToVTD('veh0','D2',1,46,-4.95)
>
> The function does not accept angle as an input. And also the function doesn't
> execute without angle input. My aim is to set coordinates and angle of the
> vehicles with the help of TraCI4Matalab.
>
> Thanks in advance.
>
> Regards,
> Sujit Sharan
>
>
>
> ________________________________________
> From: Jakob Erdmann [[email protected]]
> Sent: 11 October 2015 21:41:13
> To: Sharan, S.; [email protected]
> Subject: Re: [sumo-user] Traci4matlab; Function for movement in lateral
> direction
>
> Hello,
> most likely, traci4matlab does not implement the latest version of the TraCI
> API.
> However, for controlling lane-changing via TraCI the recommended functions are
> 'change lane' and 'lane change mode' (see
> http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State)
>
> regards,
> Jakob
>
> The moveToVTD function
>
> On 10/11/2015 07:18 PM, Sharan, S. wrote:
>> Hi All,
>>
>> I am working on two platoon merging scenario implementation in SUMO.
>> With the help of "Traci4matlab" setup and the controller implemented in the
>> Simulink
>> I am trying to set the coordinates of one of the vehicle by using
>> "moveToVTD.m" function from
>> TraCI4Matlab. But I am getting the following error.
>>
>> Error using traci.sendExact (line 46)
>> 68 196 255 Error Setting VTD vehicle should obtain: edgeID, lane, x, y,
>> angle.
>>
>>
>> Error in traci.vehicle.moveToVTD (line 24)
>> traci.sendExact();
>>
>> Error in final (line 115)
>> traci.vehicle.moveToVTD('veh0','D2',1,46,-4.95)
>>
>> Please find my matlab file attached with the mail.
>>
>> Best Ragards
>>
>> SUJIT SHARAN
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user