Robotics StackExchange | Archived questions

ros-matlab connection issue

Dear All, I am studying how to use ROS in Matlab. I use in two separate computers: one is a single board computer (Ubuntu, IP 10.10.10.101), and one is a laptop with Matlab (Window, 10.10.10.102). I used wifi connection for the communication. I have an issue with the network setup and I hope that you could help me to figure out. I run roscore and one node in single board computer to collect data from an IMU and the following commands to setup the ROSIP and ROSMASTRURI: export ROSIP=10.10.10.101 export ROSMASTERURI=http://10.10.10.101:11311

And in Matlab, I declare the following command to setup the connection: setenv('ROSMASTERURI','http://10.10.10.101:11311') setenv('ROS_IP',10.10.10.102') rosinit(’10.10.10.101’) Then, I run “rostopic list” to check the connection and it shows all topics. However, when I run “rostopic echo” it does not display any data. I cannot use "receive" to get data either. Did I miss any step? Thank you for your help Regards

Asked by lekhoa on 2016-10-08 09:28:05 UTC

Comments

Answers