Hello, i am trying to compile a code that uses addCollision Function.
The syntax:
Tool_name = 'Tool Effector';
Tool = rigidBody(Tool_name);
addCollision(Tool, 'Mesh', "C:\WorkingFolder\Tool.STL");
When using this function from MATLAB, i get no errors. When trying to compile in Coder , i get this:
??? Cell contents reference from a non-cell array object.
so i edited CollisionGeometryFactory, instead of:
geometryFile = parameters{1};
i put:
geometryFile = parameters;
Okay, not the error is somewhere else:
??? Function 'which' not supported for code generation.
Error in ==>> CollisionGeometryFactory Line: 96 Column: 40
Code generation failed: View Error Report
So i took that out as well.
But, then i get:
??? Function 'fileparts' not supported for code generation.
Error in ==>> readCADFile Line: 15 Column: 1
Code generation failed: View Error Report
There i decided to stop.
It states that addCollision is compaitble with C\C++ Coder generation. and i could'nt find a comment about an exception when importing a collison from .STL
What am i missing ?
Thank you