Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VAMatlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VAMatlab
Commits
cd13d975
Commit
cd13d975
authored
Apr 25, 2017
by
Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding first enhanced tracking methods for itaVA
parent
7fc2ba88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
26 deletions
+45
-26
matlab/itaVA.m.proto
matlab/itaVA.m.proto
+45
-26
No files found.
matlab/itaVA.m.proto
View file @
cd13d975
...
...
@@ -235,48 +235,40 @@ classdef itaVA < handle
connected
=
VAMatlab
(
'IsTrackerConnected'
,
this.handle
);
end
function
disconnectTracker
(
this
)
%
Disconnects
from
the
NatNet
tracking
server
VAMatlab
(
'DisconnectTracker'
,
this.handle
)
end
%
--
Tracked
listener
--
%
function
setTrackedListener
(
this
,
listener_id
)
%
Connects
a
VA
listener
with
the
tracked
rigid
body
%
Connects
a
VA
listener
with
the
tracked
listener
rigid
body
%
%
Parameters
:
%
%
listener_id
[
integer
-
1
x1
]
VA
listener
id
%
VAMatlab
(
'SetTrackedListener'
,
this.handle
,
listener_id
);
end
function
setTrackedSource
(
this
,
source_id
)
%
Connects
a
VA
source
with
the
tracked
rigid
body
%
%
Parameters
:
%
%
source_id
[
integer
-
1
x1
]
VA
listener
id
%
VAMatlab
(
'SetTrackedSource'
,
this.handle
,
source_id
);
end
end
function
disconnectTracker
(
this
)
%
Disconnects
from
the
NatNet
tracking
server
VAMatlab
(
'
DisconnectTracker'
,
this.handle
)
function
setTrackedListenerRigidBodyIndex
(
this
,
index
)
%
Sets
the
index
of
the
rigid
body
to
be
tracked
for
listener
(
default
is
1
)
VAMatlab
(
'
SetTrackedListenerRigidBodyIndex'
,
this.handle
,
index
)
end
function
setRigidBodyIndex
(
this
,
index
)
%
Sets
the
index
of
the
rigid
body
to
be
tracked
(
default
is
1
)
VAMatlab
(
'SetRigidBodyIndex'
,
this.handle
,
index
)
end
function
setRigidBodyTranslation
(
this
,
translation
)
%
Sets
the
pivot
point
translation
for
the
tracked
rigid
body
function
setTrackedListenerRigidBodyTranslation
(
this
,
translation
)
%
Sets
the
pivot
point
translation
for
the
tracked
listener
rigid
body
%
%
Parameters
:
%
%
translation
[
double
-
3
x1
]
Translation
in
local
coordinate
system
of
rigid
body
[
m
]
%
VAMatlab
(
'SetRigidBodyTranslation'
,
this.handle
,
translation
)
VAMatlab
(
'Set
TrackedListener
RigidBodyTranslation'
,
this.handle
,
translation
)
end
function
setRigidBodyRotation
(
this
,
rotation
)
%
Sets
the
rotation
of
orientation
for
the
tracked
rigid
body
function
set
TrackedListener
RigidBodyRotation
(
this
,
rotation
)
%
Sets
the
rotation
of
orientation
for
the
tracked
listener
rigid
body
%
%
Given
rotation
has
to
be
a
Matlab
quaternion
type
(
order
:
w
(
real
),
i
,
j
,
k
)
%
...
...
@@ -284,8 +276,35 @@ classdef itaVA < handle
%
%
rotation
[
quaternion
]
Rotation
of
rigid
body
%
VAMatlab
(
'SetRigidBodyRotation'
,
this.handle
,
rotation
)
VAMatlab
(
'SetTrackedListenerRigidBodyRotation'
,
this.handle
,
rotation
)
end
%
--
Tracked
real
-
world
listener
--
%
function
setTrackedRealWorldListener
(
this
,
listener_id
)
%
Connects
a
VA
real
-
world
listener
with
the
tracked
real
-
world
rigid
body
%
%
Parameters
:
%
%
listener_id
[
integer
-
1
x1
]
VA
listener
id
%
VAMatlab
(
'SetTrackedRealWorldListener'
,
this.handle
,
listener_id
);
end
@
todo
%
--
Tracked
source
--
%
function
setTrackedSource
(
this
,
source_id
)
%
Connects
a
VA
source
with
the
tracked
source
rigid
body
%
%
Parameters
:
%
%
source_id
[
integer
-
1
x1
]
VA
listener
id
%
VAMatlab
(
'SetTrackedSource'
,
this.handle
,
source_id
);
end
%%
--=
Functions
=--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment