facebookresearch / nocturne

A data-driven, fast driving simulator for multi-agent coordination under partial observability.
MIT License
259 stars 29 forks source link

[Question] How can I get the VisibleObjects? #68

Closed KevinJeon closed 11 months ago

KevinJeon commented 11 months ago

Question

Hi, i want to get the visible other objects from ones' perspective! It seems like VisibleObjects is that function in C++. Can I avail it in Python? Thank u :)

nathanlct commented 11 months ago

You can!

Check out https://github.com/facebookresearch/nocturne/blob/main/examples/nocturne_functions.py around line 95, which gives an example usage, where the object argument is the source (perspective) vehicle.

KevinJeon commented 11 months ago

Thks for rapid repond :)

Oh, I used that function. But I cant find the feature indicating of object ID.

image

Can I get the index of this visilbe object? (such as ID!)

Thks!!