Items with no label
3338 Discussions

A bug when I am trying to run RealSense camera with Matlab

CDuda2
Beginner
1,185 Views

I have this bug when when I am trying to run RealSense camera with Matlab (I am using D435 version):

 

Undefined variable "realsense" or class "realsense.librealsense_mex".

 

Error in realsense.config (line 9)

      this.objectHandle = realsense.librealsense_mex('rs2::config', 'new');

 

Error in realsense.rosbag_example (line 3)

  cfg = realsense.config();

 

 

This happens when I try to run the code that I found here:

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab.

for example when I try to run "rosbag_example.m".

The camera works when I use it without Matlab, but when I use it with Matlab I get this bug. Also a month ago the same code worked, and I succeeded using the camera with Matlab, but now it is not working.

 

0 Kudos
1 Reply
MartyG
Honored Contributor III
995 Views

Please visit the discussion linked to below and read downward through the comments from the point in the discussion that I have linked to. I hope there will be something in that advice that helps with your problem.

 

https://github.com/IntelRealSense/librealsense/issues/3241#issuecomment-462921243

0 Kudos
Reply