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

Export goal - obstacles positions #13

Open
dkal3 opened this issue Apr 8, 2020 · 2 comments
Open

Export goal - obstacles positions #13

dkal3 opened this issue Apr 8, 2020 · 2 comments

Comments

@dkal3
Copy link

dkal3 commented Apr 8, 2020

Hello!!!
How are you?
I hope that you are fine!!!
Can I ask something? Is it possible to export the positions of the obstacles and the goal position of each agent to the SimController.cs?
Τhat is, how can I have the coordinates of the obstacles and the goal position in the SimController script in Unity?
Thank you in advance!!!!!!

@curds01
Copy link
Collaborator

curds01 commented Apr 19, 2020

Sorry for my slow response.

We can export just about anything we want. It'll require updates to both Menge and MengeCS to support it. Can you articulate precisely what query you want? The obstacles are straightforward as they are fixed w.r.t. the simulation. For the goals, you want something instantaneous. For this agent, right now, what is the goal it is heading to?

Given the goals can have area (disks, boxes, etc), do you want to full goal geometry or just the point in that goal the agent is currently heading towards?

@dkal3
Copy link
Author

dkal3 commented Apr 20, 2020

It does not matter !!!
I am working on the 4square example, in which agents start from their initial positions and their goal(mirror) is the position that reflects the agent's initial position around the world's origin.
The obstacles are static.
In fact, in the c-sharp script I want to know
1)initial position of the agent (we know that)
2)goal position
3)obstacles position
With this, I want to know every time for example, the distance that the agent has from obstacles and the goal.

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

No branches or pull requests

2 participants