Hello,

The response (inMsg) is not supposed to return the assigned order. It returns 
an acknowledgement of the received command (the command id itself 0x03 in case 
of CMD_SETORDER) and a status-flag (0x00 indicates successful execution). So 
you should expect to receive the same response even if you call setOrder(n) 
with different values for n from various clients.

See http://sumo.dlr.de/wiki/TraCI/Protocol for the general protocol specs.

Hope this helps.

Best,
Leo


-----Ursprüngliche Nachricht-----
Von: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] Im 
Auftrag von maryam sadat Boka via sumo-user
Gesendet: Dienstag, 14. November 2017 22:30
An: sumo-u...@lists.sourceforge.net
Betreff: [sumo-user] problem with multiple clients of TraCI in sumo 0.31

Hi,

As new version of SUMO (0.31) supports the multiple clients of TraCI, I have 
implemented it in c++ API.

The problem is that the function of setOrder which is implemented in 
TraCIAPI.cpp , does not work correctly since if i set the input value of the 
function as 1 (setorder(1)), the value of message which is sent to the socket 
is nor 1 (outMsg =! 1 ), neither same as the value of message of checking 
function
(check_resultState(inMsg) -> inMsg=! 1).

it means the setting value for setOrder function does not depend on input 
value, both setOrder(1) and setOrder(2) send same message with same value to 
the socket !

so the value can not be set correctly, then simulation step won't work!

It would be great if anybody can help.

Thanks and best regards
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/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 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

Reply via email to