[UDEMY COURSE] ROS Tutorial 3: ROS Publishers and Subscribers in C++ and Python

Python

Video is ready, Click Here to View ×


To see the complete videos, enroll to my Udemy course on Fundamental Concepts of Robot Operating System (ROS) (C++) with a special discount (limited coupon tokens)
https://www.udemy.com/ros-essentials/?couponCode=ROS1YOUTUBE

This tutorial presents how to write a simple publisher and a subscriber with ROS in C++ and Python. It is typically based on ROS tutorials for beginners related the talker/listener application.

Next Tutorial: [CS460] ROS Tutorial 4.1: Turtlesim Cleaner Application -…

22 thoughts on “[UDEMY COURSE] ROS Tutorial 3: ROS Publishers and Subscribers in C++ and Python

  1. Thank you for sharing ROS video tutorials!
    Could you explain, please, why "Hello World 0" message was missed by the listener in this video (24:02). I faced missed messages before and it seems to be a serious bug. Does that mean that ROS doesn't guarantee message delivery even in such a simple environment?

  2. Hello, the information you provided is very useful, thank you. Also, I would want to publish msgs from a .csv file, is it possible to do that? If yes, then do I have to paste the directory of the .csv file in place of "hello world"? If not, how?

  3. I saw that we can use python on the ros, but I have a question. When we make codes, we need a tool such as visual studio or qt. Is there any tool working well on the ros?

  4. Hello Anis. I followed your steps in the publisher part. When I type the "rosrun beginner_tutorials", it shows the message as below:
    rosrun will locate PACKAGE and try to find
    an executable named EXECUTABLE in the PACKAGE tree.
    If it finds it, it will run it with ARGS.
    But I didn't miss any steps in the video. Did I lost something?

  5. لو سمحت انت بدأت شرح LaTex لكن توقفت . ممكن تكمل لان فيديوهاتك واضحة جداَ . ويا ليت تشرح الكتابة بالعربي باستعمال LaTex

  6. The C++ works flawlessly, however I'm experiencing some issues with the python version. When I try to execute python with rosrun, this is the error that I recevied:
    Traceback (most recent call last):
      File "/home/leo/catkin_ws/src/beginner_tutorials/scripts/talker.py", line 21,
     in <module>
        talker()
      File "/home/leo/catkin_ws/src/beginner_tutorials/scripts/talker.py", line 10,
     in talker
        pub = rospy.Publisher('chatter', String, queue_size=10)
    TypeError: _init_() got an unexpected keyword argument 'queue_size'

  7. I posted a tutorial on publishers and subscribers in ROS. If you have any question or comment, just post your comment here. 
    More tutorials are coming. The next will on developing a cleaning application using the turtlesim inchaAllah.
    Anis

Leave a Reply

Your email address will not be published. Required fields are marked *