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

KBOT's profile - activity

2021-02-02 19:05:24 -0500 received badge  Taxonomist
2017-06-09 14:06:05 -0500 received badge  Famous Question (source)
2017-02-11 12:11:52 -0500 received badge  Notable Question (source)
2017-01-27 04:39:19 -0500 received badge  Enthusiast
2017-01-27 04:39:18 -0500 received badge  Enthusiast
2017-01-27 04:39:18 -0500 received badge  Enthusiast
2017-01-27 04:39:18 -0500 received badge  Enthusiast
2017-01-24 05:35:35 -0500 commented question Multimaster_discovery (multimaster_fkie package) not recognizing other master nodes in multi-roscore system

Hi, I run with 127.0.1.1 hostname which was default. The list of Robot hosts is still empty. I tried with localhost too, but again it is empty. Multicast address was 226.0.0.0 on both nodes, which is default, and multicast is enabled.

2017-01-23 05:00:37 -0500 commented question Multimaster_discovery (multimaster_fkie package) not recognizing other master nodes in multi-roscore system

I tried originally only with ROS_MASTER_URI, but roscore would overwrite my selected hostname and replace it with localhost which I didn't want. I would export ROS_MASTER_URI like http://hostname:port and the output of roscore would be http://localhost:port . ROS_HOSTNAME and IP solved that part.

2017-01-21 09:20:09 -0500 received badge  Popular Question (source)
2017-01-21 07:33:12 -0500 commented question Multi-master Discovery couldnot detect rosmaster

Could you explain what exactly did you do because I have a same problem and I did set the ROS_IP and ROS_HOSTNAME and ROS_MASTER_URI. Thank you!

2017-01-21 07:31:49 -0500 received badge  Supporter (source)
2017-01-20 06:08:23 -0500 commented answer fkie multimaster connection issues - firewall?

Did you manage to make the package work? I still have problems in the very basic scenario of making the detection of masters that are running on the same platform. If you have any ideas, I would appreciate the input from more experienced source-http://answers.ros.org/question/252378/

2017-01-20 05:51:30 -0500 received badge  Editor (source)
2017-01-19 06:58:05 -0500 asked a question Multimaster_discovery (multimaster_fkie package) not recognizing other master nodes in multi-roscore system

Hi everyone, I have been struggling to set up the system consisting of several running roscores (multiple ROS master nodes). Just for a context sake, I want to implement multi-platform system where robots will have their own onboard master running and will communicate with other masters in the network. The idea was to test the behavior firstly in simple scenario where two masters are running on the same machine like in tutorials provided by: ROS.org and this document. I am running ROS kinetic, version 1.12.6 on my Linux Ubuntu 16.04 desktop machine.

However, despite checking all the necessary steps, the master_discovery nodes cannot recognise any other masters and I can't find the problem. I would appreciate any insight! :)

For trouble-shooting purposes I explain in short the procedure I used.

-enabled broadcasting : sudo sh -c "echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" so that cat /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts returns 0.

-Configured hostnames and IP addresses in /etc/hosts, where I am using comp_host as ROS_HOSTNAME:

127.0.0.1   localhost
127.0.1.1   host_name
192.xxx.xxx.xxx  comp_host

-To find out multi cast IP, run netstat -g which returns (among other):

Interface       RefCnt Group
--------------- ------ ---------------------
wlo1            3      224.0.0.251
wlo1            1      all-systems.mcast.net
...

-I opened two terminals with multiple windows. In each window of the first terminal I exported ROS environment variables (; is here just to mark cmmd in a new line) export ROS_HOSTNAME=comp_host; export ROS_IP=192.xxx.xxx.xxx; export ROS_MASTER_URI=http://comp_host:11311. While in the second terminal, i changed the port and exported following in every window: export ROS_HOSTNAME=comp_host; export ROS_IP=192.xxx.xxx.xxx; export ROS_MASTER_URI=http://comp_host:11312. In the first terminal I run roscore, rosrun master_discovery_fkie master_discovery _mcast_group:=224.0.0.251 and rosrun master_sync_fkie master_sync. I also publish dummy text in a topic for testing purposes. In second: roscore --port 11312, rosrun master_discovery_fkie master_discovery _mcast_group:=224.0.0.251 and rosrun master_sync_fkie master_sync. I do not get any warning or error, but the master_discovery nodes cannot find other master. I can't read the topic from another ROS system too. 224.0.0.251 is pinged without problems and all the nodes are run on appropriate ROS_MASTER_URIs.

Some of the terminal outputs: roscore on terminal 1:

started roslaunch server http://comp_host:46207/
ros_comm version 1.12.6
SUMMARY
========
PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.6
NODES
auto-starting new master
process[master]: started with pid [4871]
ROS_MASTER_URI=http://comp_host:11311/
setting /run_id to 71d29aca-de21-11e6-a42d-a01d48b95782
process[rosout-1]: started with pid [4884]
started core service [/rosout]

master_discovery and master_sync on terminal1:

rosrun master_discovery_fkie master_discovery _mcast_group:=224.0.0.251
[INFO] [1484814933.038655]: ROS Master URI: http://comp_host:11311  
[INFO] [1484814933.048587]: Check the ROS Master[Hz]: 1
[INFO] [1484814933.048817]: Heart beat [Hz]: 0.02
[INFO] [1484814933.048988]: Active request after [sec]: 60
[INFO] [1484814933.049146]: Remove after [sec]: 300
[INFO] [1484814933.049301]: Robot hosts: []
[INFO] [1484814933.049455]: Approx. mininum avg. network load: 1 ...
(more)