Skip to content

Commit 78e8991

Browse files
committed
Add velocity limits to prevent unsafe motor speeds
- Max linear velocity: 0.5 m/s - Max angular velocity: 1.0 rad/s - Limits wheel speed to ~40 RPM with 0.12m radius - Added acceleration limits for smoother control
1 parent 8a34d41 commit 78e8991

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

config/my_robot_config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,19 @@ diff_drive_controller:
4242
use_stamped_vel: false
4343
velocity_rolling_window_size: 10
4444
position_feedback: false
45+
46+
# Velocity limits (SAFETY)
47+
linear:
48+
x:
49+
has_velocity_limits: true
50+
max_velocity: 0.5 # m/s - adjust based on your robot
51+
min_velocity: -0.5
52+
has_acceleration_limits: true
53+
max_acceleration: 1.0 # m/s^2
54+
min_acceleration: -1.0
55+
angular:
56+
z:
57+
has_velocity_limits: true
58+
max_velocity: 1.0 # rad/s - adjust based on your robot
59+
has_acceleration_limits: true
60+
max_acceleration: 2.0 # rad/s^2

0 commit comments

Comments
 (0)