Re: [sumo-user] couldChangeLane() error

2018-07-31 Thread Jakob Erdmann
Are you simulating left-hand traffic? In that case the lane numbering would be reversed. 2018-07-31 18:03 GMT+02:00 himanshu soni : > I don't understand why I'm getting the error in using the function > couldChangeLane(), the error gets resolved when I define the right lane > with value 1 and lef

Re: [sumo-user] couldChangeLane() error

2018-07-31 Thread himanshu soni
Yes, it's left hand drive. Can you tell me what all things change in left hand drive? Thank you On Tue, Jul 31, 2018, 10:28 PM Jakob Erdmann wrote: > Are you simulating left-hand traffic? In that case the lane numbering > would be reversed. > > 2018-07-31 18:03 GMT+02:00 himanshu soni : > >> I d

Re: [sumo-user] couldChangeLane() error

2018-07-31 Thread Jakob Erdmann
The right of way rules are obviously different but apart from that, the largest difference is the lane numbering which you already encountered. 2018-07-31 19:19 GMT+02:00 himanshu soni : > Yes, it's left hand drive. Can you tell me what all things change in left > hand drive? > Thank you > > On T

Re: [sumo-user] couldChangeLane() error

2018-08-01 Thread himanshu soni
It doesn't help, using right-hand drive is giving me that error. Can you please go through the python code once. Corrected attachment is sent with this mail. Regards On Wed, Aug 1, 2018 at 2:27 AM Jakob Erdmann wrote: > The right of way rules are obviously different but apart from that, the > la

Re: [sumo-user] couldChangeLane() error

2018-08-01 Thread himanshu soni
Hello Jakob, Give me suggestions related to this! On Wed, Aug 1, 2018, 2:53 PM himanshu soni wrote: > It doesn't help, using right-hand drive is giving me that error. Can you > please go through the python code once. Corrected attachment is sent with > this mail. > Regards > > On Wed, Aug 1, 201

Re: [sumo-user] couldChangeLane() error

2018-08-01 Thread Jakob Erdmann
please select one situation from your simulation where the result of couldChangeLane does not match your expectation For that situation, provide the following information: - the output of the calls getLaneChangeStatePretty(vehID, -1) and getLaneChangeStatePretty(vehID, 1) - a screenshot from sumo-g

Re: [sumo-user] couldChangeLane() error

2018-08-02 Thread himanshu soni
On Thu, Aug 2, 2018 at 2:43 PM himanshu soni wrote: > There is an error in the function call getLaneChangeStatePretty(), and > other are attached in the mail, and the red vehicle is my target vehicle. > > On Thu, Aug 2, 2018 at 12:20 PM Jakob Erdmann > wrote: > >> please select one situation fro

Re: [sumo-user] couldChangeLane() error

2018-08-02 Thread Jakob Erdmann
Thank you for providing the example scenario. You've encountered a bug in function couldChangeLane which would give wrong results immediately after a lane change. https://github.com/eclipse/sumo/issues/4381 This is now fixed in the latest development version. You may either update your sumo version

Re: [sumo-user] couldChangeLane() error

2018-08-02 Thread himanshu soni
Thank you so much Jakob. I thought I wasted 2 days fixing this error. Thank you so much On Fri, Aug 3, 2018, 2:00 AM Jakob Erdmann wrote: > Thank you for providing the example scenario. > You've encountered a bug in function couldChangeLane which would give > wrong results immediately after a la