Hi,
that looks like the one answered here:
http://stackoverflow.com/questions/43207404/change-vehicle-target-method/43332089?s=1|0.0000#43332089

(Please keep the list posted.)

Best regards,
Michael

Am 10.04.2017 um 13:31 schrieb Rohit Tapikar:
> Hi,
> 
> I have added the code snippets of the chagetarget method that I have
> implemented.Please help me in rectifying errors.
> 
> void TraCICommandInterface::Vehicle::changeTarget(std::string
> vehId,std::string roadId)
> {
>     uint8_t variableId = CMD_CHANGETARGET;
>     uint8_t variableType = TYPE_COMPOUND;
>     //int32_t count=0;
>     uint8_t edgeIdT = TYPE_STRING;
>     std::string edgeId = roadId;
>    TraCIBuffer buf = connection->query(CMD_CHANGETARGET, TraCIBuffer()
> << variableId << vehId << variableType << edgeId<<edgeIdT);
> 
>     ASSERT(buf.eof());
> }
> 
> 
> I obtained vehicle id using traci->getExternalId() method.
> 
> */Rohit Tapikar
> /*
> /*MSR(Telecom Technology & Management)*/
> /*Bharti School of Telecom Technology & Management*/
> /*IIT Delhi*/
> **
> 
> On Mon, Apr 10, 2017 at 4:55 PM, Michael Behrisch
> <[email protected] <mailto:[email protected]>>
> wrote:
> 
>     Dear Rohit Tapikar,
>     there was probably some typo when sending the command, maybe not in
>     the CHANGE_TARGET itself but in the domain (vehicle, edge, etc.) you
>     specified. Maybe sharing some lines of your calling code could help.
>     Please also make sure that you use the most recent version of Veins.
> 
>     Best regards,
>     Michael
> 
>     Am 2017-04-10 10:00, schrieb Rohit Tapikar:
> 
>         Hello,
> 
>         I am trying to run TraCi command changeTarget in veins siumlator
>         and while
>         running I got an eror like "Command not implemented in sumo".I
>         am using
>         sumo-0.29.0 version.How can I solve this error??
>         I have attached a screenshot of the error as well.
> 
> 
> 
>         *Rohit Tapikar*
> 
>         
> ------------------------------------------------------------------------------
>         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
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/sumo-user
>         <https://lists.sourceforge.net/lists/listinfo/sumo-user>
> 
> 


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to