RTX lidar "no attribute split" after 2023.1.1 update

Hey,

Just updated to 2023.1.1

when running my RTX lidar script I get an error “AttributeError: ‘NoneType’ object has no attribute ‘split’”

This is a blank project and the below script has worked previously.

import omni.kit.commands
from pxr import Gf
from omni.isaac.core.utils.render_product import create_hydra_texture
import omni.replicator.core as rep
lidar_config = “ZVISION_ML30S”

1. Create The Camera

_, sensor = omni.kit.commands.execute(
“IsaacSensorCreateRtxLidar”,
path=“/sensor”,
parent=None,
config=lidar_config,
translation=(0, 0, 1.0),
orientation=Gf.Quatd(1,0,0,0),
)

2. Create and Attach a render product to the camera

_, render_product_path = create_hydra_texture([1, 1], sensor.GetPath().pathString)

3. Create a Replicator Writer that “writes” points into the scene for debug viewing

writer = rep.writers.get(“RtxLidarDebugDrawPointCloudBuffer”)
writer.attach([render_product_path])

4. Create Annotator to read the data from with annotator.get_data()

annotator = rep.AnnotatorRegistry.get_annotator(“RtxSensorCpuIsaacCreateRTXLidarScanBuffer”)
annotator.attach([render_product_path])

2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] AttributeError: ‘NoneType’ object has no attribute ‘split’
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin]
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] At:
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(709): _attach
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(621): attach
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(210): attach
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin] c:/users/s_dem/appdata/local/temp/x2fk.0/script_1703876270.py(21):
2023-12-29 18:57:50 [Error] [carb.scripting-python.plugin]
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] [py stderr]: AttributeError: ‘NoneType’ object has no attribute ‘split’
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin]
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] At:
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(709): _attach
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(621): attach
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] c:/users/s_dem/appdata/local/ov/pkg/isaac_sim-2023.1.1/extscache/omni.replicator.core-1.10.20+105.1.wx64.r.cp310/omni/replicator/core/scripts/writers.py(210): attach
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin] c:/users/s_dem/appdata/local/temp/x2fk.0/script_1703876270.py(21):
2023-12-29 18:57:50 [Error] [omni.kit.app.plugin]

The documentation needs updated. Replace the line in #2:

_, render_product_path = create_hydra_texture([1, 1], sensor.GetPath().pathString)

with this new line and it should start working again.

render_product_path = rep.create.render_product(sensor.GetPath(), [1, 1], name="Isaac")

this is the same example, but fixed.
https://docs.omniverse.nvidia.com/isaacsim/latest/features/sensors_simulation/isaac_sim_sensors_rtx_based_lidar.html

This worked perfectly thank you ;)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.