-
Notifications
You must be signed in to change notification settings - Fork 1
/
white_line_detection.doctor.toml
78 lines (58 loc) · 2.97 KB
/
white_line_detection.doctor.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package_name = "White Line Detection"
repo = "https://github.com/iscumd/white_line_detection/tree/main"
[[nodes]]
node_name = 'white_line_detection'
#Relitive to this file
source_file = ['./src/white_line_detection.cpp']
summary = '''
Generic white line detection node. Detects white lines found in an image and performs some action on them. This node has configurable
frontends and backends, which allow for configuring the line detection algorithm and action performed on the lines respectively.
This node should function with any rectilinear monocular camera, which has a transform to base.
'''
potential_improvements = 'Add shadow removal to dyn_gauss. Look into using ML as an alternitive thresholder.'
[[nodes.publishes]]
name = '(pointcloud2 only) /camera/camera_points'
description = 'The points from the white line detection. These will be in the base_frame as set by param.'
[[nodes.publishes]]
name = '/camera/test_img'
description = 'Image topic publishing the final transformed image before being passed to line detection. Used for debugging in lieu of imshow.'
[[nodes.subscribes]]
name = '/camera/image_raw'
description = 'The raw image from the camera node/gazebo to be processed.'
[[nodes.subscribes]]
name = '/camera/camera_info'
description = 'The standard camera info topic, used to find things like resolution. Must be from the same camera that outputs the image topic.'
[[nodes.params]]
name = 'thresholder'
description = '''
The thresholding strategy to use. This is the algorithm that will actually detect the white lines. Default: isc.dyn_gauss
**Options**:
1. 'basic': A simple global threshold. Uses `lower_bound_white` as its threshold value.
2. 'isc.dyn_gauss': An ISC made algorithm that finds the mean of the image, then sets the threshold value to be 3 standard deviations away.
works well for environments that do not have major shadows, including rain with puddles and reflections.
'''
[[nodes.params]]
name = 'backend'
description = '''
The backend in use. This is the action performed on the detected lines. Default: pointcloud2
**Options**:
1. 'pointcloud2': Publishes lines as pointclouds by raytracing a path from the pixel to ground plane.
'''
[[nodes.params]]
name = 'lower_bound_white'
description = 'The lower threshold value for what is considered white. Only used with `basic` thresholder'
[[nodes.params]]
name = 'sample_nth_pixel'
description = 'How many pixels to sample from the white lines to be used in the pointcloud.'
[[nodes.params]]
name = 'kernel_size'
description = 'The size of the erosion kernel used, when appropriate.'
[[nodes.params]]
name = 'camera_frame'
description = 'The frame the camera is in. Default: "camera_link"'
[[nodes.params]]
name = 'base_frame'
description = 'The base frame the camera_frame will be relative to. Default: "base_footprint"'
[[nodes.params]]
name = 'debug_only'
description = 'Does not use backends if set. Use for testing when you only want to run this node and a rosbag, for example. Default: false'