Skip to content

Commit faa3a0b

Browse files
author
Ross Hatton
committed
fixed singularity weighting in coordinate optimization for nonholonomic systems
1 parent 5a68e5c commit faa3a0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ProgramFiles/sys_calcsystem_fcns/weight_away_from_singularities.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
min_singular_distance_gridded = reshape(min_singular_distance,size(grid{1}));
2222

2323
% Set the weight to the distance from the singularity
24-
weight = (min_singular_distance_gridded);%.^2;
24+
%weight = (min_singular_distance_gridded).^2;
25+
weight = abs(atan(min_singular_distance_gridded));
2526

2627
% Add in a fudge factor to avoid zero-values at singularities
2728
weight = weight+0.01*max(weight(:));
29+
30+
31+
2832

2933
end

0 commit comments

Comments
 (0)