Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meaning of CoordinateObjectID #107

Closed
nikita-petrashen opened this issue Mar 10, 2022 · 4 comments
Closed

meaning of CoordinateObjectID #107

nikita-petrashen opened this issue Mar 10, 2022 · 4 comments
Labels
question Further information is requested

Comments

@nikita-petrashen
Copy link

Hi!
How to get which instance of Potato do we interact with from these numbers?
image

Side question: in tasks like pick_two_obj_and_place-PotatoSliced-None-GarbageCan-28 we need to slice two potatoes but in the original AI2-THOR scene we have only one potato instanced, what's the deal with that?

Thank you!

@MohitShridhar
Copy link
Collaborator

MohitShridhar commented Mar 11, 2022

@nikita-petrashen,

How to get which instance of Potato do we interact with from these numbers?

Use objectID. This string uniquely describes each object in the scene.

Side question: in tasks like pick_two_obj_and_place-PotatoSliced-None-GarbageCan-28 we need to slice two potatoes but in the original AI2-THOR

In THOR (not the Unity Editor) interactable objects are spawned whenever a scene is instantiated. If the task involves two potatoes, then there must be two potatoes in the scene because the expert was able to complete the task during data generation.

@MohitShridhar MohitShridhar added the question Further information is requested label Mar 11, 2022
@MohitShridhar
Copy link
Collaborator

ohhh sorry... @thomason-jesse just pointed out that for 'slicing' tasks maybe just one potato is sufficient because after a Slice action the potato is split into several slices, after which the agent can pick up two slices from the same pile (one by one).

@nikita-petrashen
Copy link
Author

The thing is, THOR API is not suitable for my purpose, so what I'm trying to do is to manipulate the scene in the form of a point cloud using my own toolkit, thus creating a series of scene states which represents ALFRED's agent action sequence.

Back to potatoes, I have an item Potato_21b79aff in my scene located somewhere, and would like to know how to build a correspondence between these items in the scene and objectIDs in the trajectory descriptions.

Also, could you please hint the way how I can spawn several potatoes in the Unity itself? Maybe according to the scene part of the trajectory JSON? I cannot use THOR API for this because there is no way to get the point cloud representation of the scene from it, as was pointed in this issue.

Thanks!

@thomason-jesse
Copy link
Collaborator

That kind of AI2THOR manipulation is outside the scope of the ALFRED repository, but you might be able to get answers from the main AI2THOR repo. You could also check out the LUMINOUS framework for automatically generating new ALFRED-compatible scenes at the Unity level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants