Robotics StackExchange | Archived questions

running different nodes on different machines

I have cameras nodes that i am running on mobile robot's NUC.

and I have mapping node that i want to run on PC.

Everything is connected, i can see topics from cameras on PC. The problem is that mapping node is running but nothing is actually publishing.

I tried running everything on NUC and it was working.

What should i check? how can i run mapping node on PC?

Asked by june2473 on 2019-09-13 05:07:28 UTC

Comments

Sounds like network settings. Check ROS_IP on both computers.

Asked by Mehdi. on 2019-09-13 06:14:52 UTC

You haven't configured your rosmaster properly. I am guessing if you do rostopic hz/bw or echo you will not get anything, or maybe the topic you are getting are from mapping node subscribing to those topics. You can rostopic info the topic to see which node is publishing and which one subscribing it.

But this is a clear problem of network not configured properly.

Asked by Choco93 on 2019-09-13 08:59:02 UTC

Have you carefully followed all of this: http://wiki.ros.org/ROS/NetworkSetup

Asked by billy on 2019-09-13 23:17:43 UTC

nope, still does not work. I tried to set ROS_IP on both machines in spite that I already set ROS_HOSTNAME, it didnt help, still the same problem. I can even see cameras image and depth cloud in rviz on PC, but mapping node do nothing, no map data.

Asked by june2473 on 2019-09-15 23:58:03 UTC

Check if your node has subscribed to all the required topic

Asked by Choco93 on 2019-09-16 02:55:13 UTC

why? how my node can not be subscribed to all the required topics? I checked by rosnode info, it is subscribed

Asked by june2473 on 2019-09-16 04:52:54 UTC

If all the topic are available and are subscribed by your node as well, then something wrong with your node

Asked by Choco93 on 2019-09-16 05:16:33 UTC

also I set PC and NUC's hostnames in /etc/hostname to exactly what is ROS_HOSTNAME. Is it relevant? and I also changed hostnames in /etc/hosts.

Asked by june2473 on 2019-09-16 05:40:57 UTC

maybe there is too much data coming from cameras? i mean depthcloud, odometry, image etc.

Asked by june2473 on 2019-09-16 05:43:00 UTC

putting names in etc/hosts just makes your life a bit easier, that is all. If you are receiving data on your PC from NUC that means connectivity is good. And as you mentioned your node is also subscribed to all required topics then only thing I think can be wrong is your mapping node

Asked by Choco93 on 2019-09-16 06:22:18 UTC

my mapping node works successfully on NUC

Asked by june2473 on 2019-09-18 03:37:26 UTC

Answers