In Example 8.4. Import URDF using Python, in line 38, the invocation of import_robot()
should be
prim_path = urdf_interface.import_robot(root_path, file_name, imported_robot, import_config, '/World/fancy_franka')
Here the last argument '/World/fancy_franka'
is added. Otherwise the following error message appears
File “/isaac-sim/exts/omni.isaac.examples/omni/isaac/examples/hello_world/hello_world.py”, line 39, in setup_scene
prim_path = urdf_interface.import_robot(root_path, file_name, imported_robot, import_config)
TypeError: import_robot(): incompatible function arguments. The following argument types are supported:
1. (self: omni.isaac.urdf._urdf.Urdf, arg0: str, arg1: str, arg2: omni.isaac.urdf._urdf.UrdfRobot, arg3: omni.isaac.urdf._urdf.ImportConfig, arg4: str) → strInvoked with: <omni.isaac.urdf._urdf.Urdf object at 0x7f6ec92c5db0>, ‘/isaac-sim/exts/omni.isaac.urdf/data/urdf/robots/franka_description/robots’, ‘panda_arm_hand.urdf’, <omni.isaac.urdf._urdf.UrdfRobot object at 0x7f6e2498c6f0>, <omni.isaac.urdf._urdf.ImportConfig object at 0x7f6ea3f01bf0>
The signature of the import_robot()
function can be found in /isaac-sim/exts/omni.isaac.urdf/omni/isaac/urdf/scripts/commands.py
in line 101.