ros / actionlib

Provides a standardized interface for interfacing with preemptable tasks. Examples of this include moving the base to a target location, performing a laser scan and returning the resulting point cloud, detecting the handle of a door, etc.
http://www.ros.org/wiki/actionlib
96 stars 155 forks source link

Support None for no timeout in line with rospy.wait_for_message #173

Open Timple opened 4 years ago

Timple commented 4 years ago

Support None for no timeout in line with rospy.wait_for_message

In our tests we use the wait_for_message and wait_for_topic functions a lot. And having different syntax for both is inconvenient.

Alternative implementation: I can also rewrite to have None the default and be backwards compatible with rospy.Duration(0). Should not be too hard because they are both falsy. Let me know if this is desired.