37 #include <boost/lexical_cast.hpp>
38 #include "polled_camera/GetPolledImage.h"
40 int main(
int argc,
char** argv)
44 printf(
"Usage: %s <Hz> camera:=<namespace> output:=<namespace>\n", argv[0]);
47 double hz = boost::lexical_cast<double>(argv[1]);
50 std::string service_name = nh.
resolveName(
"camera") +
"/request_image";
53 polled_camera::GetPolledImage::Request req;
54 polled_camera::GetPolledImage::Response rsp;
59 if (client.
call(req, rsp)) {
60 std::cout <<
"Timestamp: " << rsp.stamp << std::endl;