Commit efe87c90 authored by Daniel Filbert's avatar Daniel Filbert

Merge branch 'master' of https://git.rwth-aachen.de/ita/toolbox

parents a46fbede c98ff468
......@@ -157,7 +157,7 @@ LHeightTracked = LPosTracked(2);
S1 = a.create_sound_source('Source 1'); % name of the sound source as string
a.set_sound_source_position(S1,[2 LHeightTracked 0])
S1ori = ita_rpy2quat(0,0,90); % calculate quaternion orientation based on roll/pitch/yaw input
S1ori = ita_rpy2quat(0,0,-pi/2); % calculate quaternion orientation based on roll/pitch/yaw input
S1ori_quat = S1ori.e; % access quaternion coefficients
a.set_sound_source_orientation(S1,S1ori_quat)
% The virtual sound source is now positioned on the right side of the receiver,
......
classdef DAFF < handle
properties
daffhandle
view = 'object'
end
methods
function obj = DAFF( filepath )
if( nargin > 0 )
open( filepath )
end
end
function open( obj, filepath )
obj.daffhandle = DAFFv17( 'open', filepath );
end
function set_data_view( obj )
obj.view = 'data';
end
function set_object_view( obj )
obj.view = 'object';
end
function idx = get_nearest_neighbour_index( obj, azi_deg, ele_deg )
idx = DAFFv17( obj.daffhandle, 'getNearestNeighbourIndex', obj.view, azi_deg, ele_deg );
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment