Fetch the repository succeeded.
function vrchk(vrep, res, buffer)
% Checks VREP return code. Set buffer to 1 if you are reading from a buffered
% call.
% (C) Copyright Renaud Detry 2013.
% Distributed under the GNU General Public License.
% (See http://www.gnu.org/copyleft/gpl.html)
if (nargin < 3),
buffer = false;
end
if (nargin < 2),
error('Missing arguments.');
end
expl = 'Undefined error';
if res == vrep.simx_error_noerror,
% Nothing to say
return;
elseif res == vrep.simx_error_novalue_flag,
if buffer,
% No problem to report
return;
else
expl = 'There is no command reply in the input buffer. This should not always be considered as an error, depending on the selected operation mode';
end
elseif res == vrep.simx_error_timeout_flag,
expl = 'The function timed out (probably the network is down or too slow)';
elseif res == vrep.simx_error_illegal_opmode_flag,
expl = 'The specified operation mode is not supported for the given function';
elseif res == vrep.simx_error_remote_error_flag,
expl = 'The function caused an error on the server side (e.g. an invalid handle was specified)';
elseif res == vrep.simx_error_split_progress_flag,
expl = 'The communication thread is still processing previous split command of the same type';
elseif res == vrep.simx_error_local_error_flag,
expl = 'The function caused an error on the client side';
elseif res == vrep.simx_error_initialize_error_flag,
expl = 'simxStart was not yet called';
end
error(sprintf('Remote API function call returned with error code: %d. Explanation: %s.\n', res, expl));
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。