IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Bug Report] reinforcement_learning/rsl_rl/play.py raise 'PPO' object has no attribute 'actor_critic'

Open singleye opened this issue 1 year ago • 3 comments

Describe the bug

When trying to test the rsl_rl reinforcement learning result, 'scripts/reinforcement_learning/rsl_rl/play.py' raises exception complaining not being able to find "AttributeError: 'PPO' object has no attribute 'actor_critic'"

This is the code caused the issue:

121     # export policy to onnx/jit
122     export_model_dir = os.path.join(os.path.dirname(resume_path), "exported")
123     export_policy_as_jit(
124         ppo_runner.alg.actor_critic, ppo_runner.obs_normalizer, path=export_model_dir, filename="policy.pt"
125     )
126     export_policy_as_onnx(
127         ppo_runner.alg.actor_critic, normalizer=ppo_runner.obs_normalizer, path=export_model_dir, filename="policy.onnx"
128     )

Steps to reproduce

  1. train a model with rsl_rl, my training task is 'Isaac-Velocity-Rough-Unitree-Go2-v0'
  2. play the trained model with following command
$  ./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/play.py --task=Isaac-Velocity-Rough-Unitree-Go2-Play-v0
INFO] Using python from: /home/kingo/miniconda3/envs/isaaclab/bin/python
[Warning] [simulation_app.simulation_app] Modules: ['omni.kit_app'] were loaded before SimulationApp was started and might not be loaded correctly.
[Warning] [simulation_app.simulation_app] Please check to make sure no extra omniverse or pxr modules are imported before the call to SimulationApp(...)
Loading user config located at: '/home/kingo/miniconda3/envs/isaaclab/lib/python3.10/site-packages/omni/data/Kit/Isaac-Sim/4.5/user.config.json'
[Info] [carb] Logging to file: /home/kingo/miniconda3/envs/isaaclab/lib/python3.10/site-packages/omni/logs/Kit/Isaac-Sim/4.5/kit_20250328_122217.log
2025-03-28 04:22:17 [0ms] [Warning] [omni.kit.app.plugin] No crash reporter present, dumps uploading isn't available.
[0.068s] [ext: omni.kit.async_engine-0.0.1] startup
[0.217s] [ext: omni.metrics.core-0.0.1] startup
[0.218s] [ext: omni.client.lib-1.0.0] startup
[0.245s] [ext: omni.blobkey-1.1.2] startup
[0.245s] [ext: omni.stats-1.0.1] startup
[0.246s] [ext: omni.datastore-0.0.0] startup
[0.251s] [ext: omni.client-1.2.2] startup
[0.257s] [ext: omni.ujitso.default-1.0.0] startup
[0.259s] [ext: omni.hsscclient-1.1.1] startup
2025-03-28 04:22:17 [238ms] [Warning] [omni.datastore] OmniHub is inaccessible
[0.278s] [ext: omni.gpu_foundation.shadercache.vulkan-1.0.0] startup
[0.282s] [ext: omni.assets.plugins-0.0.0] startup
[0.283s] [ext: omni.gpu_foundation-0.0.0] startup
[0.292s] [ext: carb.windowing.plugins-1.0.0] startup
[0.299s] [ext: omni.kit.renderer.init-0.0.0] startup

|---------------------------------------------------------------------------------------------|
| Driver Version: 535.161.07    | Graphics API: Vulkan
|=============================================================================================|
| GPU | Name                             | Active | LDA | GPU Memory | Vendor-ID | LUID       |
|     |                                  |        |     |            | Device-ID | UUID       |
|     |                                  |        |     |            | Bus-ID    |            |
|---------------------------------------------------------------------------------------------|
| 0   | NVIDIA GeForce RTX 2080 Ti       | Yes: 0 |     | 11510   MB | 10de      | 0          |
|     |                                  |        |     |            | 1e04      | f204756f.. |
|     |                                  |        |     |            | 1         |            |
|=============================================================================================|
| OS: 22.04.4 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.4, Kernel: 6.5.0-21-generic
| XServer Vendor: The X.Org Foundation, XServer Version: 12101004 (1.21.1.4)
| Processor: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
| Cores: 6 | Logical Cores: 12
|---------------------------------------------------------------------------------------------|
| Total Memory (MB): 31851 | Free Memory: 24011
| Total Page/Swap (MB): 2047 | Free Page/Swap: 0
|---------------------------------------------------------------------------------------------|
[0.867s] [ext: omni.kit.pipapi-0.0.0] startup
[0.869s] [ext: omni.kit.pip_archive-0.0.0] startup
[0.869s] [ext: omni.materialx.libs-1.0.6] startup
[0.876s] [ext: omni.kit.telemetry-0.5.1] startup
[0.897s] [ext: omni.usd.config-1.0.5] startup
[0.901s] [ext: omni.gpucompute.plugins-0.0.0] startup
[0.902s] [ext: omni.usd.libs-1.0.1] startup
[1.001s] [ext: omni.kit.loop-isaac-1.2.1] startup
[1.002s] [ext: omni.kit.test-1.1.2] startup
[1.052s] [ext: omni.mdl-55.0.1] startup
[1.070s] [ext: omni.iray.libs-0.0.0] startup
[1.076s] [ext: omni.mdl.neuraylib-0.2.10] startup
[1.078s] [ext: omni.kit.usd.mdl-1.0.7] startup
[1.173s] [ext: omni.appwindow-1.1.9] startup
[1.451s] [ext: omni.kit.renderer.core-1.0.2] startup
[2.762s] [ext: omni.kit.renderer.capture-0.0.0] startup
[2.766s] [ext: omni.kit.renderer.imgui-1.0.2] startup
[2.855s] [ext: omni.ui-2.26.5] startup
[2.865s] [ext: omni.kit.mainwindow-1.0.3] startup
[2.866s] [ext: carb.audio-0.1.0] startup
[2.872s] [ext: omni.uiaudio-1.0.0] startup
[2.873s] [ext: omni.kit.uiapp-0.0.0] startup
[2.873s] [ext: omni.usd.schema.metrics.assembler-106.5.0] startup
[2.887s] [ext: omni.usd.schema.audio-0.0.0] startup
[2.891s] [ext: omni.usd.schema.semantics-0.0.0] startup
[2.894s] [ext: omni.usd.schema.geospatial-0.0.0] startup
[2.897s] [ext: omni.usd.schema.anim-0.0.0] startup
[2.925s] [ext: omni.usd_resolver-1.0.0] startup
[2.929s] [ext: omni.kit.actions.core-1.0.0] startup
[2.931s] [ext: usdrt.scenegraph-7.5.1] startup
[2.987s] [ext: omni.kit.commands-1.4.9] startup
[2.990s] [ext: omni.graph.exec-0.9.4] startup
[2.990s] [ext: omni.kit.usd_undo-0.1.8] startup
[2.991s] [ext: omni.kit.exec.core-0.13.4] startup
[2.993s] [ext: omni.kit.audiodeviceenum-1.0.1] startup
[2.995s] [ext: omni.activity.core-1.0.1] startup
[2.996s] [ext: omni.kit.window.popup_dialog-2.0.24] startup
[3.002s] [ext: omni.usd.core-1.4.2] startup
[3.006s] [ext: omni.resourcemonitor-107.0.0] startup
[3.008s] [ext: omni.timeline-1.0.11] startup
[3.010s] [ext: omni.kit.widget.nucleus_connector-1.1.10] startup
[3.012s] [ext: omni.hydra.usdrt_delegate-7.5.1] startup
[3.024s] [ext: omni.hydra.scene_delegate-0.3.3] startup
[3.030s] [ext: omni.usd-1.12.4] startup
[3.077s] [ext: omni.kit.asset_converter-2.8.3] startup
[3.090s] [ext: omni.usd.schema.physx-106.5.7] startup
[3.123s] [ext: isaacsim.robot.schema-3.1.2] startup
[3.131s] [ext: omni.usd.schema.omniscripting-1.0.0] startup
[3.136s] [ext: omni.usd.schema.forcefield-106.5.7] startup
[3.141s] [ext: omni.usd.schema.omnigraph-1.0.0] startup
[3.147s] [ext: omni.kit.widget.options_menu-1.1.6] startup
[3.151s] [ext: omni.kit.widget.path_field-2.0.11] startup
[3.152s] [ext: omni.kit.widget.options_button-1.0.3] startup
[3.154s] [ext: omni.kit.helper.file_utils-0.1.9] startup
[3.156s] [ext: omni.kit.menu.core-1.1.2] startup
[3.157s] [ext: omni.kit.widget.filebrowser-2.10.52] startup
[3.162s] [ext: omni.kit.widget.context_menu-1.2.4] startup
[3.163s] [ext: omni.ui.scene-1.11.2] startup
[3.169s] [ext: omni.kit.widget.browser_bar-2.0.10] startup
[3.170s] [ext: omni.kit.notification_manager-1.0.9] startup
[3.172s] [ext: omni.kit.clipboard-1.0.5] startup
[3.173s] [ext: omni.kit.menu.utils-1.7.7] startup
[3.179s] [ext: omni.kit.window.filepicker-2.11.7] startup
[3.190s] [ext: omni.kit.widget.filter-1.1.4] startup
[3.191s] [ext: omni.kit.window.file_exporter-1.0.31] startup
[3.195s] [ext: omni.kit.stage_template.core-1.1.22] startup
[3.195s] [ext: omni.kit.window.content_browser_registry-0.0.6] startup
[3.196s] [ext: omni.kit.widget.searchfield-1.1.8] startup
[3.198s] [ext: omni.kit.window.file_importer-1.1.14] startup
[3.199s] [ext: omni.kit.window.drop_support-1.0.4] startup
[3.199s] [ext: omni.kit.usd.layers-2.2.0] startup
[3.207s] [ext: omni.kit.window.file-1.3.57] startup
[3.211s] [ext: omni.kit.widget.highlight_label-1.0.3] startup
[3.212s] [ext: omni.kit.hotkeys.core-1.3.10] startup
[3.213s] [ext: omni.kit.context_menu-1.8.3] startup
[3.215s] [ext: omni.kit.window.content_browser-2.10.3] startup
[3.232s] [ext: omni.kit.property.adapter.core-1.0.2] startup
[3.235s] [ext: omni.inspect-1.0.1] startup
[3.237s] [ext: omni.kit.window.property-1.11.5] startup
[3.239s] [ext: omni.kit.widget.stage-2.11.6] startup
[3.249s] [ext: omni.kit.menu.create-1.0.17] startup
[3.251s] [ext: omni.kit.property.adapter.usd-1.0.2] startup
[3.252s] [ext: omni.kit.property.adapter.fabric-1.0.3] startup
[3.253s] [ext: omni.graph.core-2.181.8] startup
[3.255s] [ext: omni.kit.widget.searchable_combobox-1.0.6] startup
[3.256s] [ext: omni.kit.property.usd-4.2.16] startup
[3.265s] [ext: isaacsim.core.deprecation_manager-0.2.2] startup
[3.266s] [ext: omni.kit.scripting-106.5.2] startup
[3.270s] [ext: isaacsim.core.version-2.0.2] startup
[3.271s] [ext: omni.kvdb-106.5.7] startup
[3.273s] [ext: isaacsim.storage.native-1.0.6] startup
[3.274s] [ext: omni.localcache-106.5.7] startup
[3.276s] [ext: omni.usdphysics-106.5.7] startup
[3.282s] [ext: omni.physx.foundation-106.5.7] startup
[3.284s] [ext: omni.convexdecomposition-106.5.7] startup
[3.291s] [ext: omni.kit.widget.settings-1.2.2] startup
[3.294s] [ext: omni.physx.cooking-106.5.7] startup
[3.303s] [ext: omni.kit.window.preferences-1.7.0] startup
[3.307s] [ext: omni.physx-106.5.7] startup
[3.321s] [ext: isaacsim.core.throttling-2.0.2] startup
[3.322s] [ext: isaacsim.replicator.behavior-1.0.8] startup
[3.323s] [ext: isaacsim.app.about-2.0.7] startup
[3.331s] [ext: isaacsim.gui.property-1.0.4] startup
[3.420s] [ext: semantics.schema.editor-0.3.10] startup
[3.422s] [ext: semantics.schema.property-1.0.5] startup
[3.423s] [ext: omni.index.libs-380600.1777.0] startup
[3.423s] [ext: omni.ujitso.processor.texture-1.0.0] startup
[3.425s] [ext: omni.index-1.0.1] startup
[3.425s] [ext: omni.ujitso.client-0.0.0] startup
[3.426s] [ext: omni.volume-0.5.0] startup
[3.432s] [ext: omni.hydra.rtx.shadercache.vulkan-1.0.0] startup
[3.433s] [ext: omni.physx.stageupdate-106.5.7] startup
[3.435s] [ext: omni.kit.numpy.common-0.1.2] startup
[3.437s] [ext: omni.hydra.rtx-1.0.0] startup
2025-03-28 04:22:20 [3,424ms] [Warning] [omni.log] Source: omni.hydra was already registered.
[3.465s] [ext: omni.isaac.dynamic_control-1.3.15] startup
2025-03-28 04:22:20 [3,448ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users.
[3.471s] [ext: omni.warp.core-1.5.0] startup
[3.639s] [ext: omni.physics.tensors-106.5.7] startup
[3.650s] [ext: omni.kit.raycast.query-1.0.5] startup
[3.656s] [ext: omni.kit.hydra_texture-1.4.0] startup
[3.661s] [ext: isaacsim.core.utils-2.2.8] startup
[3.664s] [ext: omni.physx.tensors-106.5.7] startup
[3.671s] [ext: omni.kit.viewport.scene_camera_model-1.0.5] startup
[3.677s] [ext: omni.kit.viewport.legacy_gizmos-1.0.16] startup
[3.681s] [ext: omni.kit.viewport.registry-104.0.6] startup
[3.681s] [ext: isaacsim.core.simulation_manager-0.3.3] startup
[5.077s] [ext: omni.kit.widget.viewport-107.0.7] startup
[5.082s] [ext: omni.kit.material.library-1.5.15] startup
[5.089s] [ext: omni.hydra.engine.stats-1.0.3] startup
[5.093s] [ext: isaacsim.core.cloner-1.3.4] startup
[5.094s] [ext: omni.kit.viewport.window-107.0.8] startup
[5.109s] [ext: omni.graph.tools-1.79.1] startup
[5.137s] [ext: omni.kit.viewport.utility-1.0.18] startup
[5.138s] [ext: omni.kit.manipulator.viewport-107.0.1] startup
[5.139s] [ext: omni.graph-1.140.2] startup
[5.190s] [ext: omni.ui_query-1.1.7] startup
[5.191s] [ext: omni.graph.visualization.nodes-2.1.1] startup
[5.199s] [ext: omni.kit.ui_test-1.3.3] startup
[5.203s] [ext: omni.graph.action_core-1.1.7] startup
[5.210s] [ext: omni.kit.widget.text_editor-1.0.2] startup
[5.212s] [ext: omni.kit.widget.graph-1.12.17] startup
[5.223s] [ext: isaacsim.core.prims-0.3.7] startup
[5.257s] [ext: omni.graph.action_nodes-1.40.1] startup
[5.262s] [ext: omni.graph.scriptnode-1.40.1] startup
[5.266s] [ext: omni.kit.graph.delegate.default-1.2.2] startup
[5.271s] [ext: omni.graph.image.core-0.6.0] startup
[5.273s] [ext: omni.graph.action-1.120.0] startup
[5.273s] [ext: omni.sensors.nv.common-2.5.0-coreapi] startup
[5.293s] [ext: omni.kit.graph.editor.core-1.5.3] startup
[5.299s] [ext: omni.graph.image.nodes-1.3.0] startup
[5.302s] [ext: omni.kit.graph.usd.commands-1.3.1] startup
[5.315s] [ext: omni.kit.widget.material_preview-1.0.16] startup
[5.322s] [ext: omni.sensors.nv.wpm-2.4.0-coreapi] startup
[5.327s] [ext: omni.kit.viewport.menubar.core-107.1.2] startup
[5.345s] [ext: omni.graph.nodes-1.162.1] startup
[5.360s] [ext: omni.kit.primitive.mesh-1.0.17] startup
[5.365s] [ext: omni.kit.window.material_graph-1.8.19] startup
[5.396s] [ext: omni.syntheticdata-0.6.10] startup
[5.412s] [ext: omni.warp-1.5.0] startup
[5.420s] [ext: omni.kit.stage_templates-1.2.6] startup
[5.428s] [ext: omni.kit.window.extensions-1.4.25] startup
[5.447s] [ext: omni.sensors.nv.materials-1.4.0-coreapi] startup
[5.453s] [ext: omni.replicator.core-1.11.35] startup
2025-03-28 04:22:23 [5,581ms] [Warning] [omni.replicator.core.scripts.extension] No material configuration file, adding configuration to material settings directly.
[5.608s] [ext: isaacsim.core.api-4.2.16] startup
[5.627s] [ext: isaacsim.gui.components-1.0.9] startup
[5.637s] [ext: omni.sensors.nv.ids-1.4.0-coreapi] startup
[5.643s] [ext: isaacsim.core.nodes-2.1.4] startup
[5.653s] [ext: isaacsim.robot.surface_gripper-2.0.6] startup
[5.661s] [ext: omni.sensors.nv.lidar-2.6.3-coreapi] startup
[5.679s] [ext: omni.sensors.nv.radar-2.6.1-coreapi] startup
[5.689s] [ext: omni.kit.manipulator.transform-106.0.1] startup
[5.700s] [ext: omni.kit.widget.toolbar-1.7.3] startup
[5.749s] [ext: isaacsim.robot.manipulators-3.0.4] startup
[5.765s] [ext: omni.kit.widget.prompt-1.0.7] startup
[5.773s] [ext: omni.kit.manipulator.selector-1.1.1] startup
[5.781s] [ext: isaacsim.util.debug_draw-2.0.2] startup
[5.792s] [ext: omni.kit.manipulator.tool.snap-1.5.12] startup
[5.837s] [ext: omni.sensors.tiled-0.0.6] startup
[5.840s] [ext: omni.kit.tool.asset_importer-2.12.2] startup
[5.847s] [ext: isaacsim.sensors.camera-0.2.9] startup
[5.860s] [ext: isaacsim.sensors.physx-2.2.4] startup
[5.876s] [ext: omni.kit.viewport.manipulator.transform-107.0.4] startup
[5.882s] [ext: isaacsim.sensors.rtx-13.6.3] startup
[5.895s] [ext: isaacsim.asset.importer.mjcf-2.3.3] startup
[5.969s] [ext: omni.anim.curve.core-1.2.0] startup
[6.000s] [ext: omni.fabric.commands-1.1.5] startup
[6.004s] [ext: omni.kit.manipulator.prim.core-107.0.7] startup
[6.012s] [ext: omni.graph.ui_nodes-1.40.1] startup
[6.018s] [ext: omni.kit.selection-0.1.5] startup
[6.022s] [ext: omni.kit.manipulator.camera-106.0.3] startup
[6.028s] [ext: isaacsim.simulation_app-2.4.2] startup
[6.028s] [ext: omni.kit.manipulator.prim.fabric-107.0.4] startup
[6.032s] [ext: omni.kit.manipulator.prim.usd-107.0.3] startup
[6.035s] [ext: omni.kit.menu.edit-1.1.25] startup
[6.039s] [ext: omni.debugdraw-0.1.3] startup
[6.044s] [ext: omni.kit.widget.zoombar-1.0.5] startup
[6.046s] [ext: omni.kit.manipulator.selection-106.0.1] startup
[6.049s] [ext: omni.kit.manipulator.prim-107.0.0] startup
[6.049s] [ext: omni.kit.menu.file-1.1.15] startup
[6.052s] [ext: omni.kit.property.audio-1.0.16] startup
[6.055s] [ext: omni.kit.widget.stage_icons-1.0.6] startup
[6.059s] [ext: omni.kit.browser.core-2.3.11] startup
[6.065s] [ext: omni.kit.usd.collect-2.2.22] startup
[6.070s] [ext: omni.kit.window.stage-2.5.11] startup
[6.084s] [ext: omni.kit.browser.folder.core-1.10.1] startup
[6.093s] [ext: omni.kit.viewport.actions-107.0.0] startup
[6.099s] [ext: omni.kit.tool.collect-2.2.16] startup
[6.103s] [ext: omni.kit.menu.stage-1.2.5] startup
[6.106s] [ext: omni.kit.widget.layers-1.8.2] startup
[6.122s] [ext: omni.kit.viewport.menubar.display-107.0.3] startup
[6.126s] [ext: isaacsim.sensors.physics-0.3.5] startup
[6.134s] [ext: isaacsim.examples.browser-0.1.8] startup
[6.139s] [ext: omni.usdphysics.ui-106.5.7] startup
[6.173s] [ext: omni.kit.stagerecorder.core-105.0.5] startup
[6.178s] [ext: omni.hydra.scene_api-0.1.2] startup
[6.184s] [ext: omni.kit.property.geometry-1.3.3] startup
[6.188s] [ext: omni.kit.property.render-1.1.3] startup
[6.191s] [ext: omni.kit.stagerecorder.ui-105.0.6] startup
[6.195s] [ext: omni.kit.property.transform-1.5.10] startup
[6.199s] [ext: omni.kit.property.material-1.10.17] startup
[6.206s] [ext: omni.kit.property.light-1.0.11] startup
[6.208s] [ext: omni.kit.property.camera-1.0.9] startup
[6.210s] [ext: omni.physx.commands-106.5.7] startup
[6.214s] [ext: omni.kit.stagerecorder.bundle-105.0.2] startup
[6.215s] [ext: omni.kit.property.bundle-1.3.2] startup
[6.216s] [ext: isaacsim.robot.policy.examples-4.0.3] startup
[6.219s] [ext: isaacsim.asset.importer.urdf-2.3.10] startup
[6.245s] [ext: omni.physx.ui-106.5.7] startup
[6.285s] [ext: omni.kit.viewport.menubar.camera-107.0.2] startup
[6.293s] [ext: omni.kit.window.toolbar-1.6.2] startup
[6.296s] [ext: omni.physx.demos-106.5.7] startup
[6.319s] [ext: omni.kit.property.physx-106.5.7] startup
[6.371s] [ext: omni.kit.viewport.menubar.lighting-106.0.2] startup
[6.376s] [ext: isaacsim.robot.wheeled_robots-4.0.3] startup
[6.385s] [ext: omni.physx.cct-106.5.7] startup
[6.399s] [ext: omni.physx.vehicle-106.5.7] startup
[6.436s] [ext: omni.physx.graph-106.5.7] startup
[6.457s] [ext: omni.physx.supportui-106.5.7] startup
[6.484s] [ext: omni.physx.telemetry-106.5.7] startup
[6.491s] [ext: omni.rtx.window.settings-0.6.17] startup
[6.497s] [ext: omni.physx.camera-106.5.7] startup
[6.515s] [ext: omni.kit.viewport.menubar.render-107.0.8] startup
[6.521s] [ext: omni.kit.window.console-0.2.14] startup
[6.532s] [ext: omni.usd.metrics.assembler-106.5.0] startup
[6.542s] [ext: omni.kit.window.status_bar-0.1.7] startup
[6.548s] [ext: omni.physx.bundle-106.5.7] startup
[6.549s] [ext: omni.replicator.replicator_yaml-2.0.10] startup
[6.566s] [ext: omni.rtx.settings.core-0.6.3] startup
[6.571s] [ext: isaacsim.robot_motion.lula-4.0.4] startup
[6.581s] [ext: omni.usd.metrics.assembler.ui-106.5.0] startup
[6.590s] [ext: isaacsim.asset.browser-1.3.4] startup
[6.662s] [ext: isaacsim.gui.menu-2.0.9] startup
2025-03-28 04:22:24 [6,646ms] [Warning] [omni.kit.menu.utils.app_menu] add_menu_items: menu [<MenuItemDescription name:'New'>, <MenuItemDescription name:'Open'>, <MenuItemDescription name:'Re-open with New Edit Layer'>, <MenuItemDescription name:'Save'>, <MenuItemDescription name:'Save With Options'>, <MenuItemDescription name:'Save As...'>, <MenuItemDescription name:'Save Flattened As...'>, <MenuItemDescription name:'Add Reference'>, <MenuItemDescription name:'Add Payload'>, <MenuItemDescription name:'Exit'>] cannot change delegate
[6.670s] [ext: omni.kit.ui.actions-1.0.2] startup
[6.673s] [ext: omni.kit.viewport.menubar.settings-107.0.3] startup
[6.679s] [ext: isaacsim.robot_motion.motion_generation-8.0.6] startup
[6.685s] [ext: isaaclab-0.36.3] startup
[6.874s] [ext: isaaclab_assets-0.2.1] startup
[7.102s] [ext: isaaclab_tasks-0.10.26] startup
[8.385s] [ext: omni.kit.menu.common-1.1.9] startup
[8.387s] [ext: isaaclab_rl-0.1.1] startup
[8.388s] [ext: isaaclab_mimic-1.0.3] startup
[8.389s] [ext: isaaclab.python-2.0.2] startup
[8.390s] Simulation App Starting
[8.718s] app ready
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : TLAS limit buffer size 8287597056
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : TLAS limit : valid false, within: false
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : TLAS limit : decrement: 167690, decrement size: 8204721408
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : New limit 8682532 (slope: 494, intercept: 3699200)
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : TLAS limit buffer size 4291087616
2025-03-28 04:22:26 [8,715ms] [Warning] [rtx.scenedb.plugin] SceneDbContext : TLAS limit : valid true, within: true
2025-03-28 04:22:26 [8,911ms] [Warning] [omni.usd-abi.plugin] No setting was found for '/rtx-defaults-transient/meshlights/forceDisable'
[13.359s] Simulation App Startup Complete
2025-03-28 04:22:30 [13,407ms] [Warning] [isaaclab.envs.manager_based_env] Seed not set for the environment. The environment creation may not be deterministic.
[13.470s] [ext: omni.physx.fabric-106.5.7] startup
2025-03-28 04:22:38 [20,641ms] [Warning] [omni.hydra.scene_delegate.plugin] Calling getBypassRenderSkelMeshProcessing for prim /World/envs/env_0/Robot/RR_calf/visuals.proto_mesh_0_id0 that has not been populated
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 19536 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 19536 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 6270 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 19536 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 6270 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 6270 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 55278 doesn't match expected size 90402 in faceVarying primvars
2025-03-28 04:22:38 [20,644ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 35124 doesn't match expected size 90402 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 55254 doesn't match expected size 90378 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 55278 doesn't match expected size 90402 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 54198 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 54198 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 35124 doesn't match expected size 90378 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 35124 doesn't match expected size 90402 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 54198 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RL_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 56922 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FR_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 56922 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/FL_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 56922 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/base/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_4': buffer size 30390 doesn't match expected size 233784 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/base/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_3': buffer size 11886 doesn't match expected size 233784 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/base/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_2': buffer size 6015 doesn't match expected size 233784 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/base/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 6960 doesn't match expected size 233784 in faceVarying primvars
2025-03-28 04:22:38 [20,645ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/base/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 178533 doesn't match expected size 233784 in faceVarying primvars
2025-03-28 04:22:38 [20,651ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 55254 doesn't match expected size 90378 in faceVarying primvars
2025-03-28 04:22:38 [20,651ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_thigh/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 35124 doesn't match expected size 90378 in faceVarying primvars
2025-03-28 04:22:38 [20,651ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 54198 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,651ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_hip/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 56922 doesn't match expected size 111120 in faceVarying primvars
2025-03-28 04:22:38 [20,652ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st_1': buffer size 19536 doesn't match expected size 25806 in faceVarying primvars
2025-03-28 04:22:38 [20,652ms] [Warning] [omni.hydra] Mesh '/World/envs/env_0/Robot/RR_calf/visuals.proto_mesh_0_id0' has corrupted data in primvar 'st': buffer size 6270 doesn't match expected size 25806 in faceVarying primvars
[INFO][AppLauncher]: Loading experience file: /home/kingo/workspace/nvidia/IsaacLab/apps/isaaclab.python.kit
[INFO]: Parsing configuration from: isaaclab_tasks.manager_based.locomotion.velocity.config.go2.rough_env_cfg:UnitreeGo2RoughEnvCfg_PLAY
[INFO]: Parsing configuration from: isaaclab_tasks.manager_based.locomotion.velocity.config.go2.agents.rsl_rl_ppo_cfg:UnitreeGo2RoughPPORunnerCfg
[INFO] Loading experiment from directory: /home/kingo/workspace/nvidia/IsaacLab/logs/rsl_rl/unitree_go2_rough
[INFO]: Base environment:
    Environment device    : cuda:0
    Environment seed      : None
    Physics step-size     : 0.005
    Rendering step-size   : 0.02
    Environment step-size : 0.02
[INFO] Generating terrains randomly took : 0.501856 seconds
[INFO]: Time taken for scene creation : 2.416968 seconds
[INFO]: Scene manager:  <class InteractiveScene>
    Number of environments: 50
    Environment spacing   : 2.5
    Source prim name      : /World/envs/env_0
    Global prim paths     : ['/World/ground']
    Replicate physics     : True
[INFO]: Starting the simulation. This may take a few seconds. Please wait...
[INFO]: Time taken for simulation start : 5.203381 seconds
[INFO] Command Manager:  <CommandManager> contains 1 active terms.
+------------------------------------------------+
|              Active Command Terms              |
+-------+---------------+------------------------+
| Index | Name          |          Type          |
+-------+---------------+------------------------+
|   0   | base_velocity | UniformVelocityCommand |
+-------+---------------+------------------------+

[INFO] Event Manager:  <EventManager> contains 2 active terms.
+--------------------------------------+
| Active Event Terms in Mode: 'startup' |
+----------+---------------------------+
|  Index   | Name                      |
+----------+---------------------------+
|    0     | physics_material          |
|    1     | add_base_mass             |
+----------+---------------------------+
+-------------------------------------+
| Active Event Terms in Mode: 'reset' |
+---------+---------------------------+
|  Index  | Name                      |
+---------+---------------------------+
|    0    | reset_base                |
|    1    | reset_robot_joints        |
+---------+---------------------------+

[INFO] Recorder Manager:  <RecorderManager> contains 0 active terms.
+---------------------+
| Active Recorder Terms |
+-----------+---------+
|   Index   | Name    |
+-----------+---------+
+-----------+---------+

[INFO] Action Manager:  <ActionManager> contains 1 active terms.
+------------------------------------+
|  Active Action Terms (shape: 12)   |
+--------+-------------+-------------+
| Index  | Name        |   Dimension |
+--------+-------------+-------------+
|   0    | joint_pos   |          12 |
+--------+-------------+-------------+

[INFO] Observation Manager: <ObservationManager> contains 1 groups.
+----------------------------------------------------------+
| Active Observation Terms in Group: 'policy' (shape: (235,)) |
+-----------+--------------------------------+-------------+
|   Index   | Name                           |    Shape    |
+-----------+--------------------------------+-------------+
|     0     | base_lin_vel                   |     (3,)    |
|     1     | base_ang_vel                   |     (3,)    |
|     2     | projected_gravity              |     (3,)    |
|     3     | velocity_commands              |     (3,)    |
|     4     | joint_pos                      |    (12,)    |
|     5     | joint_vel                      |    (12,)    |
|     6     | actions                        |    (12,)    |
|     7     | height_scan                    |    (187,)   |
+-----------+--------------------------------+-------------+

[INFO] Termination Manager:  <TerminationManager> contains 2 active terms.
+---------------------------------+
|     Active Termination Terms    |
+-------+--------------+----------+
| Index | Name         | Time Out |
+-------+--------------+----------+
|   0   | time_out     |   True   |
|   1   | base_contact |  False   |
+-------+--------------+----------+

[INFO] Reward Manager:  <RewardManager> contains 10 active terms.
+-----------------------------------------+
|           Active Reward Terms           |
+-------+----------------------+----------+
| Index | Name                 |   Weight |
+-------+----------------------+----------+
|   0   | track_lin_vel_xy_exp |      1.5 |
|   1   | track_ang_vel_z_exp  |     0.75 |
|   2   | lin_vel_z_l2         |     -2.0 |
|   3   | ang_vel_xy_l2        |    -0.05 |
|   4   | dof_torques_l2       |  -0.0002 |
|   5   | dof_acc_l2           | -2.5e-07 |
|   6   | action_rate_l2       |    -0.01 |
|   7   | feet_air_time        |     0.01 |
|   8   | flat_orientation_l2  |      0.0 |
|   9   | dof_pos_limits       |      0.0 |
+-------+----------------------+----------+

[INFO] Curriculum Manager:  <CurriculumManager> contains 1 active terms.
+---------------------------+
|  Active Curriculum Terms  |
+--------+------------------+
| Index  | Name             |
+--------+------------------+
|   0    | terrain_levels   |
+--------+------------------+

Creating window for environment.
[INFO]: Completed setting up the environment...
[INFO]: Loading model checkpoint from: /home/kingo/workspace/nvidia/IsaacLab/logs/rsl_rl/unitree_go2_rough/2025-03-28_01-01-31/model_1499.pt
Actor MLP: Sequential(
  (0): Linear(in_features=235, out_features=512, bias=True)
  (1): ELU(alpha=1.0)
  (2): Linear(in_features=512, out_features=256, bias=True)
  (3): ELU(alpha=1.0)
  (4): Linear(in_features=256, out_features=128, bias=True)
  (5): ELU(alpha=1.0)
  (6): Linear(in_features=128, out_features=12, bias=True)
)
Critic MLP: Sequential(
  (0): Linear(in_features=235, out_features=512, bias=True)
  (1): ELU(alpha=1.0)
  (2): Linear(in_features=512, out_features=256, bias=True)
  (3): ELU(alpha=1.0)
  (4): Linear(in_features=256, out_features=128, bias=True)
  (5): ELU(alpha=1.0)
  (6): Linear(in_features=128, out_features=1, bias=True)
)
Traceback (most recent call last):
  File "/home/kingo/workspace/nvidia/IsaacLab/scripts/reinforcement_learning/rsl_rl/play.py", line 161, in <module>
    main()
  File "/home/kingo/workspace/nvidia/IsaacLab/scripts/reinforcement_learning/rsl_rl/play.py", line 124, in main
    ppo_runner.alg.actor_critic, ppo_runner.obs_normalizer, path=export_model_dir, filename="policy.pt"
AttributeError: 'PPO' object has no attribute 'actor_critic'
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Annotators' for removal
2025-03-28 04:22:39 [22,373ms] [Warning] [omni.graph.core.plugin] Could not find category 'Replicator:Core' for removal
2025-03-28 04:22:39 [22,375ms] [Warning] [omni.graph.core.plugin] Could not find category 'animation' for removal
2025-03-28 04:22:40 [22,575ms] [Warning] [omni.fabric.plugin] gFabricState->gUsdStageToSimStageWithHistoryMap had 1 outstanding SimStageWithHistory(s) at shutdown
2025-03-28 04:22:40 [22,577ms] [Warning] [carb.audio.context] 1 contexts were leaked
2025-03-28 04:22:40 [22,680ms] [Warning] [carb] Recursive unloadAllPlugins() detected!

-->

System Info

Describe the characteristic of your environment:

  • Commit: [e35acc40629adefae0ad171c7869a4cba207d89e]
  • Isaac Sim Version: [4.5.0-rc.36+release.19112.f59b3005.gl]
  • OS: [Ubuntu 22.04]
  • GPU: [RTX 2080 Ti]
  • CUDA: [11.4]
  • GPU Driver: [535.161.07]

Additional context

  • rsl-rl-lib==2.3.0

Checklist

  • [x] I have checked that there is no similar issue in the repo (required)
  • [x] I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • [ ] Criteria 1
  • [ ] Criteria 2

singleye avatar Mar 28 '25 05:03 singleye

Ah it seems the last RSL-RL upgrade messed things up here. Can you downgrade your rsl_rl version to 2.2.3?

./isaaclab.sh -p -m pip install rsl-rl-lib==2.2.3

Mayankm96 avatar Mar 28 '25 06:03 Mayankm96

Hi, I just encountered this problem too.

Changing ppo_runner.alg.actor_critic to ppo_runner.alg.policy in the line with error in play.py seems to solve the problem for me.

titoirfan avatar Mar 28 '25 08:03 titoirfan

Yes, I also tried this fix, and it work!

Hi, I just encountered this problem too.

Changing ppo_runner.alg.actor_critic to ppo_runner.alg.policy in the line with error in play.py seems to solve the problem for me.

singleye avatar Mar 29 '25 07:03 singleye