20 std::string compressed_topic =
topic_ +
"/compressed";
38 std::string content_type;
39 if(msg->format.find(
"jpeg") != std::string::npos) {
40 content_type =
"image/jpeg";
42 else if(msg->format.find(
"png") != std::string::npos) {
43 content_type =
"image/png";
46 ROS_WARN_STREAM(
"Unknown ROS compressed image format: " << msg->format);
50 stream_.
sendPart(time, content_type, boost::asio::buffer(msg->data), msg);
52 catch (boost::system::system_error &e)
55 ROS_DEBUG(
"system_error exception: %s", e.what());
59 catch (std::exception &e)
92 ss <<
"<img src=\"/stream?";