Skip to content
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