Skip to content

Commit b513f2b

Browse files
committed
RCJ, added the service file (.srv) for image labeling
1 parent a1d19d8 commit b513f2b

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

cwru_opencv_common/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,26 @@ find_package(catkin REQUIRED COMPONENTS
1212
sensor_msgs
1313
std_msgs
1414
tf
15+
cwru_msgs
16+
)
17+
18+
add_service_files(DIRECTORY srv
19+
FILES image_label.srv
20+
)
21+
22+
## Generate added messages and services with any dependencies listed here
23+
generate_messages(
24+
DEPENDENCIES
25+
std_msgs
26+
geometry_msgs
27+
sensor_msgs
28+
cwru_msgs
1529
)
1630

1731
catkin_package(
1832
INCLUDE_DIRS include
1933
LIBRARIES opencv_ui_lib circle_detection_lib block_detection_lib grab_cut_lib projective_lib opencv_3d_lib opencv_2d_lib opencv_local_lib opencv_rot_lib color_model_lib
20-
CATKIN_DEPENDS cv_bridge image_transport roscpp sensor_msgs std_msgs
34+
CATKIN_DEPENDS cv_bridge image_transport roscpp sensor_msgs std_msgs cwru_msgs
2135
DEPENDS OpenCV
2236
)
2337

cwru_opencv_common/package.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@
4646
<build_depend>roscpp</build_depend>
4747
<build_depend>sensor_msgs</build_depend>
4848
<build_depend>std_msgs</build_depend>
49+
<build_depend>cwru_msgs</build_depend>
50+
4951
<run_depend>cv_bridge</run_depend>
5052
<run_depend>camera_info_manager</run_depend>
5153
<run_depend>image_transport</run_depend>
5254
<run_depend>roscpp</run_depend>
5355
<run_depend>sensor_msgs</run_depend>
5456
<run_depend>std_msgs</run_depend>
55-
57+
<run_depend>cwru_msgs</run_depend>
5658

5759
<!-- The export tag contains other, unspecified, tags -->
5860
<export>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This service is meant to label an image using user clicks.
2+
3+
#Call
4+
5+
#Number of requested points.
6+
int32 requestedPoints
7+
8+
# image that needs to be labeled.
9+
sensor_msgs/Image imageQuery
10+
11+
---
12+
13+
#list of response points:
14+
cwru_msgs/point2d_list pointsResp
15+
16+
17+
#labeled image response
18+
sensor_msgs/Image imageResp

0 commit comments

Comments
 (0)