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

Revision history [back]

click to hide/show revision 1
initial version

Check your settings in both terminal. We had same problem and problem was in :

We had in 1st terminal ROS_MASTER_URI =http://192.168.1.10:11311 - in this terminal runs roscore and in 2nd terminal ROS_MASTER_URI =http://localhost:11311 - in this terminal runs urg_node

In matlab we receive using rostopic list all nodes but if we use rostopic echo /scan, we are not able to receive data.

there is our solution: best way how eliminate similiar mistakes is add few lines to .bashrc file

export ROS_MASTER_URI=http://192.168.1.10:11311

export ROS_HOSTNAME=192.168.1.10

export ROS_IP= (empty data)

and it works!

and if you want use matlab

192.168.1.11 - our PC with matlab 192.168.1.10 RPI with ROS and sensors

setenv('ROS_MASTER_URI','http://192.168.1.10:11311') setenv('ROS_IP','192.168.1.11') setenv('ROS_HOSTNAME','192.168.1.11')

Check your settings in both terminal. We had same problem and problem was in :

We had in 1st terminal ROS_MASTER_URI =http://192.168.1.10:11311 ROS_MASTER_URI=http://192.168.1.10:11311 - in this terminal runs roscore and in 2nd terminal ROS_MASTER_URI =http://localhost:11311 ROS_MASTER_URI=http://localhost:11311 - in this terminal runs urg_node

In matlab we receive using rostopic list all nodes but if we use rostopic echo /scan, we are not able to receive data.

there is our solution: best way how eliminate similiar mistakes is add few lines to .bashrc file

export ROS_MASTER_URI=http://192.168.1.10:11311

ROS_MASTER_URI=http://192.168.1.10:11311 export ROS_HOSTNAME=192.168.1.10

ROS_HOSTNAME=192.168.1.10 export ROS_IP= (empty data)

data)

and it works!

and if you want use matlab

192.168.1.11 - our PC with matlab 192.168.1.10 RPI with ROS and sensors

setenv('ROS_MASTER_URI','http://192.168.1.10:11311')
setenv('ROS_IP','192.168.1.11')
setenv('ROS_HOSTNAME','192.168.1.11')

setenv('ROS_HOSTNAME','192.168.1.11')