Skip to content

Commit 5ecb8d6

Browse files
message refact
1 parent c9acfe2 commit 5ecb8d6

File tree

10 files changed

+371
-22
lines changed

10 files changed

+371
-22
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ add_compile_options(-std=c++11)
88
set(opencv_contrib OFF)
99
set(zbar_lib OFF)
1010
set(TensorFlow OFF)
11-
set(DLib OFF)
12-
set(igraph OFF)
11+
set(DLib ON)
12+
set(igraph ON)
1313

1414
## Find catkin macros and libraries
1515
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
@@ -51,7 +51,7 @@ add_message_files(
5151
Track.msg
5252
ExtractedInfo.msg
5353
Contour.msg
54-
SimpleObject.msg
54+
BaseObject.msg
5555
SimpleObjectArray.msg
5656
ComplexObject.msg
5757
ComplexObjectArray.msg
@@ -139,7 +139,7 @@ set ( EOD_INCLUDE
139139
# main node
140140
add_executable(
141141
extended_object_detection_node
142-
src/extended_object_detection_node/extended_object_detection_node.cpp
142+
src/extended_object_detection_node/eod_node.cpp
143143
${EOD_SRC}
144144
)
145145

config/eod_example_oak.rviz

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
Panels:
2+
- Class: rviz/Displays
3+
Help Height: 0
4+
Name: Displays
5+
Property Tree Widget:
6+
Expanded: ~
7+
Splitter Ratio: 0.5
8+
Tree Height: 304
9+
- Class: rviz/Selection
10+
Name: Selection
11+
- Class: rviz/Tool Properties
12+
Expanded:
13+
- /2D Pose Estimate1
14+
- /2D Nav Goal1
15+
- /Publish Point1
16+
Name: Tool Properties
17+
Splitter Ratio: 0.5886790156364441
18+
- Class: rviz/Views
19+
Expanded:
20+
- /Current View1
21+
Name: Views
22+
Splitter Ratio: 0.5
23+
- Class: rviz/Time
24+
Experimental: false
25+
Name: Time
26+
SyncMode: 0
27+
SyncSource: SRC Image
28+
Preferences:
29+
PromptSaveOnExit: true
30+
Toolbars:
31+
toolButtonStyle: 2
32+
Visualization Manager:
33+
Class: ""
34+
Displays:
35+
- Alpha: 0.5
36+
Cell Size: 1
37+
Class: rviz/Grid
38+
Color: 160; 160; 164
39+
Enabled: true
40+
Line Style:
41+
Line Width: 0.029999999329447746
42+
Value: Lines
43+
Name: Grid
44+
Normal Cell Count: 0
45+
Offset:
46+
X: 0
47+
Y: 0
48+
Z: 0
49+
Plane: XY
50+
Plane Cell Count: 10
51+
Reference Frame: <Fixed Frame>
52+
Value: true
53+
- Class: rviz/TF
54+
Enabled: true
55+
Frame Timeout: 15
56+
Frames:
57+
All Enabled: true
58+
camera_link:
59+
Value: true
60+
map:
61+
Value: true
62+
oak-d-base-frame:
63+
Value: true
64+
oak-d_frame:
65+
Value: true
66+
oak_imu_frame:
67+
Value: true
68+
oak_left_camera_frame:
69+
Value: true
70+
oak_left_camera_optical_frame:
71+
Value: true
72+
oak_model_origin:
73+
Value: true
74+
oak_rgb_camera_frame:
75+
Value: true
76+
oak_rgb_camera_optical_frame:
77+
Value: true
78+
oak_right_camera_frame:
79+
Value: true
80+
oak_right_camera_optical_frame:
81+
Value: true
82+
Marker Alpha: 1
83+
Marker Scale: 1
84+
Name: TF
85+
Show Arrows: true
86+
Show Axes: true
87+
Show Names: true
88+
Tree:
89+
map:
90+
camera_link:
91+
{}
92+
Update Interval: 0
93+
Value: true
94+
- Alpha: 1
95+
Autocompute Intensity Bounds: true
96+
Autocompute Value Bounds:
97+
Max Value: 10
98+
Min Value: -10
99+
Value: true
100+
Axis: Z
101+
Channel Name: intensity
102+
Class: rviz/PointCloud2
103+
Color: 255; 255; 255
104+
Color Transformer: RGB8
105+
Decay Time: 0
106+
Enabled: true
107+
Invert Rainbow: false
108+
Max Color: 255; 255; 255
109+
Min Color: 0; 0; 0
110+
Name: Kinect scan
111+
Position Transformer: XYZ
112+
Queue Size: 10
113+
Selectable: true
114+
Size (Pixels): 3
115+
Size (m): 0.009999999776482582
116+
Style: Flat Squares
117+
Topic: /camera/depth_registered/points
118+
Unreliable: false
119+
Use Fixed Frame: true
120+
Use rainbow: true
121+
Value: true
122+
- Class: rviz/MarkerArray
123+
Enabled: true
124+
Marker Topic: /extended_object_detection/simple_objects_markers
125+
Name: SimpleObjects
126+
Namespaces:
127+
{}
128+
Queue Size: 100
129+
Value: true
130+
- Class: rviz/MarkerArray
131+
Enabled: true
132+
Marker Topic: /extended_object_detection/complex_objects_markers
133+
Name: ComplexObjects
134+
Namespaces:
135+
{}
136+
Queue Size: 100
137+
Value: true
138+
- Class: rviz/Image
139+
Enabled: true
140+
Image Topic: /extended_object_detection/detected_image
141+
Max Value: 1
142+
Median window: 5
143+
Min Value: 0
144+
Name: Detected Image
145+
Normalize Range: true
146+
Queue Size: 2
147+
Transport Hint: raw
148+
Unreliable: false
149+
Value: true
150+
- Class: rviz/Image
151+
Enabled: true
152+
Image Topic: /rgb_stereo_publisher/color/image
153+
Max Value: 1
154+
Median window: 5
155+
Min Value: 0
156+
Name: SRC Image
157+
Normalize Range: true
158+
Queue Size: 2
159+
Transport Hint: raw
160+
Unreliable: false
161+
Value: true
162+
- Class: rviz/Image
163+
Enabled: true
164+
Image Topic: /rgb_stereo_publisher/stereo/depth
165+
Max Value: 1
166+
Median window: 5
167+
Min Value: 0
168+
Name: SRC Depth
169+
Normalize Range: true
170+
Queue Size: 2
171+
Transport Hint: raw
172+
Unreliable: false
173+
Value: true
174+
Enabled: true
175+
Global Options:
176+
Background Color: 48; 48; 48
177+
Default Light: true
178+
Fixed Frame: map
179+
Frame Rate: 30
180+
Name: root
181+
Tools:
182+
- Class: rviz/Interact
183+
Hide Inactive Objects: true
184+
- Class: rviz/MoveCamera
185+
- Class: rviz/Select
186+
- Class: rviz/FocusCamera
187+
- Class: rviz/Measure
188+
- Class: rviz/SetInitialPose
189+
Theta std deviation: 0.2617993950843811
190+
Topic: /initialpose
191+
X std deviation: 0.5
192+
Y std deviation: 0.5
193+
- Class: rviz/SetGoal
194+
Topic: /move_base_simple/goal
195+
- Class: rviz/PublishPoint
196+
Single click: true
197+
Topic: /clicked_point
198+
Value: true
199+
Views:
200+
Current:
201+
Class: rviz/Orbit
202+
Distance: 5.1412224769592285
203+
Enable Stereo Rendering:
204+
Stereo Eye Separation: 0.05999999865889549
205+
Stereo Focal Distance: 1
206+
Swap Stereo Eyes: false
207+
Value: false
208+
Field of View: 0.7853981852531433
209+
Focal Point:
210+
X: 1.535446047782898
211+
Y: -0.4598390758037567
212+
Z: -0.15033507347106934
213+
Focal Shape Fixed Size: true
214+
Focal Shape Size: 0.05000000074505806
215+
Invert Z Axis: false
216+
Name: Current View
217+
Near Clip Distance: 0.009999999776482582
218+
Pitch: 0.43979617953300476
219+
Target Frame: <Fixed Frame>
220+
Yaw: 2.5604374408721924
221+
Saved: ~
222+
Window Geometry:
223+
Detected Image:
224+
collapsed: false
225+
Displays:
226+
collapsed: false
227+
Height: 1015
228+
Hide Left Dock: false
229+
Hide Right Dock: false
230+
QMainWindow State: 000000ff00000000fd00000004000000000000016a00000341fc020000000afb0000001200530065006c0065006300740069006f006e00000001e10000009b0000007901000003fb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c00610079007301000000420000017d000000fd01000003fb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261fb0000001200530052004300200049006d00610067006501000001c0000000d60000002201000003fb000000120053005200430020004400650070007400680100000297000000ec0000002201000003000000010000037e00000341fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fc0000004200000341000000ef0100001bfa000000000100000002fb0000001c0044006500740065006300740065006400200049006d0061006700650100000000ffffffff000000a201000003fb0000000a005600690065007700730100000670000001100000011001000003fb0000001200530065006c0065006300740069006f006e010000025a000000b200000000000000000000000200000780000001e8fc0100000001fb0000000a00560069006500770073030000004e00000080000002e10000019700000003000007800000004efc0100000002fb0000000800540069006d0065010000000000000780000002ad01000003fb0000000800540069006d00650100000000000004500000000000000000000002960000034100000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
231+
SRC Depth:
232+
collapsed: false
233+
SRC Image:
234+
collapsed: false
235+
Selection:
236+
collapsed: false
237+
Time:
238+
collapsed: false
239+
Tool Properties:
240+
collapsed: false
241+
Views:
242+
collapsed: false
243+
Width: 1920
244+
X: 0
245+
Y: 0

launch/extended_object_detection_oakd_example.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<node name="extended_object_detection" pkg="extended_object_detection" type="extended_object_detection_node" output="screen" >
1010

11-
<param name="objectBasePath" value="$(arg objectBasePath)"/>
11+
<param name="object_base" value="$(arg objectBasePath)"/>
1212

1313
<param name="subscribe_depth" value="true"/>
1414
<param name="rate_limit_sec" value="0.1"/>

msg/BaseObject.msg

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# id of type, corresponded to object base
2+
int32 type_id
3+
4+
# name of type, corresponded to object base
5+
string type_name
6+
7+
# confidence coefficient of current result
8+
float64 score
9+
10+
# additional info represended as dictionary
11+
extended_object_detection/ExtractedInfo extracted_info
12+
13+
# object position and geometry
14+
15+
## transform to object center
16+
geometry_msgs/Transform transform
17+
18+
## object frames on image and 3d coordinates
19+
extended_object_detection/Rect rect
20+
21+
# information about tracking if it is enabled
22+
extended_object_detection/Track track
23+
24+
25+
26+

msg/ComplexObject.msg

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
int32 type_id # id of object type, according to ObjectBase
2-
string type_name # name of object type, according to ObjectBase
1+
# aggregated info of an object
2+
extended_object_detection/BaseObject complex_object
33

4-
float64 score # confidence coefficient of current result
5-
extended_object_detection/ExtractedInfo extracted_info
6-
7-
extended_object_detection/Rect rect # object frames on image and 3d coordinates
8-
geometry_msgs/Transform transform # transform to object center in meters, if z=1 distance is unknow, only direction
9-
extended_object_detection/SimpleObject[] objects # set of simple objects form current complex
4+
# sub parts of complex objects
5+
extended_object_detection/BaseObject[] simple_objects

msg/ComplexObjectArray.msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
std_msgs/Header header
2-
extended_object_detection/ComplexObject[] complex_objects
2+
extended_object_detection/ComplexObject[] objects

msg/SimpleObjectArray.msg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
std_msgs/Header header
2-
extended_object_detection/SimpleObject[] objects
2+
3+
extended_object_detection/BaseObject[] objects

0 commit comments

Comments
 (0)