Public Member Functions | |
virtual void | onInit () |
Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method. | |
Private Types | |
typedef watershed_segmentation::WatershedSegmentationConfig | Config |
typedef dynamic_reconfigure::Server < Config > | ReconfigureServer |
Private Member Functions | |
void | add_seed_point_cb (const opencv_apps::Point2DArray &msg) |
void | do_work (const sensor_msgs::ImageConstPtr &msg, const std::string input_frame_from_msg) |
const std::string & | frameWithDefault (const std::string &frame, const std::string &image_frame) |
void | imageCallback (const sensor_msgs::ImageConstPtr &msg) |
void | imageCallbackWithInfo (const sensor_msgs::ImageConstPtr &msg, const sensor_msgs::CameraInfoConstPtr &cam_info) |
void | reconfigureCallback (watershed_segmentation::WatershedSegmentationConfig &new_config, uint32_t level) |
void | subscribe () |
This method is called when publisher is subscribed by other nodes. Set up subscribers in this method. | |
void | unsubscribe () |
This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method. | |
Static Private Member Functions | |
static void | onMouse (int event, int x, int y, int flags, void *) |
static void | trackbarCallback (int, void *) |
Private Attributes | |
ros::Subscriber | add_seed_points_sub_ |
image_transport::CameraSubscriber | cam_sub_ |
Config | config_ |
bool | debug_view_ |
image_transport::Publisher | img_pub_ |
image_transport::Subscriber | img_sub_ |
boost::shared_ptr < image_transport::ImageTransport > | it_ |
cv::Mat | markerMask |
ros::Publisher | msg_pub_ |
ros::Time | prev_stamp_ |
cv::Point | prevPt |
boost::shared_ptr < ReconfigureServer > | reconfigure_server_ |
std::string | segment_name_ |
std::string | window_name_ |
Static Private Attributes | |
static bool | need_config_update_ = false |
static int | on_mouse_event_ = 0 |
static int | on_mouse_flags_ = 0 |
static bool | on_mouse_update_ = false |
static int | on_mouse_x_ = 0 |
static int | on_mouse_y_ = 0 |
Definition at line 57 of file watershed_segmentation_nodelet.cpp.
typedef watershed_segmentation::WatershedSegmentationConfig watershed_segmentation::WatershedSegmentationNodelet::Config [private] |
Definition at line 67 of file watershed_segmentation_nodelet.cpp.
typedef dynamic_reconfigure::Server<Config> watershed_segmentation::WatershedSegmentationNodelet::ReconfigureServer [private] |
Definition at line 68 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::add_seed_point_cb | ( | const opencv_apps::Point2DArray & | msg | ) | [inline, private] |
Definition at line 268 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::do_work | ( | const sensor_msgs::ImageConstPtr & | msg, |
const std::string | input_frame_from_msg | ||
) | [inline, private] |
Initialize
Definition at line 122 of file watershed_segmentation_nodelet.cpp.
const std::string& watershed_segmentation::WatershedSegmentationNodelet::frameWithDefault | ( | const std::string & | frame, |
const std::string & | image_frame | ||
) | [inline, private] |
Definition at line 100 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::imageCallback | ( | const sensor_msgs::ImageConstPtr & | msg | ) | [inline, private] |
Definition at line 112 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::imageCallbackWithInfo | ( | const sensor_msgs::ImageConstPtr & | msg, |
const sensor_msgs::CameraInfoConstPtr & | cam_info | ||
) | [inline, private] |
Definition at line 107 of file watershed_segmentation_nodelet.cpp.
virtual void watershed_segmentation::WatershedSegmentationNodelet::onInit | ( | ) | [inline, virtual] |
Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.
Reimplemented from opencv_apps::Nodelet.
Definition at line 297 of file watershed_segmentation_nodelet.cpp.
static void watershed_segmentation::WatershedSegmentationNodelet::onMouse | ( | int | event, |
int | x, | ||
int | y, | ||
int | flags, | ||
void * | |||
) | [inline, static, private] |
Definition at line 86 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::reconfigureCallback | ( | watershed_segmentation::WatershedSegmentationConfig & | new_config, |
uint32_t | level | ||
) | [inline, private] |
Definition at line 95 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::subscribe | ( | ) | [inline, private, virtual] |
This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
Implements opencv_apps::Nodelet.
Definition at line 280 of file watershed_segmentation_nodelet.cpp.
static void watershed_segmentation::WatershedSegmentationNodelet::trackbarCallback | ( | int | , |
void * | |||
) | [inline, static, private] |
Definition at line 117 of file watershed_segmentation_nodelet.cpp.
void watershed_segmentation::WatershedSegmentationNodelet::unsubscribe | ( | ) | [inline, private, virtual] |
This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.
Implements opencv_apps::Nodelet.
Definition at line 289 of file watershed_segmentation_nodelet.cpp.
ros::Subscriber watershed_segmentation::WatershedSegmentationNodelet::add_seed_points_sub_ [private] |
Definition at line 63 of file watershed_segmentation_nodelet.cpp.
image_transport::CameraSubscriber watershed_segmentation::WatershedSegmentationNodelet::cam_sub_ [private] |
Definition at line 61 of file watershed_segmentation_nodelet.cpp.
Definition at line 69 of file watershed_segmentation_nodelet.cpp.
Definition at line 72 of file watershed_segmentation_nodelet.cpp.
Definition at line 59 of file watershed_segmentation_nodelet.cpp.
image_transport::Subscriber watershed_segmentation::WatershedSegmentationNodelet::img_sub_ [private] |
Definition at line 60 of file watershed_segmentation_nodelet.cpp.
boost::shared_ptr<image_transport::ImageTransport> watershed_segmentation::WatershedSegmentationNodelet::it_ [private] |
Definition at line 65 of file watershed_segmentation_nodelet.cpp.
cv::Mat watershed_segmentation::WatershedSegmentationNodelet::markerMask [private] |
Definition at line 83 of file watershed_segmentation_nodelet.cpp.
Definition at line 62 of file watershed_segmentation_nodelet.cpp.
bool watershed_segmentation::WatershedSegmentationNodelet::need_config_update_ = false [static, private] |
Definition at line 76 of file watershed_segmentation_nodelet.cpp.
int watershed_segmentation::WatershedSegmentationNodelet::on_mouse_event_ = 0 [static, private] |
Definition at line 78 of file watershed_segmentation_nodelet.cpp.
int watershed_segmentation::WatershedSegmentationNodelet::on_mouse_flags_ = 0 [static, private] |
Definition at line 81 of file watershed_segmentation_nodelet.cpp.
bool watershed_segmentation::WatershedSegmentationNodelet::on_mouse_update_ = false [static, private] |
Definition at line 77 of file watershed_segmentation_nodelet.cpp.
int watershed_segmentation::WatershedSegmentationNodelet::on_mouse_x_ = 0 [static, private] |
Definition at line 79 of file watershed_segmentation_nodelet.cpp.
int watershed_segmentation::WatershedSegmentationNodelet::on_mouse_y_ = 0 [static, private] |
Definition at line 80 of file watershed_segmentation_nodelet.cpp.
Definition at line 73 of file watershed_segmentation_nodelet.cpp.
cv::Point watershed_segmentation::WatershedSegmentationNodelet::prevPt [private] |
Definition at line 84 of file watershed_segmentation_nodelet.cpp.
boost::shared_ptr<ReconfigureServer> watershed_segmentation::WatershedSegmentationNodelet::reconfigure_server_ [private] |
Definition at line 70 of file watershed_segmentation_nodelet.cpp.
std::string watershed_segmentation::WatershedSegmentationNodelet::segment_name_ [private] |
Definition at line 75 of file watershed_segmentation_nodelet.cpp.
std::string watershed_segmentation::WatershedSegmentationNodelet::window_name_ [private] |
Definition at line 75 of file watershed_segmentation_nodelet.cpp.