FLAMEGPU2 icon indicating copy to clipboard operation
FLAMEGPU2 copied to clipboard

Environment Jagged Array Support (CSR)

Open Robadob opened this issue 1 year ago • 0 comments

Fujitsu has exposed a need for jagged arrays to represent data accessible to agents, which doesn't cleanly fit into a fixed length environment macro property or agent variable array.

In this case of Fujitsu, this was for lane shape data and vehicle routes. Both which could vary from a length of 2 to something without a clear upper bound.

We've handled this by implementing a bespoke CSR for each case, accessed via a device symbol. This is suitable for advanced C++ API users, but would leave certain modelling techniques out of reach of Python users.

Robadob avatar Mar 15 '23 12:03 Robadob