Open pushkalkatara opened 4 years ago
Could you share the configurations you used?
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
)
When i removed step_rate=20, collision is working but faced this problem - https://github.com/MIT-TESSE/goseek-challenge/issues/7
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?
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.
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>
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>
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.
I think in corners it goes out of the environemt, collision is returning False
with step_rate
even if its near corners/walls.
Ah, that's helpful. Thanks for sharing!
And do you remember in what scene(s) this happened?
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
Got it, thanks for letting us know! We'll take a look to see what's going on.
Am I loading the configurations incorrectly?