Ask Your Question
0

can't send image over network [closed]

asked 2014-03-20 19:13:17 -0500

ondra gravatar image

updated 2014-03-20 19:50:23 -0500

Hi,

I have 2 machines, a server and client.

config on server:

ROS_IP=master_ip

ROS_MASTER_URI=http://master_ip:11311

config on slave:

ROS_IP=slave_ip

ROS_MASTER_URI=http://master_ip:11311

I have two executables, one for master one for client. Client jus reads an image, use cv_bridge and publishes it as "camera/image". Server subscribes to "camera/image" and displays it on a screen. If I run both (client = "image_publisher" and server executables) on a single machine, everything works. If I run client on a different machine, it doesn't.

I checked ping, netcap, everything seems to be fine... If I use rat_graph and run it on a single machine, image_publisher (client) appears as "/image_publisher". If I run it on two different machines, it doesn't work and image_publisher appears as "_image_publisher".

client runs fuerte and server runs groovy

what can be wrong???

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2014-10-22 19:23:51.786637

Comments

1

Did you check rosnode ping?

Wolf gravatar image Wolf  ( 2014-03-20 20:30:37 -0500 )edit

On the system running the master and openni I only have: ROS_MASTER_URI set to http://localhost:11311 On the system running rqt I have: ROS_MASTER_URI set to http://192.168.1.103:11311 NOTE - your IP would be different for master ROS_HOSTNAME=192.168.1.101 NOTE - this is IP of system running rqt I can get images ok. I did not set ROS_IP on either system. I am running hydro

billtecteacher gravatar image billtecteacher  ( 2014-03-23 12:44:52 -0500 )edit

hey, so I've made it working on my local network, however it doesn't work trough wifi... although I'm able to use netcat in either way, it seems to me, that some port is blocked...it's quite weird as my port on master is opened, but I do not receive anything...do I need to unblock any port on slave?

ondra gravatar image ondra  ( 2014-03-24 09:45:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-03-25 17:11:25 -0500

billtecteacher gravatar image

The example i gave in comment worked over a wifi. Were you able to ping over wifi each way?

edit flag offensive delete link more

Comments

yes, I'm able to ping ip addresses over wifi both ways, I'm able to use netcat with port 11311 bot ways, but I do not receive any image over wifi for some reason although it works fine over lan...

ondra gravatar image ondra  ( 2014-03-25 17:36:23 -0500 )edit

Question Tools

Stats

Asked: 2014-03-20 19:13:17 -0500

Seen: 402 times

Last updated: Mar 25 '14