Skip to content
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

Undefined function or variable 'rosbag_wrapper' #19

Open
dlgusrl217 opened this issue Jan 17, 2019 · 2 comments
Open

Undefined function or variable 'rosbag_wrapper' #19

dlgusrl217 opened this issue Jan 17, 2019 · 2 comments

Comments

@dlgusrl217
Copy link

dlgusrl217 commented Jan 17, 2019

I have downloaded the rosbag and have set the directory as MATLAB path.
However, when I run the example code it gives the error as shown in the title.
I also tried to move the files in the src folder to '~/Documents/MATLAB/' folder but I still see the same error.
How can I tackle this issue?

@Wan-Xin-90
Copy link

I solved it by helping from a handsome boy.
My errors display on the command window:
`Undefined function or variable 'rosbag_wrapper'.

Error in ros.Bag (line 30)
obj.handle = rosbag_wrapper(uint64(0), 'construct', 'ROSBagWrapper', obj.path);

Error in ros.Bag.load (line 19)
obj = ros.Bag(path);

Error in calibrate_bundle (line 72)
bag = ros.Bag.load(calibration_file);`

The key is the file of "rosbag_wrapper". I download the matlab_rosbag release version from ""
I find the file "rosbag_wrapper.mexa64", and I use the "rosbag_wrapper.mexa64" to exchange the "rosbag_wrapper.mex" which is now in the my used path on matlab.
Then it is ok.

@yesterday2
Copy link

i use git clone https://github.com/bcharrow/matlab_rosbag.git also meet this problem , so i change to download the zip package https://github.com/bcharrow/matlab_rosbag/releases/tag/v0.5 V05 ,then add the directory to matlab path. then it can be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants