Skip to content

Commit

Permalink
[image_view2] Describe about msg types with topics
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 9, 2015
1 parent e0a6f01 commit 224103e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions jsk_ros_patch/image_view2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ change mode by service interfaces.

![](images/image_view2_rect_interaction.gif)

Selected regions are published to `image/screenrectangle` topic.
Selected regions are published to
`image/screenrectangle` (`geometry_msgs/PolygonStamped`) topic.

If user clicks on the view instead of dragging pointer, clicked position
is published to `image/screenpoint` topic.
is published to `image/screenpoint` (`geometry_msgs/PointStamped`) topic.

* Line mode (`~interaction_mode:=line`)

In line mode, user can select a line by dragging mouse pointer.

![](images/image_view2_line_interaction.gif)

Selected line are published to `image/line` topic.
Selected line are published to `image/line` (`geometry_msgs/PolygonStamped`) topic.

* Polygon mode (`~interaction_mode:=poly`)

Expand All @@ -40,7 +41,7 @@ change mode by service interfaces.

![](images/image_view2_poly_interaction.gif)

Selected polygon are published to `image/poly` topic.
Selected polygon are published to `image/poly` (`geometry_msgs/PolygonStamped`) topic.

* Grabcut mode (`~interaction_mode:=grabcut`)

Expand All @@ -49,8 +50,9 @@ change mode by service interfaces.

![](images/image_view2_grabcut_interaction.gif)

The selected first red curve is published to `image/foreground` and
the second green one is publiehd to `image/background`.
The selected first red curve is published to
`image/foreground` (`sensor_msgs/Image`) and
the second green one is publiehd to `image/background` (`sensor_msgs/Image`).
This mode is originally implemented to select forground and background pixels for grabcut.
* Grabcut Rectangle mode (`~interaction_mode:=grabcut_rect`)

Expand All @@ -59,8 +61,10 @@ change mode by service interfaces.

![](images/image_view2_grabcut_rect_interaction.gif)

The selected first red rectangle is published to `image/foreground_rect` and
the second green one is publiehd to `image/background_rect`.
The selected first red rectangle is published to
`image/foreground_rect` (`geometry_msgs/PolygonStamped`) and
the second green one is publiehd to
`image/background_rect` (`geometry_msgs/PolygonStamped`).
This mode is originally implemented to select forground and background regions for grabcut.

ROS API
Expand Down

0 comments on commit 224103e

Please sign in to comment.