1 #ifndef USB_CAM_CONTROLLERS_PACKET_CONTROLLERS 2 #define USB_CAM_CONTROLLERS_PACKET_CONTROLLERS 14 #include <sensor_msgs/CompressedImage.h> 19 #include <opencv2/core/core.hpp> 88 format_ = controller_nh.
param< std::string >(
"format",
"jpeg");
108 const sensor_msgs::CompressedImagePtr msg(
new sensor_msgs::CompressedImage());
110 msg->format = format_;
ros::Time getStamp() const
const Byte * getStartAs() const
image_transport::Publisher publisher_
virtual void startingImpl(const ros::Time &time)
virtual bool initImpl(usb_cam_hardware_interface::PacketInterface *hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh)
std::size_t getLength() const
Publisher advertise(const std::string &base_topic, uint32_t queue_size, bool latch=false)
virtual void updateImpl(const ros::Time &time, const ros::Duration &period)
virtual void stoppingImpl(const ros::Time &time)
virtual ~CompressedPacketController()
void publish(const sensor_msgs::Image &message) const
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
virtual void updateImpl(const ros::Time &time, const ros::Duration &period)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
virtual ~PacketController()
virtual void startingImpl(const ros::Time &time)
CompressedPacketController()
ros::Publisher publisher_
usb_cam_hardware_interface::PacketHandle packet_iface_
virtual bool initImpl(usb_cam_hardware_interface::PacketInterface *hw, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh)
virtual void stoppingImpl(const ros::Time &time)
sensor_msgs::ImagePtr toImageMsg() const