Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions vmas/scenarios/joint_passage.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def make_world(self, batch_dim: int, device: torch.device, **kwargs):
device,
x_semidim=1,
y_semidim=1,
substeps=7 if not self.asym_package else 10,
substeps=2, # 7 if not self.asym_package else 10,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just reduced substeps to 2 for faster iteration, it's not supposed to be here

joint_force=900 if self.asym_package else 400,
collision_force=2500 if self.asym_package else 1500,
drag=0.25 if not self.asym_package else 0.15,
Expand Down Expand Up @@ -458,11 +458,10 @@ def reward(self, agent: Agent):
self.world.get_distance(a, passage)
<= self.min_collision_distance
] += self.collision_reward
for wall in self.walls:
self.collision_rew[
self.world.get_distance(a, wall)
<= self.min_collision_distance
] += self.collision_reward
for wall in self.walls:
self.collision_rew[
self.world.get_distance(a, wall) <= self.min_collision_distance
] += self.collision_reward

# Joint collisions
for p in self.passages:
Expand Down