Skip to content

Commit 45d0d8d

Browse files
committed
Merge branch 'master' of github.com:dash-robotics/perception
2 parents 6c5b803 + e8ebfe2 commit 45d0d8d

19 files changed

+18411
-957
lines changed

cuboid_detection/launch/iterative_closest_point.launch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
</node>
6262

6363
<!-- Run RVIZ -->
64-
<node
64+
<!--node
6565
type="rviz"
6666
name="rviz"
6767
pkg="rviz"
6868
args="-d $(find cuboid_detection)/perception.rviz">
69-
</node>
69+
</node-->
7070

7171
</launch>

object_detection/CMakeLists.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ include_directories(${OpenCV_INCLUDE_DIRS})
6565
# )
6666

6767
## Generate services in the 'srv' folder
68-
# add_service_files(
69-
# FILES
70-
# Service1.srv
71-
# Service2.srv
72-
# )
68+
add_service_files(
69+
FILES
70+
ObjectDetection.srv
71+
)
7372

7473
## Generate actions in the 'action' folder
7574
# add_action_files(
@@ -145,8 +144,7 @@ include
145144
## Declare a C++ executable
146145
## With catkin_make all packages are built within a single CMake context
147146
## The recommended prefix ensures that target names across packages don't collide
148-
add_executable(ground_plane_segmentation src/ground_plane_segmentation.cpp)
149-
add_executable(iterative_closest_point src/iterative_closest_point.cpp)
147+
add_executable(object_pose_detection src/object_pose_detection.cpp)
150148

151149
## Rename C++ executable without prefix
152150
## The above recommended prefix causes long target names, the following renames the
@@ -159,5 +157,4 @@ add_executable(iterative_closest_point src/iterative_closest_point.cpp)
159157
# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
160158

161159
## Specify libraries to link a library or executable target against
162-
target_link_libraries(ground_plane_segmentation ${catkin_LIBRARIES})
163-
target_link_libraries(iterative_closest_point ${catkin_LIBRARIES})
160+
target_link_libraries(object_pose_detection ${catkin_LIBRARIES})

object_detection/launch/ground_plane_segmentation.launch

Lines changed: 0 additions & 26 deletions
This file was deleted.

object_detection/launch/object_detection.launch

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,42 @@
22
<launch>
33

44
<!-- Play rosbag file -->
5-
<include file="$(find object_detection)/launch/play_rosbag.launch">
5+
<!-- <include file="$(find object_detection)/launch/play_rosbag.launch">
66
<arg name="filename" value="all-01.bag" />
7-
</include>
7+
</include> -->
88

99
<!-- Launch the depth camera -->
1010
<!-- <include file="$(find realsense2_camera)/launch/rs_camera.launch">
1111
<arg name="enable_pointcloud" value="true"/>
1212
</include> -->
1313

14-
<!-- Launch Bounding Box Filter -->
15-
<!-- <include file="$(find object_detection)/launch/bbox_filter.launch"/> -->
16-
17-
<!-- Launch surface normal estimation -->
18-
<!-- <include file="$(find object_detection)/launch/surface_normal_estimation.launch"/> -->
14+
<!-- Launch object pose detection -->
15+
<node
16+
pkg="object_detection"
17+
type="object_pose_detection"
18+
name="object_pose_detection"
19+
output="screen">
1920

20-
<!-- Launch ground plane segmentation -->
21-
<include file="$(find object_detection)/launch/ground_plane_segmentation.launch"/>
21+
<!-- Template object folder for ICP -->
22+
<param
23+
name="template_path"
24+
type="string"
25+
value="$(find object_detection)/templates/" />
2226

23-
<!-- Launch ICP -->
24-
<!-- <include file="$(find object_detection)/launch/iterative_closest_point.launch"/> -->
27+
<!-- Set topics and params -->
28+
<rosparam>
29+
<!-- invert (default: true): True > Box; False > Ground Plane -->
30+
invert: true
31+
<!-- voxel_size (default: 0.01): Lower the value, denser the point cloud, more CPU -->
32+
voxel_size: 0.001
33+
<!-- distance_threshold (default: 0.01): Lower the value, more of box + table noise -->
34+
distance_threshold: 0.01
35+
<!-- Topics -->
36+
input: "/camera/depth/color/points"
37+
output: "/object_pose_detection/points"
38+
icp_fitness_score: 0.0004
39+
</rosparam>
40+
</node>
2541

2642
<!-- Display the 3D bounding box -->
2743
<!-- <node
@@ -40,11 +56,11 @@
4056
</node> -->
4157

4258
<!-- Run RVIZ -->
43-
<node
59+
<!-- <node
4460
type="rviz"
4561
name="rviz"
4662
pkg="rviz"
4763
args="-d $(find object_detection)/perception.rviz">
48-
</node>
64+
</node> -->
4965

5066
</launch>

object_detection/perception.rviz

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Panels:
33
Help Height: 75
44
Name: Displays
55
Property Tree Widget:
6-
Expanded: ~
6+
Expanded:
7+
- /Axes1
78
Splitter Ratio: 0.5
89
Tree Height: 371
910
- Class: rviz/Selection
@@ -24,7 +25,7 @@ Panels:
2425
Experimental: false
2526
Name: Time
2627
SyncMode: 0
27-
SyncSource: Raw Input PCL
28+
SyncSource: ""
2829
Visualization Manager:
2930
Class: ""
3031
Displays:
@@ -51,7 +52,7 @@ Visualization Manager:
5152
Length: 0.5
5253
Name: Axes
5354
Radius: 0.00999999978
54-
Reference Frame: <Fixed Frame>
55+
Reference Frame: camera_depth_optical_frame
5556
Value: true
5657
- Class: rviz/Image
5758
Enabled: true
@@ -77,7 +78,7 @@ Visualization Manager:
7778
Color: 255; 0; 0
7879
Color Transformer: FlatColor
7980
Decay Time: 0
80-
Enabled: false
81+
Enabled: true
8182
Invert Rainbow: false
8283
Max Color: 255; 255; 255
8384
Max Intensity: 4096
@@ -94,7 +95,7 @@ Visualization Manager:
9495
Unreliable: false
9596
Use Fixed Frame: true
9697
Use rainbow: true
97-
Value: false
98+
Value: true
9899
- Alpha: 1
99100
Autocompute Intensity Bounds: true
100101
Autocompute Value Bounds:
@@ -107,7 +108,7 @@ Visualization Manager:
107108
Color: 0; 255; 0
108109
Color Transformer: FlatColor
109110
Decay Time: 0
110-
Enabled: false
111+
Enabled: true
111112
Invert Rainbow: false
112113
Max Color: 255; 255; 255
113114
Max Intensity: 4096
@@ -120,11 +121,11 @@ Visualization Manager:
120121
Size (Pixels): 3
121122
Size (m): 0.00999999978
122123
Style: Points
123-
Topic: /icp/aligned_points
124+
Topic: /icp/registered_pcl
124125
Unreliable: false
125126
Use Fixed Frame: true
126127
Use rainbow: true
127-
Value: false
128+
Value: true
128129
- Alpha: 1
129130
Autocompute Intensity Bounds: true
130131
Autocompute Value Bounds:
@@ -210,11 +211,19 @@ Visualization Manager:
210211
Size (Pixels): 3
211212
Size (m): 0.00999999978
212213
Style: Points
213-
Topic: /ground_plane_segmentation/points
214+
Topic: /object_pose_detection/points
214215
Unreliable: false
215216
Use Fixed Frame: true
216217
Use rainbow: true
217218
Value: true
219+
- Class: rviz/Marker
220+
Enabled: true
221+
Marker Topic: /object_pose_detection/object_pose_detection/grasp_pose
222+
Name: Marker
223+
Namespaces:
224+
{}
225+
Queue Size: 100
226+
Value: true
218227
Enabled: true
219228
Global Options:
220229
Background Color: 48; 48; 48
@@ -240,25 +249,25 @@ Visualization Manager:
240249
Views:
241250
Current:
242251
Class: rviz/Orbit
243-
Distance: 0.469594628
252+
Distance: 0.911043346
244253
Enable Stereo Rendering:
245254
Stereo Eye Separation: 0.0599999987
246255
Stereo Focal Distance: 1
247256
Swap Stereo Eyes: false
248257
Value: false
249258
Focal Point:
250-
X: 0.33194834
251-
Y: 0.230934247
252-
Z: -0.0767720714
259+
X: -0.012347864
260+
Y: -0.153358907
261+
Z: -0.142543241
253262
Focal Shape Fixed Size: true
254263
Focal Shape Size: 0.0500000007
255264
Invert Z Axis: false
256265
Name: Current View
257266
Near Clip Distance: 0.00999999978
258-
Pitch: 0.320203245
267+
Pitch: 0.550203443
259268
Target Frame: <Fixed Frame>
260269
Value: Orbit (rviz)
261-
Yaw: 2.77925992
270+
Yaw: 2.59425759
262271
Saved: ~
263272
Window Geometry:
264273
3D Bounding Box Image:

0 commit comments

Comments
 (0)