Items with no label
3335 Discussions

Suggestion to enhance the SDK - rs400::advanced_mode::load_json

MAbdo2
New Contributor I
1,749 Views

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

0 Kudos
3 Replies
idata
Employee
495 Views

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
0 Kudos
MAbdo2
New Contributor I
495 Views

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

0 Kudos
idata
Employee
495 Views

 

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

 

0 Kudos
Reply