Skip to content

Commit

Permalink
ensure package_mass arg is passed to package on init, rather than bei…
Browse files Browse the repository at this point in the history
…ng hardcoded to 50 (#91)
  • Loading branch information
kfu02 authored Mar 8, 2024
1 parent 2fb6350 commit 7dc49f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vmas/scenarios/reverse_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def make_world(self, batch_dim: int, device: torch.device, **kwargs):
name=f"package {i}",
collide=True,
movable=True,
mass=50,
mass=self.package_mass,
shape=Box(
length=self.package_length,
width=self.package_width,
Expand Down
2 changes: 1 addition & 1 deletion vmas/scenarios/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def make_world(self, batch_dim: int, device: torch.device, **kwargs):
name=f"package {i}",
collide=True,
movable=True,
mass=50,
mass=self.package_mass,
shape=Box(length=self.package_length, width=self.package_width),
color=Color.RED,
)
Expand Down

0 comments on commit 7dc49f7

Please sign in to comment.