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

How to see if rostopic is actually publishing within program?

asked 2021-10-27 09:40:56 -0600

AvaneenP gravatar image

Hi, I need to know if a rostopic is actually publishing information because it will be used as a condition for another ros node in my program. Is there a way to do this in your program?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-27 18:03:07 -0600

Geoff gravatar image

Subscribe to the topic. If you receive data (your callback will be called), then the topic is publishing information. You can just throw away the received data.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-10-27 09:39:56 -0600

Seen: 81 times

Last updated: Oct 27 '21