forked from robotology/idyntree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getFrameName.m
24 lines (21 loc) · 947 Bytes
/
getFrameName.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
function frameName = getFrameName(KinDynModel,frameID)
% GETFRAMENAME gets the name corresponding to a given frame index.
%
% This matlab function wraps a functionality of the iDyntree library.
% For further info see also: https://github.com/robotology/idyntree
%
% FORMAT: frameName = getFrameName(KinDynModel,frameID)
%
% INPUTS: - KinDynModel: a structure containing the loaded model and additional info.
% - frameID: the ID associated to the given frame name.
%
% OUTPUTS: - frameName: a string specifying a valid frame name.
%
% Author : Gabriele Nava ([email protected])
%
% SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
% SPDX-License-Identifier: BSD-3-Clause
%% ------------Initialization----------------
% get the ID of the given frame
frameName = KinDynModel.kinDynComp.getFrameName(frameID);
end