Skip to content

Is there a way to get the location of a specific type of object in all scenes? #676

Answered by mattdeitke
NYGKNYGK asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @NYGKNYGK,

One important point to clarify is that scenes may have more than one object of the same type. For instance, there may be several books or there may be several chairs that exist within a single scene. Thus, objects are differentiated by instance/id, and not by type. But, each object has an object type tag.


I've used "controller.last_event.metadata['objects']" api. But sometimes the agent is spawn facing a WALL without seeing anything including the target I want.

controller.last_event.metadata["objects"] returns the metadata for all the objects in the scene, not just the ones the agent is looking at.


Please help, is there a way to get the location of a specific type of o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NYGKNYGK
Comment options

Answer selected by NYGKNYGK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #675 on March 29, 2021 04:38.