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

lekhoa's profile - activity

2017-01-30 06:12:37 -0500 received badge  Notable Question (source)
2016-11-14 21:51:48 -0500 received badge  Popular Question (source)
2016-10-13 22:39:44 -0500 received badge  Enthusiast
2016-10-08 09:31:31 -0500 asked a question 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 ROS_IP and ROS_MASTR_URI: export ROS_IP=10.10.10.101 export ROS_MASTER_URI=http://10.10.10.101:11311

And in Matlab, I declare the following command to setup the connection: setenv('ROS_MASTER_URI','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