1 #ifndef GAZEBO_PLUGINS_TEST_CAMERA_CAMERA_H 2 #define GAZEBO_PLUGINS_TEST_CAMERA_CAMERA_H 4 #include <gtest/gtest.h> 25 image_stamp_ = msg->header.stamp;
26 has_new_image_ =
true;
37 dynamic_cast<CameraTest*>(
this));
43 bool wait_for_topic =
true;
44 while (wait_for_topic)
51 wait_for_topic =
false;
68 EXPECT_LT(time_diff, 1.0);
78 for (
int i = 0; i < payload[1].
size(); ++i)
82 std::string topic = payload[1][i][0];
83 EXPECT_EQ(topic.find(
"image_trigger"), std::string::npos);
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, const boost::function< void(const sensor_msgs::ImageConstPtr &)> &callback, const ros::VoidPtr &tracked_object=ros::VoidPtr(), const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL const std::string & getName()
ROSCPP_DECL bool execute(const std::string &method, const XmlRpc::XmlRpcValue &request, XmlRpc::XmlRpcValue &response, XmlRpc::XmlRpcValue &payload, bool wait_for_master)
uint32_t getNumPublishers() const
#define ROS_INFO_STREAM(args)
image_transport::Subscriber cam_sub_
void imageCallback(const sensor_msgs::ImageConstPtr &msg)
ROSCPP_DECL void spinOnce()