Closed Cospui closed 5 years ago
i guess it means that each step contributed equally on the movement, i.e. on a 40x40 map, each step will contribute 1.
No, it's not a constant jump forward. The velocity is computed by Unity physic's engine. When you move forward/backward you apply a force to the agent, its velocity is then computed depending on friction, drag, momentum etc.
What is meanning of obs[1][2]?
It is the z
(forward) component of the agent's velocity in its local reference frame.
And how can i get the velocity of the agent?
in your example obs[1]
is the velocity of the agent along (x,y,z)
Have a look at this discussion to see how you can work out the time component of the velocity.
I m closing this topic due to inactivity, please reopen if needed
Hi, I read the document and found that obs[1] can show the velocity of the agent. And i read several issues about the velocity, but i still find it a little bit hard to follow. I build a simple environment:
and use the following code to control:
and here is what i get:
as you can see the agent use 39 steps to reach the other side, i guess it means that each step contributed equally on the movement, i.e. on a
40x40
map, each step will contribute1
. But theobs[1][2]
is different from step to step, it's changing and I don't know what that means. What is meanning ofobs[1][2]
? And how can i get the velocity of the agent?THANKS!