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

rospy node receives no messages

asked 2020-06-09 12:03:20 -0500

rgov gravatar image

updated 2020-06-09 12:36:03 -0500

I have a node which regularly publishes on some topic. I can use rostopic to monitor this and confirm that messages are being published.

I wanted to add a rospy-based Python node that subscribes to this topic. So I aped the tutorial code and only modified it to subscribe to the appropriate topic.

roslaunch property starts my Python node and doesn't report any errors. rosnode info <node> tells me that indeed the Python node subscribed to the topic. But rostopic echo /rosout does not show that node outputting anything, so:

  • Messages aren't being received by the Python node, OR
  • Log messages aren't being written to /rosout

What can I do to diagnose further?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-09 12:36:46 -0500

rgov gravatar image

Thankfully it was the latter about rosout. I was able to locate the log file being written to. I'm not sure why these messages aren't also sent to rosout as the documentation clearly says is the case, but it's fine.

edit flag offensive delete link more

Question Tools


Asked: 2020-06-09 12:03:20 -0500

Seen: 178 times

Last updated: Jun 09 '20