1 vote
Accepted

How to subscribe for a single message from a topic (receive once and then stop)

Please see #q270298. In Python this should be available through rospy.wait_for_message(..) (docs). Originally posted by gvdhoorn with karma: 86574 on 2018-05-29 ...
gvdhoorn-rse's user avatar
1 vote

How do you implement a rospy KeyboardInterrupt without killing the node?

If someone ends up here searching for how to that in ROS2 the key is: rclpy.init(args=args, signal_handler_options=SignalHandlerOptions.NO) don't forget import: <...
Dr. Denis's user avatar
  • 588
1 vote
Accepted

ROS node testing (publish/subscribe)

It turned to be out that there was not enough time to set up and start receiving messages before the publisher in my node starts sending messages. I fixed it by adding a delay between the subscription ...
Dmytro Prylipko's user avatar
1 vote
Accepted

How to add a header with timestamp to numpy_msg?

Is it possible to add a header with a timestamp to a numpy_msg In short, yes, I think you just need to call numpy_msg() on a ...
danzimmerman's user avatar
1 vote

Cancel rospy action with Ctrl+C

The problem is most likely that at the point where cancel_all_goals() is called, ROS has already shut down. This prevents any actionlib messages from ever reaching ...
gvdhoorn-rse's user avatar
1 vote

message_filters doesn't call the callback function

Doing a rostopic hz on each topic is a good starting point to make sure they are publishing at all. This could help debug further: https://github.com/lucasw/...
Lucas Walter's user avatar
  • 3,347

Only top scored, non community-wiki answers of a minimum length are eligible