File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 490
490
491
491
% % CHECK SMOOTH TRANSITION
492
492
% x = -0.5:0.01:0.5
493
- % % Smooth >=0 boolean function
494
- % alpha = 40; % the larger the sharper the clip function
495
- % y = (1+exp(-alpha*(x+0.05))).^-1 + exp(x);
493
+ % % Relaxied barrier function for (x<=lambda)
496
494
% gamma = 10000;
497
495
% lambda = -0.2;
498
- % y = 0.5*(sqrt((4+gamma*(lambda-x).^2)/gamma) - (lambda-x));
496
+ % y = 0.5*(sqrt((4+gamma*(lambda-x).^2)/gamma) - (lambda-x)); % y = -log(lambda-x)
499
497
% figure; hold on; grid on;
500
498
% plot(x,y)
501
- % cost_outside = q_r * offroad_error^2;
499
+
500
+ cost_outside = q_r * offroad_error ^ 2 ;
502
501
503
502
% ---------------------------------------------------------------------
504
503
% reward high velocities
You can’t perform that action at this time.
0 commit comments