Robotics StackExchange | Archived questions

ros with raspberry pi and pc

I'm using ros listener and talker, if I run ros talker on the raspberry pi I can see it on the listener on the pc but if I run ros talker on the pc I can not listener on the raspberry pi, I dont get any errors is just does not display "hear ...."

what am I missing?

Asked by basicrobots on 2018-10-05 23:25:49 UTC

Comments

cam you get us more detail about how to connect pi to pc and how to run your program

Asked by Hamid Didari on 2018-10-05 23:51:27 UTC

sure, I follow this tutorial. http://wiki.ros.org/ROS/Tutorials/MultipleMachines I had also tried to run roscore on the pi and as a master but still can only talk on the pi and listen on the pc but no the other way, but if I run talker and listener on the pi it works.

Asked by basicrobots on 2018-10-06 00:08:14 UTC

after runnig talker on pc and listener on pi , run rqt_graph and check two node connect correctly

Asked by Hamid Didari on 2018-10-06 00:20:41 UTC

I did, and I can see them connected weather I run talker on the pc or the pi

Asked by basicrobots on 2018-10-06 00:28:09 UTC

after runnig talker on pc try "rostopic echo < topic name > " on pc and see the out put (roscore run on pi)

Asked by Hamid Didari on 2018-10-06 00:36:06 UTC

I run talker on the pc and at the same time I run rostopic echo /chatter on the pi and on the pc but I can only see responding on PC

Asked by basicrobots on 2018-10-06 00:47:02 UTC

Answers

I run this on the pi and it works

export ROS_MASTER_URI=http://192.168.1.10:11311
export ROS_HOSTNAME=192.168.1.10
export ROS_IP= (empty data)

Asked by basicrobots on 2018-10-06 01:12:49 UTC

Comments

@basicrobots Hi, I am facing the exact same problem, could you please clearly explain what you have done to work?? Thanks in advance!

Asked by Srivardhan Cholkar on 2019-03-23 17:57:17 UTC

Not sure, but try this as a solution,

Disabling firewall

Please reply your results.

Regards,

Asked by racklove on 2020-05-26 06:08:15 UTC

Comments