Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] vehicle scope data after calling moveToXY

Hello,
- possilbly, your acceleration values were affected by https://github.com/eclipse/sumo/issues/5250
- the functions getLeader (if the leader is on another edge), getNextTLS and getLaneChangeState require knowledge about upcoming route edges for proper functioning. If you only move the vehicle with moveToXY and never set a route, these functions cannot work because the route then only consists of the current edge

regards,
Jakob


Am Mi., 27. Feb. 2019 um 13:54 Uhr schrieb Benedikt Schott <benedikt.schott@xxxxxxxx>:

Dear SUMO users,

 

I am trying to get vehicle scope data for objects that I move with moveToXY command via the C++ TraCIAPI. The used procedure is as following

 

1.       Determine new xy positioning for vehicle with name name

2.       Call moveToXY for traffic object with name name

3.       Perform SUMO simulation step

4.       Access the following variables from vehicleScope for the moved traffic object

a.       vehicle_scope.getLaneChangeState(name, 1) and vehicle_scope.getLaneChangeState(name, -1)

b.      vehicle_scope.getAcceleration(name)

c.       vehicle_scope.getLeader(name)

d.      vehicle_scope.getNextTLS(name)

 

However, the values seem to be not valid after calling moveToXY. Is it possible to access these values for moved traffic objects or would it be possible to provide this functionality in the next time?

 

Kind regards,

Benedikt Schott

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top