Klaus, <br>Are you starting your roscore seperately and is it staying up when you restart your publisher?   <br><br>This is on speculation, but the symptoms are consistent.  If you are starting your publisher first with roslaunch it will automatically launch roscore.  However when you take down that first roslaunch the roscore will come down with it.  This will orphan any running nodes, and they will not work properly once they have lost contact with the master.  If you are relying on roslaunch to start the roscore for you, I would suggest manually starting it separately so that you can make sure it stays up when you restart other nodes.  <br>

<br>Tully<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 7:51 AM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">On Thu, Mar 4, 2010 at 3:51 AM, Klaus Petersen<br>
<<a href="mailto:klaus@takanishi.mech.waseda.ac.jp">klaus@takanishi.mech.waseda.ac.jp</a>> wrote:<br>
> I have a very basic problem: First, I establish a connection between a<br>
> publisher node and a subscriber node. At this point I can receive<br>
> messages from the publisher with the subscriber node. But when I<br>
> re-start my publisher node (quit and run again) the subscriber does not<br>
> automatically resubscribe to the message. I have to restart the<br>
> subscriber as well to be able to receive again. Is this the normal<br>
> behavior with ros or am I doing something wrong? I have quite a big<br>
> robot control program tied to one of the nodes, so restarting along the<br>
> way (the initialization of the robot takes ages) is very troublesome.<br>
<br>
</div>hi Klaus,<br>
<br>
Something's going wrong there.  When your publisher is restarted, it<br>
should re-advertise with the master, which should send the new<br>
publisher list to your subscriber, which should then re-connect to<br>
your publisher.<br>
<br>
You can test this behavior with roscpp_tutorials/talker and<br>
roscpp_tutorials/listener; no matter in what order they're<br>
(re)started, listener will always connect to talker.<br>
<br>
Can you tell us something about your publisher and subscriber? Is<br>
there anything unusual about your subscriber?<br>
<font color="#888888"><br>
        brian.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tully Foote<br>Systems Engineer<br>Willow Garage, Inc.<br><a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a><br>(650) 475-2827<br>