[Question] How to create a clickable button in Isaac Sim when using XR #4159
Replies: 3 comments 2 replies
-
|
Thank you for posting this. I'll move this to our Discussions section for follow up. @peterd-NV, @rwiltz for vis. |
Beta Was this translation helpful? Give feedback.
-
|
A possible workaround is to use keyboard inputs to replace button interactions in the VR interface. This works well as a temporary. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sashansamarajeewa if you are using CooudXR we do support adding UI in the headset and wiring it up in Isaac Lab. Take a look at this line here: https://github.com/isaac-sim/IsaacLab/blob/main/source/isaaclab/isaaclab/devices/openxr/openxr_device.py#L84 this subscribes Isaac Lab to the message bus. At the end of the same file you can see how the messages are handled. To send the message, you then use the CloudXR SDK to add UI in the client application (using native code IE swift UI on the AVP) and connect the UI to CloudXR. Example: https://github.com/isaac-sim/isaac-xr-teleop-sample-client-apple/blob/main/IsaacXRTeleopClient/TeleopControlView.swift If you are not using CloudXR, you need enable enable XR UI kit parameter if you desire for those elements rendered by Isaac Lab to be interactive. Let me know if that's the path you are interested in. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Build Info
Describe the versions that you are currently using:
Description
I’m using Isaac Sim with XR and I’d like to create an in-world button that the XR user can press to trigger Python callbacks (e.g. start/stop).
I’ve tried using omni.ui widgets with WidgetComponent and UiContainer,
The widget shows up correctly in XR, but the button is not clickable from inside XR.
What is the recommended/supported way to create interactive buttons that can be pressed by the XR user inside Isaac Sim? If there is an example or sample extension that shows a clickable XR button, could you point me to it?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions