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

Agent gets outside environment and collision=False always (v=0.1.4) #16

Open
pushkalkatara opened this issue May 4, 2020 · 12 comments
Open

Comments

@pushkalkatara
Copy link

Screenshot from 2020-05-05 01-32-41

Am I loading the configurations incorrectly?

@ZacRavichandran
Copy link
Member

Could you share the configurations you used?

@pushkalkatara
Copy link
Author

Hi Zac, here's the config i used:

GoSeekFullPerception(
      str(filename),
      step_rate=20,
      network_config=get_network_config(worker_id=0),
      n_targets=30,
      episode_length=400,
      scene_id=1,
      target_found_reward=2
    )

@pushkalkatara
Copy link
Author

When i removed step_rate=20, collision is working but faced this problem - #7

@ZacRavichandran
Copy link
Member

Thanks for sharing!

When the step rate is enabled, are collisions always off? Or does the agent only go objects at certain times or places?

@pushkalkatara
Copy link
Author

Yes, with step_rate the collisions are always returned off. Initially when agent is not hitting walls and in the environment, it take right steps. If it goes in the corner, then it gets out of the environment.

@ZacRavichandran
Copy link
Member

Let's double check that colliders are enabled in the simulation. Could you share the output of the following command:

>>> from tesse.env import Env
>>> from tesse.msgs import *

>>> print(Env().request(MetadataRequest()).metadata)

We expect the output to be like the following, with collider status='true' (collision status indicates that the agent is currently in collision with an object, so that does not have to be true)

<TESSE_Agent_Metadata_v0.5>
  <position x='5.361372' y='0.4999866' z='-0.3182806'/>
  <quaternion x='0' y='0.9816272' z='0' w='-0.1908088'/>
  <velocity x_dot='8.147203E-08' y_dot='4.670983E-06' z_dot='-3.785611E-08'/>
  <angular_velocity x_ang_dot='0' y_ang_dot='9.039034E-07' z_ang_dot='0'/>
  <acceleration x_ddot='-4.079843E-08' y_ddot='6.688271E-06' z_ddot='1.88659E-08'/>
  <angular_acceleration x_ang_ddot='0' y_ang_ddot='-1.82603E-06' z_ang_ddot='0'/>
  <time>8.171613</time>
  <collision status='false' name=''/>
  <collider status='true'/>
</TESSE_Agent_Metadata_v0.5>

@pushkalkatara
Copy link
Author

pushkalkatara commented May 7, 2020

I got the following output:

<TESSE_Agent_Metadata_v0.5>
  <position x='-6.0352' y='0.5000085' z='11.28761'/>
  <quaternion x='0' y='0.9366722' z='0' w='0.3502073'/>
  <velocity x_dot='0' y_dot='-4.953397E-06' z_dot='0'/>
  <angular_velocity x_ang_dot='0' y_ang_dot='0' z_ang_dot='0'/>
  <acceleration x_ddot='0' y_ddot='0' z_ddot='0'/>
  <angular_acceleration x_ang_ddot='0' y_ang_ddot='0' z_ang_ddot='0'/>
  <time>6.145</time>
  <collision status='false' name=''/>
  <collider status='true'/>
</TESSE_Agent_Metadata_v0.5>

@ZacRavichandran
Copy link
Member

Ok, it looks like collisions are enabled in the simulator.

Would it be possible to share a screenshot of where you see the agent moving through objects? This could help us diagnose the issue on our end.

@pushkalkatara
Copy link
Author

Screenshot from 2020-05-10 05-10-30

I think in corners it goes out of the environemt, collision is returning False with step_rate even if its near corners/walls.

@ZacRavichandran
Copy link
Member

Ah, that's helpful. Thanks for sharing!

And do you remember in what scene(s) this happened?

@pushkalkatara
Copy link
Author

GoSeekFullPerception(
      str(filename),
      step_rate=20,
      network_config=get_network_config(worker_id=0),
      n_targets=30,
      episode_length=400,
      scene_id=1,
      target_found_reward=2
    )

Scene id = 1

@ZacRavichandran
Copy link
Member

Got it, thanks for letting us know! We'll take a look to see what's going on.

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