-
Notifications
You must be signed in to change notification settings - Fork 67
/
setFloatingBase.m
28 lines (24 loc) · 1.02 KB
/
setFloatingBase.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
26
27
28
function [] = setFloatingBase(KinDynModel,floatBaseLinkName)
% SETFLOATINGBASE sets the link that is used as floating base.
%
% This matlab function wraps a functionality of the iDyntree library.
% For further info see also: https://github.com/robotology/idyntree
%
% FORMAT: [] = setFloatingBase(KinDynModel,floatBaseLinkName)
%
% INPUTS: - floatBaseLinkName: a string with the name of the link to be
% used as floating base;
% - KinDynModel: a structure containing the loaded model and additional info.
%
% Author : Gabriele Nava ([email protected])
%
% SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
% SPDX-License-Identifier: BSD-3-Clause
%% ------------Initialization----------------
% set the floating base link
ack = KinDynModel.kinDynComp.setFloatingBase(floatBaseLinkName);
% check for errors
if ~ack
error('[setFloatingBase]: unable to set the floating base link.')
end
end