Skip to content

Commit 7dc49f7

Browse files
authored
ensure package_mass arg is passed to package on init, rather than being hardcoded to 50 (#91)
1 parent 2fb6350 commit 7dc49f7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vmas/scenarios/reverse_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def make_world(self, batch_dim: int, device: torch.device, **kwargs):
4545
name=f"package {i}",
4646
collide=True,
4747
movable=True,
48-
mass=50,
48+
mass=self.package_mass,
4949
shape=Box(
5050
length=self.package_length,
5151
width=self.package_width,

vmas/scenarios/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def make_world(self, batch_dim: int, device: torch.device, **kwargs):
5656
name=f"package {i}",
5757
collide=True,
5858
movable=True,
59-
mass=50,
59+
mass=self.package_mass,
6060
shape=Box(length=self.package_length, width=self.package_width),
6161
color=Color.RED,
6262
)

0 commit comments

Comments
 (0)