Hello,
there is a more efficient mechanism for retrieving data continuously via
TraCI, called subscriptions:
http://sumo.dlr.de/wiki/TraCI/Object_Variable_Subscription
http://sumo.dlr.de/wiki/TraCI/Object_Context_Subscription
Basically, you can retrieve all vehicle positions with a single request.
However, at 1Khz the simulation itself will become quite slow. I think you
are better of running the simulation at 10Hz and interpolating positional
data yourself.

regards,
Jakob

2016-04-26 21:48 GMT+02:00 Erik Newton <[email protected]>:

> Hi,
> I am currently investigating the possibility of linking SUMO with our 3D
> visualisation software.
> Basically I need a high frequency (1KHz) stream of all vehicle positions
> (and maybe a lower frequency stream of vehicle types) I have been
> evaluating the TraCI API but am finding it a bit limited for real-time use.
>
> E.g. It would appear I have to request each vehicle's position
> individually.
>
> The API is all based on a TCP request and then waiting for a response,
> which is killing my real-time application. I have made some progress with
> creating a new class which inherits from TraCIAPI and splitting all the
> receipts into a separate thread, but it seems a bit silly to have to keep
> requesting the same information each time-step.
>
> Am I missing an obvious way of doing this?
>
> Could we extend the API to have a mechanism to register an interest in
> particular data and it be continually broadcast? Possibly register an
> interest in any vehicles within a user-defined radius of the ego vehicle?
>
> Alternatively, is there a way to write plugins for SUMO? So I could just
> write my own bespoke output stream of the data I require.
>
> Thanks in advance for any guidance,
>
> Erik Newton
> Model Integration Engineer
> rFactor Pro
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> sumo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-devel
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to