Template Function gazebo_ros::get_message_or_timeout
Defined in File testing_utils.hpp
Function Documentation
Helper function to get the next message on a ROS topic with a timeout
- Parameters:
node – Pointer to a node to use to subscribe to the topic
topic – Topic to subscribe to for message
timeout – Maximum time to wait for message
- Template Parameters:
T – Message type to get
- Returns:
Shared pointer to new message, or nullptr if none received before timeout