-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scene graph demo improvements #693
Conversation
ds58
commented
Feb 21, 2025
- Fixes a somewhat common crashing bug related to the ZED SVO recorder panel
- Adds a utility for ensuring you have a GPU of some minimum spec (In the RDXSceneGraphDemo, this was problematic because ZED Neural mode takes so much GPU it is super laggy on lower end spec or laptops). This utility could also be useful other places.
@@ -63,6 +65,61 @@ public static boolean hasCUDADevice() | |||
return getCUDADeviceCount() > 0; | |||
} | |||
|
|||
public static String getFirstDeviceName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why "first" device name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. I changed it to getDeviceName(int device)
@@ -155,6 +157,11 @@ protected boolean startSensor() | |||
return true; | |||
} | |||
|
|||
public void disableNeuralMode(boolean disableNeuralMode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the depth mode should be a constructor parameter? That way we can pass in whatever depth mode we want. It would allow us to use different modes on a case-by-case basis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea. Much better.