Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] (no subject)

Hi Michael, 

thank you very much for your replys, after rearranging everything it now works, as it should, by setting the speed to 0 again, for every timestep. No more errors. 

Thanks, 
Christopher
 

-----Original-Nachricht-----
Betreff: Re: [sumo-user] (no subject)
Datum: 2018-01-28T14:55:15+0100
Von: "Michael Behrisch" <oss@xxxxxxxxxxx>
An: "Christopher.Ewert@xxxxxxxxxxx" <Christopher.Ewert@xxxxxxxxxxx>

Hi Christopher,
setSpeed works only for the current step so this is to be expected, but
the NullPointerException is not. Please post the code you are using or
even better a (possibly reduced) example with network and routes showing
the behavior.

Best regards,
Michael

PS: Please keep the list posted.

Am 26.01.2018 um 17:39 schrieb Christopher.Ewert@xxxxxxxxxxx:
> Hello Michael, 
> 
> yes, I want to stop the car while the rest of the simulation continues. 
> If I set the speed of the car to 0 it will move again in the next timestep and continue its route, which it shouldn't. 
> If I try to add a stop  I get a Java NullPointerException at the line where I try to add the stop. 
> I am using sumo 0.32.0 and the latest TraaS version
> 
> Thanks, 
> Christopher
> 
> 
> 
> -----Original-Nachricht-----
> Betreff: Re: [sumo-user] (no subject)
> Datum: 2018-01-26T17:00:46+0100
> Von: "Michael Behrisch" <oss@xxxxxxxxxxx>
> An: "Christopher.Ewert@xxxxxxxxxxx" <Christopher.Ewert@xxxxxxxxxxx>, "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
> 
> Hi Christopher,
> I am not sure I understand your question. You want the car to stop but
> the rest of the simulation should continue? So you set the speed to 0 or
> add a stop? And which error do you get? It would be also helpful if you
> mention the sumo / Traas version you use.
> 
> Best regards
> Michael
> 
> Am 26.01.2018 um 16:25 schrieb Christopher.Ewert--- via sumo-user:
>> Hello,
>> I am trying to stop a car right where it is, using Traas with Java.
>> At the same time I want the timer to still keep going but it won't work.
>> Either the car travels it's route to completion or I get an error and sumo 
>> stops.  
>>
>> What am I doing wrong? 
>>
>>
>> Thanks in advance.
>> Christopher
>>
>>  
>>
>>
>> <div style=\"border:0;border-bottom:1px solid black;width:100%;\"> 
>> Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos 
>> und sicher für alle!
>> ------------------------------------------------------------------------------
>> 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-user@xxxxxxxxxxxxxxxxxxxxx
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>
> 
> 
> 
> 
> ----------------------------------------------------------------
> Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos und sicher für alle!
> 




----------------------------------------------------------------
Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos und sicher für alle!


Back to the top