Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Timeout form waitFormessage

Hello,

I have a logic like below to read topic

ar_pose::ARMarkersConstPtr msg_mark = ros::topic::waitForMessage<ar_pose::armarkers>("ar_pose_marker");

Is there any way to time out waiting period if topic is not being published for a longer time?

abhy