matlab_ros_bridge icon indicating copy to clipboard operation
matlab_ros_bridge copied to clipboard

Help.. Failed to process package 'matlab_ros_bridge':

Open johnjavz opened this issue 9 years ago • 10 comments

Hi Giovanni and Ricardo,

I have tried setting the matlab_ros_bridge, with the corresponding indications. When compiling an error. Attach Images and compilation instruction.

catkin_make_isolated --cmake-args -DBOOST_ROOT=/home/john/boost_1_49_0_gcc_4_7 -DBoost_NO_SYSTEM_PATHS=ON -DCMAKE_C_COMPILER=/usr/bin/gcc-4.7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.7 -DCMAKE_CXX_FLAGS=-U_GNU_SOURCE -DMATLAB_DIR=/home/john/matlab2014a/R2014a

uno

dos

Att,

John J.

johnjavz avatar Sep 15 '15 05:09 johnjavz

Hello John,

I am kind of having the same error as yours. Did you manage to solve the issue?

Thanks, Firas

fifarraj avatar Nov 19 '15 16:11 fifarraj

Hi John, I am sorry for the late reply.

Could you be a bit more precise about your platform?

I need to know :

  • OS Version
  • ROS Version. You need to give me the output of the command: rosversion -d
  • Matlab Version you are using
  • gcc/g++ version installed on your computer. To do that you could open a new terminal and tell me the output of the command: cd /usr/bin && ls | grep -i "g++-" and of the command: cd /usr/bin && ls | grep -i "gcc-"
  • After you should check which version of boost you are using (I think the 1_49 from your commands)

I wait for your reply to try to help you.

Fabrizio.

fabrizioschiano avatar Nov 19 '15 17:11 fabrizioschiano

Hi, I think I have the same problem. Could you please help me what to do? After I ran the following command:

catkin_make_isolated --cmake-args -DBOOST_ROOT=/home/mahsa/ROSMATLAB/boost_1_49_0_gcc_4_7 -DBoost_NO_SYSTEM_PATHS=ON -DCMAKE_C_COMPILER=/usr/bin/gcc-4.8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.8 -DMATLAB_DIR=/usr/local/MATLAB/R2014a

I got the following error: selection_017

I am running on: Ubuntu 14.04 - 64bit ROS version: indigo MATLAB version: 2014a gcc version: 4.8 g++ version: 4.8

Thank you. Mahsa

MahsaP avatar Jan 15 '16 20:01 MahsaP

Hello Masha, In my case, the problem was that I didn't configure MATLAB (didn't do the "mex -setup" command). I believe your error is different. The bridge is working fine for me and I didn't face this error. It looks weird. Have you used the pre-compiled boost or have you compiled it yourself?

fifarraj avatar Jan 18 '16 08:01 fifarraj

Hello FirasAbiFarraj , Thanks for answering. I used compiled boost download (https://github.com/lagadic/matlab_ros_bridge/releases/download/v0.1/boost_1_49_0_gcc_4_7.tar.bz2) and used it in catkin_make_isolated. Do I need to compile it on my own?

MahsaP avatar Jan 18 '16 11:01 MahsaP

I used the compiled boost. But it is compiled with gcc/g++ 4.7 while yours is 4.8. Could be an issue.. Try to either change your gcc/g++ compiler or compile boost yourself. The procedure is very tricky. You have to literally stick to every command.

fifarraj avatar Jan 18 '16 12:01 fifarraj

Hello,

I have installed matlab_ros_bridge on system with Ubuntu 16.04, ROS kinetic and Matlab 2016b, but I do not find the file 'setup.m' in matlab_ros_bridge. Can you please tell me what am I doing wrong or if I miss something... I can open the test.slx but when I run it I have the following errors and I do not find the ROS file that I should launch to create the topic '/Vector3_', can you help me with this (I am new in ROS)

Error in S-function 'test/Publish Vector3Stamped': S-Function 'rmsg_pub_Vector3Stamped' does not exist Component:Simulink | Category:Modelerror Error in S-function 'test/Real time synchronisation': S-Function 'rtblock' does not exist Component:Simulink | Category:Modelerror Error in S-function 'test/Subscribe Vector3Stamped': S-Function 'rmsg_sub_Vector3Stamped' does not exist

Many thanks, Cosmin

ccopot avatar May 30 '17 06:05 ccopot

@ccopot I have the same problem as you. Did you get a solution? It took much time to follow, but nowadays no one maintains this project!

robopassio avatar Oct 16 '20 01:10 robopassio

Yesterday I accepted a PR with some updates in README.md. Not sure it this new version can help.

Anyway this project was designed before Matworks made available a stable ROS bridge. It is now deprecated and no more maintained. You should rather use the official ROS bridge.

fspindle avatar Oct 16 '20 05:10 fspindle

@robopassio In the end I didn't use this PR. I used the official ROS bridge from Matworks as @fspindle mention.

ccopot avatar Oct 16 '20 09:10 ccopot