forked from robotology/idyntree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetFloatingBase.m
25 lines (22 loc) · 1020 Bytes
/
getFloatingBase.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function baseLinkName = getFloatingBase(KinDynModel)
% GETFLOATINGBASE retrieves the floating base link name from the
% reduced model.
%
% This matlab function wraps a functionality of the iDyntree library.
% For further info see also: https://github.com/robotology/idyntree
%
% FORMAT: baseLinkName = getFloatingBase(KinDynModel)
%
% INPUTS: - KinDynModel: a structure containing the loaded model and additional info.
%
% OUTPUTS: - baseLinkName: name of the base link.
%
% Author : Gabriele Nava (gabriele.nava@iit.it)
%
% Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT). All rights reserved.
% This software may be modified and distributed under the terms of the
% GNU Lesser General Public License v2.1 or any later version.
%% ------------Initialization----------------
% get the name of the floating base link
baseLinkName = KinDynModel.kinDynComp.getFloatingBase();
end