ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ipc_bridge Example Publisher MATLAB Error

asked 2013-12-02 09:56:24 -0500

mozcelikors gravatar image

updated 2013-12-02 09:58:54 -0500

Hi,

I've been following the ipc_bridge package (https://alliance.seas.upenn.edu/~meam620/wiki/index.php?n=Roslab.IpcBridge) in order to connect MATLAB to ROS. I've installed MEX Compiler and able to compile every package with the correct version of GCC (with the help of linking mex compiler with the correct gcc version). Note that I'm using Groovy on Ubuntu 12.04.

However, when I try to run the ~/catkin_ws/src/ipc-bridge/ipc_bridge_stack/ipc_bridge_example/example_publisher.m from MATLAB, I get the following errors:

Warning: Name is nonexistent or not a directory: rospack. 
> In path at 110
  In addpath at 87
  In example_publisher at 9 
Warning: Directory access failure:
/usr/local/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6. 
> In path at 110
  In addpath at 87
  In example_publisher at 9 
Warning: Name is nonexistent or not a directory: version `GLIBCXX_3.4.15' not found
(required by /opt/ros/groovy/lib/librospack.so)/bin. 
> In path at 110
  In addpath at 87
  In example_publisher at 9 
Undefined function 'geometry_msgs_Twist' for input arguments of type 'char'.

Error in example_publisher (line 13)
pid=geometry_msgs_Twist('connect','publisher','example_module','twist');

What should I do to overcome this? Any help will be greately appreciated.

edit retag flag offensive close merge delete

Comments

Did you solve this problem? I met a problem which is the same as yours.

ZYS gravatar image ZYS  ( 2016-01-20 13:33:21 -0500 )edit

@ZYS: please don't post answers, unless you can actually answer a question. Use comments for these kind of things. Thanks.

gvdhoorn gravatar image gvdhoorn  ( 2016-01-21 02:22:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-21 13:33:30 -0500

ZYS gravatar image

If you want to use the ipc_bridge functions, you must first add the path of the specific binary to Matlab: addpath('Address to the /bin directory of specific message which includes all the mex-compiled binary files')

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-12-02 09:56:24 -0500

Seen: 377 times

Last updated: Jan 21 '16