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

rahul_b's profile - activity

2020-07-10 19:01:24 -0500 received badge  Famous Question (source)
2019-01-11 12:44:25 -0500 marked best answer Messages not received on master when the talker runs from startup

Hi, I have a detection node acting as a talker (det_talker.py) on one Ubuntu 16.04 machine and another node acting as a listener (det_listener.py). I intend to run the listener on master (an Ubuntu 14.04 machine) to receive the messages being sent from the talker. When I run the talker from a terminal followed by the listener on the master, I can see the messages being received on the master.

However, when I run the same talker node by putting the necessary commands for sourcing the setup.bash file as well as configuring the IP for the master in a bash script and run this script from startup (by adding the script in Startup Applications), I cannot see any messages on the master.

Configuration on the machine with the talker node:

Configuration on the machine which acts as master:

I have tried changing the ROS_IP on master to ubuntu16_ip but the result is still the same. The script I am using to run the detection node from system startup looks like follows:

#!/bin/bash
cd /home/rahul
export ROS_MASTER_URI = http://ubuntu14_ip:11311
source ./catkin_ws/devel/setup.bash
cd catkin_ws
rosrun detection_node det_talker.py

I have tried running this bash script from a terminal; it runs successfully and I can see the messages on master when I run the det_listener.py node. Only when I run it from startup, there are no messages (the node does run, however).

Furthermore, I can see on the master that the node is running because it shows the node when I run rosnode list and rostopic list commands. I should also mention that Ubuntu 16 has Kinetic and Ubuntu 14 is running an Indigo version of ROS. The reason why I think different versions should not pose a problem because I can indeed get the messages when executing the node from terminal.

My question is how do I get the messages to be received on the master by running the talker from startup. Thanks.

Edit: A cross-post on SO is here.

2019-01-11 12:43:02 -0500 received badge  Famous Question (source)
2018-07-26 02:09:09 -0500 received badge  Notable Question (source)
2018-07-10 04:06:56 -0500 received badge  Enthusiast
2018-07-04 10:42:50 -0500 received badge  Notable Question (source)
2018-07-04 05:22:57 -0500 answered a question Messages not received on master when the talker runs from startup

I added the IP and name of the master (ubuntu14) in /etc/hosts file on the node machine (ubuntu16) and vice versa. When

2018-07-03 07:26:36 -0500 received badge  Popular Question (source)
2018-07-03 05:18:13 -0500 edited question Messages not received on master when the talker runs from startup

Messages not received on master when the talker runs from startup Hi, I have a detection node acting as a talker (det_ta

2018-07-03 03:57:15 -0500 edited question Messages not received on master when the talker runs from startup

Messages not received on master when the talker runs from startup Hi, I have a detection node acting as a talker (det_ta

2018-07-03 03:57:15 -0500 received badge  Editor (source)
2018-07-03 03:39:31 -0500 asked a question Messages not received on master when the talker runs from startup

Messages not received on master when the talker runs from startup Hi, I have a detection node acting as a talker (det_ta

2018-05-09 07:23:14 -0500 received badge  Popular Question (source)
2018-05-09 06:20:01 -0500 commented question Rosnode runs with root access but not as a normal user

Thanks for the input. I will continue the thread over at Nvidia forums.

2018-05-09 04:44:45 -0500 commented question Rosnode runs with root access but not as a normal user

Thanks for the tip. I edited the question.

2018-05-09 04:44:37 -0500 edited question Rosnode runs with root access but not as a normal user

Rosnode runs with root access but not as a normal user Hi, I am using ROS Kinetic with a Nvidia TX2 board. I have a rosn

2018-05-09 04:04:50 -0500 asked a question Rosnode runs with root access but not as a normal user

Rosnode runs with root access but not as a normal user Hi, I am using ROS Kinetic with a Nvidia TX2 board. I have a rosn

2018-05-09 03:56:37 -0500 received badge  Supporter (source)