Open Maverobot opened 2 months ago
I could not get the command URDFParseAndImportFile working. I tried with
URDFParseAndImportFile
result, prim_path = omni.kit.commands.execute( "URDFParseAndImportFile", urdf_path=urdf_path, dest_path=dest_path, import_config=import_config, )
After this line, the result became True and prim_path became /my_robot_name. However, the robot has NOT been added to the stage in the omniverse app.
result
True
prim_path
/my_robot_name
After checking the source code, I found something quite strange.
In https://github.com/isaac-sim/urdf-importer-extension/blob/b161d55f4bcabe266b8db6707b5c2768aedcde21/source/extensions/omni.importer.urdf/python/scripts/commands.py#L136-L152, the 5th argument of import_robot is "path to USD file" but 5th argument should be stage according to https://github.com/isaac-sim/urdf-importer-extension/blob/b161d55f4bcabe266b8db6707b5c2768aedcde21/source/extensions/omni.importer.urdf/bindings/BindingsUrdfPython.cpp#L411-L429, where the docstring also seems to be outdated.
import_robot
stage
I could not get the command
URDFParseAndImportFile
working. I tried withAfter this line, the
result
becameTrue
andprim_path
became/my_robot_name
. However, the robot has NOT been added to the stage in the omniverse app.After checking the source code, I found something quite strange.
In https://github.com/isaac-sim/urdf-importer-extension/blob/b161d55f4bcabe266b8db6707b5c2768aedcde21/source/extensions/omni.importer.urdf/python/scripts/commands.py#L136-L152, the 5th argument of
import_robot
is "path to USD file" but 5th argument should bestage
according to https://github.com/isaac-sim/urdf-importer-extension/blob/b161d55f4bcabe266b8db6707b5c2768aedcde21/source/extensions/omni.importer.urdf/bindings/BindingsUrdfPython.cpp#L411-L429, where the docstring also seems to be outdated.