ROS Q&A | Why print works but rospy.loginfo doesn’t?

Written by Ruben Alves


When we are developing ROS Programs, it’s common to use “print” or “rospy.loginfo” to print some text on the screen in order to see if our program is working as expected.

The problem is that sometimes the “rospy.loginfo” doesn’t work and we have no idea why it happens.

In this video we show how to make the rospy.loginfo shows the texts on the screen, by answering a real question asked on ROS Answers.

If you want to see the question and get the code used on the video, you can find it on the following link:



Discover How to Equip Your Teams with ROS Skills Fast

The Construct For Enterprise

Check Out These Related Posts

5 Mistakes Robotics & ROS Teachers Make

5 Mistakes Robotics & ROS Teachers Make

Last week, a colleague of mine asked me for advice on how to teach ROS at university because she is going to start delivering a ROS class next month. Then I decided to record this video with 5 mistakes I have made in the past while teaching ROS at the university. I hope that this video is useful for you and helps you avoid the mistakes that I made so you can start delivering ROS classes smoothly.

read more


Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share This