Go to the documentation of this file.
32 #include <boost/make_shared.hpp>
38 #include <opencv2/core/core.hpp>
39 #include <opencv2/highgui/highgui.hpp>
42 #include <sensor_msgs/Image.h>
64 std::string image_file;
65 swri::param(priv,
"image_file", image_file, image_file);
72 rate = std::max(0.1, rate);
82 cv_image.
image = cv::imread(image_file, cv::IMREAD_GRAYSCALE);
ros::NodeHandle & getNodeHandle() const
SWRI_NODELET_EXPORT_CLASS(swri_image_util, DrawPolygonNodelet)
sensor_msgs::ImagePtr toImageMsg() const
image_transport::Publisher image_pub_
ros::NodeHandle & getPrivateNodeHandle() const
ROSCPP_DECL void requestShutdown()
Publisher advertise(const std::string &base_topic, uint32_t queue_size, bool latch=false)
void initialize(const ros::TimerEvent &unused)
void publish(const sensor_msgs::Image &message) const
cv_bridge::CvImage cv_image
Timer createTimer(Duration period, const TimerCallback &callback, bool oneshot=false, bool autostart=true) const
void publish(const ros::TimerEvent &e)
static void param(const ros::NodeHandle &nh, const std::string &name, bool &variable, const bool default_value)
swri_image_util
Author(s): Kris Kozak
autogenerated on Fri Aug 2 2024 08:39:19