Webots与MATLAB联合仿真 —— 错误记录(3)

??????? cd ???????????? G:\桌面\WEBOTS~1\controllers\youbot_matlab_simulink (????????????????)?? ???? launcher (line 160) cd([WEBOTS_PROJECT '/controllers/' WEBOTS_CONTROLLER_NAME]); WARNING: “youbot_matlab_simulink”控制器退出,状态:-1。

在这里插入图片描述
解决方案:
放在全英文路径下得到解决

在这里插入图片描述
解决方案:将From Workspace修改成Const


Simulation
Function 'calllib' not supported for code generation.

Function 'wb_robot_step.m' (#33.244.295), line 6, column 10: "calllib('libController', 'wb_robot_step', duration)" Launch diagnostic report. Component:MATLAB Function | Category:Coder error Function call failed.

Function 'MATLAB Function' (#23.34.50), line 2, column 5: "wb_robot_step(T)" Launch diagnostic report. Component:MATLAB Function | Category:Coder error Function 'calllib' not supported for code generation.

Function 'wb_motor_set_position.m' (#34.252.316), line 6, column 1: "calllib('libController', 'wb_motor_set_position', tag, position)" Launch diagnostic report.
Component:MATLAB Function | Category:Coder error Function call failed.

在这里插入图片描述
解决方案:
在webots库文件中,加入语句:coder.extrinsic('calllib');