The URDF import tool is very useful and I used it many times with the GUI!
I am currently trying to use the same importer from within a LUA script in V-REP (so no GUI wanted). I tried to execute the following command in a child script as well and inside the VREP status bar terminal:
simURDF.importFile('path/to/urdf/file', true, true, false, false, false, false, false, true, false)
For some reason my programmatical approach gives me the following error:
I tried different combinations of boolean values for the input arguments, but the error I get is always about argument 6.> simURDF.importFile(pathToUrdf, true, true, false, false, false, false, false, true, false)
"[string "SANDBOX SCRIPT"]:1: Argument 6 is not correct. (simURDF.importFile @ 'Urdf' plugin)""
What am I doing wrong? Am I maybe supposed to use
sim.callScriptFunction
instead to make this work?Best,
Adrian
Example URDF:
Code: Select all
<?xml version="1.0"?>
<robot name="myfirst">
<link name="base_link">
<visual>
<geometry>
<cylinder length="0.6" radius="0.2"/>
</geometry>
</visual>
</link>
</robot>