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
How could I Print position of agent like nvmap #126
Comments
kindly reply me @msavva or @angelxuanchang , I really need answer to this question, looking forward for your reply |
You can use the The position is also reported by in the
See https://github.com/minosworld/minos/blob/master/minos/tools/pygame_client.py#L103 . (you can print out the response by pressing 'o' when using the |
Thanks @angelxuanchang , can you kindly explain the orientation and position ? I mean how they are working ?, Also explain their unit (i.e) cm,mm,um etc for position and rad,degree for angle ? Where is origin of axis in a room ? Every time i start minos and press 'O' it give values in negative for position(what does this mean). Thanks in advance for this act of kindness, looking forward for your reply |
The scene unit is in meters. The position is the absolute position of the agent in the scene. There is no special meaning for the position 0,0,0. The orientation of the agent is the direction vector for the agent. |
One last question, if we save these values in .csv format as mentioned above. Is it possible to plot/draw the path fallowed using MATLAB or some coding language ? if it is possible then kindly tell the steps/method for it. Thanks in advance for this act of kindness |
Please use |
Ok! Thanks @angelxuanchang . Can you now kindly explain the direction vector (what is x,y,z in this case) little bit, I mean how it is working what does (-0.999) means and what does (0.999) means ? Also can you kindly explain the direction vector along up and down (ceiling and floor), how is that working ? what does -1 means and what does 1 means? Thanks in advance for this act of kindness. I need to understand these, looking forward for your reply |
@angelxuanchang can you kindly reply to my last comment?, I would figure-out the rest myself. But for this I need to understand orientation. |
The direction vector is a normalized vector in Minos world coordinate frame indicating the direction the agent is facing. The agent uses a coordinate frame with Y up and -Z front. Minos uses a world coordinate frame with the same conventions: Y up and -Z front. Both SUNCG and Matterport3d scenes are rotated to match this (SUNCG from Y up, +Z front and Matterport3D Z up, -X front, the front is somewhat arbitrary). The Y component of the orientation should be 0 since the agent is just moving in the XZ plane. If you want the relative orientation of the agent to the goal, you will find that in |
ok, and can you tell that "observation.measurements.direction_to_goal" is a command or some file? where to get it ? that's all and thanks for such a explained reply @angelxuanchang ! |
It is part of the observations that is returned by the simulator at each step. Please see https://github.com/minosworld/minos/blob/master/minos/tools/pygame_client.py#L84 for example of how the measurements are extracted and https://github.com/minosworld/minos/blob/master/API.md#return-object for example of what is returned. |
Thanks a lot @angelxuanchang, for the guidance it was very helping! |
I want to print the position and angle of agent , just like nvmap command is providing. If I could save them in excel or text form or could display them on terminal continuously.
Like shown in above images
The text was updated successfully, but these errors were encountered: