Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
turtlerob1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Karlsson
turtlerob1
Commits
15c9aed6
Commit
15c9aed6
authored
9 years ago
by
Martin Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
läget mannen :)
parent
70c31d32
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
get_audio.m
+1
-3
1 addition, 3 deletions
get_audio.m
startup_rob.m
+1
-1
1 addition, 1 deletion
startup_rob.m
track_audio.m
+3
-3
3 additions, 3 deletions
track_audio.m
with
5 additions
and
7 deletions
get_audio.m
+
1
−
3
View file @
15c9aed6
...
...
@@ -17,9 +17,6 @@ if isempty(fs)
end
p
=
bass
.
Audio
();
pause
(
0.1
)
lastIndex
=
p
.
Audio
.
lastFrameIndex
;
diffIndex
=
lastIndex
-
lastLastIndex
;
tempLeft
=
cell2mat
(
p
.
Audio
.
left
);
...
...
@@ -37,4 +34,5 @@ signal = [tempLeft, tempRight];
%bass.Stop();
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
startup_rob.m
+
1
−
1
View file @
15c9aed6
...
...
@@ -5,4 +5,4 @@ global bass
addpath(genpath('~/openrobots/lib/matlab/'));
client = genomix.client('turtlebot1-wifi:8080');
bass = client.load('bass');
bass.Acquire('-a',24414,2048,80);
\ No newline at end of file
bass.Acquire('-a',24414,2048,2);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
track_audio.m
+
3
−
3
View file @
15c9aed6
...
...
@@ -11,7 +11,7 @@ dt = chunks/fs;
%% Setup objects
% Initialize localization models using braodband and subband settings
dObj
=
dataObject
([],
fs
Hz
,
10
,
2
);
dObj
=
dataObject
([],
fs
,
10
,
2
);
% Settings for subband approach
par_sub
=
genParStruct
(
'cc_bBroadband'
,
0
,
'cc_wSizeSec'
,
winSec
,
...
...
...
@@ -50,7 +50,7 @@ addpath('./ekfukf-toolbox');
figure
(
1
)
N
=
1
00
;
% The number of steps to run this stuff.
N
=
1
;
% The number of steps to run this stuff.
% Initialize posterior mean and covariance
posteriorMean
=
zeros
(
size
(
A
,
1
),
N
);
...
...
@@ -80,7 +80,7 @@ for l = 1:N
posteriorMean
(:,
l
)
=
x
;
posteriorCovariance
(:,
:,
l
)
=
P
;
pause
(
max
(,
0
))
%
pause(max0))
t_old
=
t_new
;
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment