<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Tim,<div><br></div><div>I just created the file in a text editor and saved it with the filename and path specified.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>-Matt</div><div><br></div><div><br><div><div><div>On 31/05/2011, at 3:01 PM, <a href="mailto:tim.payne@ars-lab.com">tim.payne@ars-lab.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<div>
    <h6 class="western" style="font-weight: normal;"><span style="font-size: 12pt;">Hello,</span></h6>

    <h6 class="western" style="font-weight: normal;"><span style="font-size: 12pt;">I am new to ROS and have a question about the tutorial for writing a simple publisher and subscriber (Python). How do I create the nodes/listener.py file from below?</span></h6>

    <h6 class="western" style="font-weight: normal;"><a id="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.Writing_the_Subscriber_Node" name="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.Writing_the_Subscriber_Node"></a> <span style="font-size: 12pt;">1.2 Writing the Subscriber Node</span></h6>

    <h4 class="western" style="font-weight: normal;"><a id="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.The_Code-1" name="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.The_Code-1"></a><a id="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.line-77" name="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.line-77"></a> <span style="font-size: 12pt;">1.2.1 The Code</span></h4><p style="font-weight: normal;"><a id="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.line-78" name="rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.line-78"></a> <span style="font-size: 12pt;">Create the nodes/listener.py file within the beginner_tutorials package and paste the following inside it:</span></p><p style="font-weight: normal;"><span style="font-size: 12pt;"><br>
    </span></p><p style="font-weight: normal;"><span style="font-size: 12pt;">Best regards,</span></p><p style="font-weight: normal;"><span style="font-size: 12pt;">Tim</span></p><p style="margin: 0px;"></p>
  </div>

_______________________________________________<br>ros-users mailing list<br><a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>https://code.ros.org/mailman/listinfo/ros-users<br></blockquote></div><br></div></div></body></html>