ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi Angel, i am dealing with the same problem. Apparently the communication between MATLAB and ROS is unidirectional http://www.mathworks.fr/matlabcentral/answers/115513-ros-subscriber-callback-is-not-triggered-when-the-master-is-run-from-ros-hydro so MATLAB can communicate with ROS, but not the other way around. i am looking for some solutions, and so far i have found this https://alliance.seas.upenn.edu/~meam620/wiki/index.php?n=Roslab.IpcBridge but not sure if it will work,
Let me know if you find a proper solution, greets, Jaime
2 | No.2 Revision |
Hi Angel, i am dealing with the same problem. Apparently the communication between MATLAB and ROS is unidirectional http://www.mathworks.fr/matlabcentral/answers/115513-ros-subscriber-callback-is-not-triggered-when-the-master-is-run-from-ros-hydro so MATLAB can communicate with ROS, but not the other way around. i am looking for some solutions, and so far i have found this https://alliance.seas.upenn.edu/~meam620/wiki/index.php?n=Roslab.IpcBridge but not sure if it will work,
Let me know if you find a proper solution, greets, Jaime
UPDATED: okey i found the solution. There is a difference when you lauch the roscore from terminal and when you do it from MATLAB. Following the next steps worked for me:
1) edit your .bashrc and add these lines:
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
2) from terminal : roscore
3) now try again the communication with the subscriber from MATLAB. It should now work.
Greets, Jaime