Skip to content

Commit 15053bc

Browse files
committed
[Nit] Small fixes
1 parent 1d9e926 commit 15053bc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

vmas/simulator/dynamics/kinematic_bicycle.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024.
1+
# Copyright (c) 2023-2025.
22
# ProrokLab (https://www.proroklab.org/)
33
# All rights reserved.
44

@@ -71,8 +71,6 @@ def needed_action_size(self) -> int:
7171
def process_action(self):
7272
# Extracts the velocity and steering angle from the agent's actions and convert them to physical force and torque
7373
v_command = self.agent.action.u[:, 0]
74-
# Ensure speed is within bounds
75-
v_command = torch.clamp(v_command, -self.agent.max_speed, self.agent.max_speed)
7674
steering_command = self.agent.action.u[:, 1]
7775
# Ensure steering angle is within bounds
7876
steering_command = torch.clamp(

vmas/simulator/scenario.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2024.
1+
# Copyright (c) 2022-2025.
22
# ProrokLab (https://www.proroklab.org/)
33
# All rights reserved.
44
import typing
@@ -297,7 +297,7 @@ def reward(self, agent: Agent) -> AGENT_REWARD_TYPE:
297297
"""
298298
raise NotImplementedError()
299299

300-
def done(self):
300+
def done(self) -> Tensor:
301301
"""This function computes the done flag for each env in a vectorized way.
302302
303303
The returned tensor should contain the ``done`` for all envs and should have

0 commit comments

Comments
 (0)