Hello,
Say, I have a Camera Primitive with path /environments/env_0_0/Camera_left
. If I add a ROS Camera object at that path, and then select camera_prim_rel to have that camera - everything is OK - I can read /camera_info
from rostopic echo
after I press Play. I then add a ROS camera as such:
result, occluded_provider = omni.kit.commands.execute(
"ROSBridgeCreateCamera",
path=CAM_PATHNAME,
camera_prim_rel=[cam_prim.GetPath()],
resolution=Gf.Vec2i(1280, 720),
frame_id="camera_left",
camera_info_topic="/camera_info"+suffix,
rgb_enabled=True,
rgb_topic="/rgb"+suffix,
depth_enabled=True,
depth_topic="/depth"+suffix,
segmentation_enabled=True,
semantic_topic="/semantic"+suffix,
instance_topic="/instance"+suffix,
label_topic="/label",
bbox2d_enabled=False,
bbox2d_topic="/bbox_2d",
bbox3d_enabled=False,
bbox3d_topic="/bbox_3d",
queue_size=10,
)
All the attributes are the same - the ROS camera object does get created, all attributes in the SIM look the same. But no topics can be read.
I figured, maybe there’s something to do with instance-ability - doesn’t affect anything.
Snippets: