Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug of "undefined function or variable vecnorm" when running sl… #6

Open
wants to merge 2 commits into
base: graph
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FrameTransforms/Rotations/q2au.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
if nargout <= 2

v = q(2:4);
a = 2*atan2(vecnorm(v),q(1));
a = 2*atan2(vnorm(v),q(1));
u = normvec(v);

else
s = q(1); % scalar part
v = q(2:4); % vector part
[n, N_v] = vecnorm(v);
[n, N_v] = vnorm(v);
if isnumeric(n)
a = 2*atan2(n,s);
else
Expand Down
8 changes: 6 additions & 2 deletions HighLevel/userDataGraph.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@

% Simulated world
% - Simulation landmark sets, playground dimensions
% World = struct(...
% 'points', thickCloister(-6,6,-6,6,1,7),... % 3d point landmarks - see THICKCLOISTER.
% 'segments', []); % 3D segments - see HOUSE.
% [CGGOS]
World = struct(...
'points', thickCloister(-6,6,-6,6,1,7),... % 3d point landmarks - see THICKCLOISTER.
'segments', []); % 3D segments - see HOUSE.
'points', thickCloister(-6,6,-6,6,1,7),...
'segments', house(0,0,0,10,10,8));

% Robot things with their controls
% - each robot's type and initial configuration, and controls.
Expand Down