|
From: Hanyang Z. <hz...@uo...> - 2011-08-09 06:36:15
|
Hi all,
I'm trying to add new vehicles to a simulation via TraCI. The vehicle types and routes won't load until the first vehicle is generated, which means I cannot add new vehicles in time step 0 - sumo will report the vehicle types and route ids are unknown. This is not a big problem.
In step 1 or later, when I try to add a vehicle, I receive the following error:
Error: Answered with error to command 116: Wrong position in requestMessage after dispatching command. Expected command length was 76 but 68 Bytes were read.
I'm using command 0x74 and the request message is as follow:
(dec) 0 0 0 68 64 116 0 0 0 1 "0" 0 0 0 3 "car" 0 0 0 13 "123456789abcd" 0 0 0 13 "123456789abcd"
[Message Length] [Command Length] [Command ID] [Vehicle Id] [Vehicle Type] [Route Id] [Lane Id]
(dec) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[Insertion Pos] [Insertion Speed]
This layout is based on http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI/Add_Vehicle
Can someone tell me what I am missing? Thanks.
Kind regards,
Hanyang
|