- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The currently-available "load_json" method doe not provide any means of directly figuring out what the problem with loading the file might be. Can we get an overlaoded method that allowes passing an rs2_error parameters to get some info on the failure?
Mo
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello MoA,
You can catch failures and print out the error using try-catch as demonstrated in the RealSense Viewer source code. Check out tools/realsense-viewer/model-views.cpp and search for load_json.
Regards,
Jesus G.
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no source code in tools folder; only executable!
I searched online for the source code and came across this link "https://github.com/IntelRealSense/librealsense/tree/master/tools/realsense-viewer librealsense/tools/realsense-viewer at master · IntelRealSense/librealsense · GitHub " but the source code listed here has no reference to call to load_json.
Mo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello MoA,
Be sure to download the full source code for librealsense. The full source code contains the source files for all of the tools (RealSense Viewer, Depth Quality...), examples, wrappers, etc. You can do this in one of two ways:
1. Goto https://github.com/IntelRealSense/librealsense and click on the Green button that says, "Clone or download" and download the zip.
2. You can also go to https://github.com/IntelRealSense/librealsense/releases and click on source code (zip) under the Assets section of the 2.12.0 release.
Are you using Windows or Ubuntu?
If you are using Windows and would like to use Visual Studio then follow the instructions in this tutorial, https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv, to make the Visual Studio solution and project files for librealsense.
You will end up with a "build" directory that contains the Visual Studio files for every component.
After you do this, navigate to build/tools and open RealsenseTools.sln. There you will find the project and source for the RealSense Viewer.
Let us know if this helps.
Regards,
Jesus G.
Intel Customer Support
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page