robopeak / rplidar_ros

BSD 2-Clause "Simplified" License
453 stars 370 forks source link

Doubt about intensities array #44

Closed jabrena closed 7 years ago

jabrena commented 7 years ago

Hi,

I am analyzing the ROS node for the RPLIDAR sensor and I would like to know what information store in the array about intensities:

https://github.com/robopeak/rplidar_ros/blob/master/src/node.cpp

scan_msg.intensities[node_count-1-i] = (float) (nodes[i].sync_quality >> 2);

What is the range of values that the sensor generate? In the SDK file: rplidar_cmd.h define the following structure:

typedef struct _rplidar_response_measurement_node_t {
  121:     _u8    sync_quality;      // syncbit:1;syncbit_inverse:1;quality:6;

I would like to know what possible values are populated to the ROS message: sensor_msgs/LaserScan.h

nodes[i].sync_quality >> 2

Many thanks in advance.

Juan Antonio

kintzhao commented 7 years ago

It is a quality value of measure, same as intensities in the old SDK version.. But this value is invalid value at current version of SDK, it is not well using it do anything at current Version.

jabrena commented 7 years ago

Hi @kintzhao,

Reading the Sensor from a Java library, I can read the quality of the measure in any Scan Complete:

ev3dev#3|17:54:41.618 [Thread-1] INFO examples.Demo6 - Angle: 0, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.634 [Thread-1] INFO examples.Demo6 - Angle: 2, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.653 [Thread-1] INFO examples.Demo6 - Angle: 3, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.670 [Thread-1] INFO examples.Demo6 - Angle: 5, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.688 [Thread-1] INFO examples.Demo6 - Angle: 6, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.705 [Thread-1] INFO examples.Demo6 - Angle: 7, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.724 [Thread-1] INFO examples.Demo6 - Angle: 9, Distance: 0.0, Quality: 17
ev3dev#3|17:54:41.741 [Thread-1] INFO examples.Demo6 - Angle: 10, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.765 [Thread-1] INFO examples.Demo6 - Angle: 4, Distance: 283.575, Quality: 11
ev3dev#3|17:54:41.794 [Thread-1] INFO examples.Demo6 - Angle: 5, Distance: 282.4, Quality: 9
ev3dev#3|17:54:41.820 [Thread-1] INFO examples.Demo6 - Angle: 14, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.843 [Thread-1] INFO examples.Demo6 - Angle: 16, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.868 [Thread-1] INFO examples.Demo6 - Angle: 10, Distance: 290.5, Quality: 13
ev3dev#3|17:54:41.893 [Thread-1] INFO examples.Demo6 - Angle: 19, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.919 [Thread-1] INFO examples.Demo6 - Angle: 20, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.942 [Thread-1] INFO examples.Demo6 - Angle: 21, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.965 [Thread-1] INFO examples.Demo6 - Angle: 23, Distance: 0.0, Quality: 0
ev3dev#3|17:54:41.991 [Thread-1] INFO examples.Demo6 - Angle: 24, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.014 [Thread-1] INFO examples.Demo6 - Angle: 26, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.037 [Thread-1] INFO examples.Demo6 - Angle: 27, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.063 [Thread-1] INFO examples.Demo6 - Angle: 21, Distance: 136.675, Quality: 14
ev3dev#3|17:54:42.086 [Thread-1] INFO examples.Demo6 - Angle: 23, Distance: 133.125, Quality: 15
ev3dev#3|17:54:42.114 [Thread-1] INFO examples.Demo6 - Angle: 24, Distance: 130.05, Quality: 20
ev3dev#3|17:54:42.133 [Thread-1] INFO examples.Demo6 - Angle: 26, Distance: 129.725, Quality: 23
ev3dev#3|17:54:42.152 [Thread-1] INFO examples.Demo6 - Angle: 27, Distance: 129.4, Quality: 22
ev3dev#3|17:54:42.179 [Thread-1] INFO examples.Demo6 - Angle: 28, Distance: 131.425, Quality: 20
ev3dev#3|17:54:42.198 [Thread-1] INFO examples.Demo6 - Angle: 30, Distance: 133.225, Quality: 17
ev3dev#3|17:54:42.216 [Thread-1] INFO examples.Demo6 - Angle: 31, Distance: 138.675, Quality: 9
ev3dev#3|17:54:42.235 [Thread-1] INFO examples.Demo6 - Angle: 40, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.258 [Thread-1] INFO examples.Demo6 - Angle: 41, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.281 [Thread-1] INFO examples.Demo6 - Angle: 43, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.305 [Thread-1] INFO examples.Demo6 - Angle: 44, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.330 [Thread-1] INFO examples.Demo6 - Angle: 45, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.345 [Thread-1] INFO examples.Demo6 - Angle: 40, Distance: 131.7, Quality: 24
ev3dev#3|17:54:42.361 [Thread-1] INFO examples.Demo6 - Angle: 41, Distance: 133.4, Quality: 26
ev3dev#3|17:54:42.380 [Thread-1] INFO examples.Demo6 - Angle: 43, Distance: 135.9, Quality: 27
ev3dev#3|17:54:42.397 [Thread-1] INFO examples.Demo6 - Angle: 44, Distance: 139.075, Quality: 24
ev3dev#3|17:54:42.413 [Thread-1] INFO examples.Demo6 - Angle: 45, Distance: 138.55, Quality: 23
ev3dev#3|17:54:42.431 [Thread-1] INFO examples.Demo6 - Angle: 47, Distance: 137.025, Quality: 25
ev3dev#3|17:54:42.449 [Thread-1] INFO examples.Demo6 - Angle: 48, Distance: 141.025, Quality: 23
ev3dev#3|17:54:42.465 [Thread-1] INFO examples.Demo6 - Angle: 50, Distance: 147.45, Quality: 13
ev3dev#3|17:54:42.483 [Thread-1] INFO examples.Demo6 - Angle: 50, Distance: 459.425, Quality: 11
ev3dev#3|17:54:42.503 [Thread-1] INFO examples.Demo6 - Angle: 53, Distance: 134.25, Quality: 26
ev3dev#3|17:54:42.520 [Thread-1] INFO examples.Demo6 - Angle: 54, Distance: 131.95, Quality: 26
ev3dev#3|17:54:42.539 [Thread-1] INFO examples.Demo6 - Angle: 56, Distance: 121.0, Quality: 12
ev3dev#3|17:54:42.553 [Thread-1] INFO examples.Demo6 - Angle: 64, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.570 [Thread-1] INFO examples.Demo6 - Angle: 65, Distance: 0.0, Quality: 9
ev3dev#3|17:54:42.588 [Thread-1] INFO examples.Demo6 - Angle: 67, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.603 [Thread-1] INFO examples.Demo6 - Angle: 68, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.618 [Thread-1] INFO examples.Demo6 - Angle: 69, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.635 [Thread-1] INFO examples.Demo6 - Angle: 71, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.651 [Thread-1] INFO examples.Demo6 - Angle: 72, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.670 [Thread-1] INFO examples.Demo6 - Angle: 74, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.684 [Thread-1] INFO examples.Demo6 - Angle: 75, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.703 [Thread-1] INFO examples.Demo6 - Angle: 76, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.718 [Thread-1] INFO examples.Demo6 - Angle: 78, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.734 [Thread-1] INFO examples.Demo6 - Angle: 79, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.752 [Thread-1] INFO examples.Demo6 - Angle: 81, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.770 [Thread-1] INFO examples.Demo6 - Angle: 74, Distance: 360.6, Quality: 12
ev3dev#3|17:54:42.795 [Thread-1] INFO examples.Demo6 - Angle: 76, Distance: 358.7, Quality: 13
ev3dev#3|17:54:42.819 [Thread-1] INFO examples.Demo6 - Angle: 85, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.844 [Thread-1] INFO examples.Demo6 - Angle: 86, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.869 [Thread-1] INFO examples.Demo6 - Angle: 88, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.894 [Thread-1] INFO examples.Demo6 - Angle: 89, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.918 [Thread-1] INFO examples.Demo6 - Angle: 91, Distance: 0.0, Quality: 0
ev3dev#3|17:54:42.939 [Thread-1] INFO examples.Demo6 - Angle: 86, Distance: 102.125, Quality: 25
ev3dev#3|17:54:42.964 [Thread-1] INFO examples.Demo6 - Angle: 87, Distance: 102.675, Quality: 24
ev3dev#3|17:54:42.990 [Thread-1] INFO examples.Demo6 - Angle: 95, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.015 [Thread-1] INFO examples.Demo6 - Angle: 96, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.038 [Thread-1] INFO examples.Demo6 - Angle: 91, Distance: 109.05, Quality: 10
ev3dev#3|17:54:43.069 [Thread-1] INFO examples.Demo6 - Angle: 93, Distance: 107.65, Quality: 31
ev3dev#3|17:54:43.093 [Thread-1] INFO examples.Demo6 - Angle: 94, Distance: 106.85, Quality: 27
ev3dev#3|17:54:43.118 [Thread-1] INFO examples.Demo6 - Angle: 102, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.140 [Thread-1] INFO examples.Demo6 - Angle: 103, Distance: 0.0, Quality: 11
ev3dev#3|17:54:43.384 [Thread-1] INFO examples.Demo6 - Angle: 97, Distance: 344.95, Quality: 13
ev3dev#3|17:54:43.410 [Thread-1] INFO examples.Demo6 - Angle: 99, Distance: 344.55, Quality: 11
ev3dev#3|17:54:43.460 [Thread-1] INFO examples.Demo6 - Angle: 100, Distance: 346.5, Quality: 10
ev3dev#3|17:54:43.484 [Thread-1] INFO examples.Demo6 - Angle: 102, Distance: 346.025, Quality: 11
ev3dev#3|17:54:43.504 [Thread-1] INFO examples.Demo6 - Angle: 103, Distance: 348.275, Quality: 10
ev3dev#3|17:54:43.534 [Thread-1] INFO examples.Demo6 - Angle: 104, Distance: 352.45, Quality: 10
ev3dev#3|17:54:43.561 [Thread-1] INFO examples.Demo6 - Angle: 106, Distance: 366.475, Quality: 11
ev3dev#3|17:54:43.588 [Thread-1] INFO examples.Demo6 - Angle: 107, Distance: 369.175, Quality: 11
ev3dev#3|17:54:43.614 [Thread-1] INFO examples.Demo6 - Angle: 116, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.640 [Thread-1] INFO examples.Demo6 - Angle: 118, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.661 [Thread-1] INFO examples.Demo6 - Angle: 119, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.681 [Thread-1] INFO examples.Demo6 - Angle: 114, Distance: 74.675, Quality: 20
ev3dev#3|17:54:43.709 [Thread-1] INFO examples.Demo6 - Angle: 122, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.737 [Thread-1] INFO examples.Demo6 - Angle: 123, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.760 [Thread-1] INFO examples.Demo6 - Angle: 125, Distance: 0.0, Quality: 11
ev3dev#3|17:54:43.785 [Thread-1] INFO examples.Demo6 - Angle: 119, Distance: 217.45, Quality: 11
ev3dev#3|17:54:43.809 [Thread-1] INFO examples.Demo6 - Angle: 120, Distance: 211.5, Quality: 14
ev3dev#3|17:54:43.837 [Thread-1] INFO examples.Demo6 - Angle: 122, Distance: 202.35, Quality: 12
ev3dev#3|17:54:43.855 [Thread-1] INFO examples.Demo6 - Angle: 130, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.873 [Thread-1] INFO examples.Demo6 - Angle: 132, Distance: 0.0, Quality: 0
ev3dev#3|17:54:43.891 [Thread-1] INFO examples.Demo6 - Angle: 127, Distance: 125.8, Quality: 26
ev3dev#3|17:54:43.920 [Thread-1] INFO examples.Demo6 - Angle: 128, Distance: 126.1, Quality: 26
ev3dev#3|17:54:43.945 [Thread-1] INFO examples.Demo6 - Angle: 129, Distance: 122.125, Quality: 22
ev3dev#3|17:54:43.965 [Thread-1] INFO examples.Demo6 - Angle: 131, Distance: 117.6, Quality: 26
ev3dev#3|17:54:43.982 [Thread-1] INFO examples.Demo6 - Angle: 132, Distance: 116.25, Quality: 25
ev3dev#3|17:54:43.999 [Thread-1] INFO examples.Demo6 - Angle: 134, Distance: 119.15, Quality: 30
ev3dev#3|17:54:44.015 [Thread-1] INFO examples.Demo6 - Angle: 135, Distance: 122.25, Quality: 22
ev3dev#3|17:54:44.035 [Thread-1] INFO examples.Demo6 - Angle: 137, Distance: 125.25, Quality: 26
ev3dev#3|17:54:44.055 [Thread-1] INFO examples.Demo6 - Angle: 138, Distance: 104.425, Quality: 27
ev3dev#3|17:54:44.080 [Thread-1] INFO examples.Demo6 - Angle: 140, Distance: 102.175, Quality: 24
ev3dev#3|17:54:44.100 [Thread-1] INFO examples.Demo6 - Angle: 141, Distance: 99.925, Quality: 29
ev3dev#3|17:54:44.122 [Thread-1] INFO examples.Demo6 - Angle: 143, Distance: 99.175, Quality: 28
ev3dev#3|17:54:44.138 [Thread-1] INFO examples.Demo6 - Angle: 144, Distance: 97.325, Quality: 23
ev3dev#3|17:54:44.152 [Thread-1] INFO examples.Demo6 - Angle: 145, Distance: 95.5, Quality: 25
ev3dev#3|17:54:44.172 [Thread-1] INFO examples.Demo6 - Angle: 147, Distance: 94.025, Quality: 23
ev3dev#3|17:54:44.189 [Thread-1] INFO examples.Demo6 - Angle: 148, Distance: 92.475, Quality: 26
ev3dev#3|17:54:44.203 [Thread-1] INFO examples.Demo6 - Angle: 150, Distance: 91.025, Quality: 27
ev3dev#3|17:54:44.224 [Thread-1] INFO examples.Demo6 - Angle: 151, Distance: 89.725, Quality: 26
ev3dev#3|17:54:44.241 [Thread-1] INFO examples.Demo6 - Angle: 153, Distance: 88.5, Quality: 26
ev3dev#3|17:54:44.258 [Thread-1] INFO examples.Demo6 - Angle: 154, Distance: 87.225, Quality: 26
ev3dev#3|17:54:44.275 [Thread-1] INFO examples.Demo6 - Angle: 156, Distance: 86.225, Quality: 27
ev3dev#3|17:54:44.292 [Thread-1] INFO examples.Demo6 - Angle: 157, Distance: 85.4, Quality: 28
ev3dev#3|17:54:44.310 [Thread-1] INFO examples.Demo6 - Angle: 159, Distance: 84.625, Quality: 29
ev3dev#3|17:54:44.327 [Thread-1] INFO examples.Demo6 - Angle: 160, Distance: 83.825, Quality: 24
ev3dev#3|17:54:44.347 [Thread-1] INFO examples.Demo6 - Angle: 162, Distance: 83.225, Quality: 25
ev3dev#3|17:54:44.364 [Thread-1] INFO examples.Demo6 - Angle: 163, Distance: 81.7, Quality: 24
ev3dev#3|17:54:44.382 [Thread-1] INFO examples.Demo6 - Angle: 165, Distance: 81.1, Quality: 24
ev3dev#3|17:54:44.395 [Thread-1] INFO examples.Demo6 - Angle: 166, Distance: 80.3, Quality: 25
ev3dev#3|17:54:44.414 [Thread-1] INFO examples.Demo6 - Angle: 167, Distance: 79.7, Quality: 27
ev3dev#3|17:54:44.431 [Thread-1] INFO examples.Demo6 - Angle: 169, Distance: 79.75, Quality: 26
ev3dev#3|17:54:44.448 [Thread-1] INFO examples.Demo6 - Angle: 170, Distance: 79.525, Quality: 27
ev3dev#3|17:54:44.465 [Thread-1] INFO examples.Demo6 - Angle: 172, Distance: 79.2, Quality: 26
ev3dev#3|17:54:44.483 [Thread-1] INFO examples.Demo6 - Angle: 173, Distance: 78.875, Quality: 26
ev3dev#3|17:54:44.500 [Thread-1] INFO examples.Demo6 - Angle: 175, Distance: 78.075, Quality: 29
ev3dev#3|17:54:44.520 [Thread-1] INFO examples.Demo6 - Angle: 176, Distance: 78.05, Quality: 29
ev3dev#3|17:54:44.537 [Thread-1] INFO examples.Demo6 - Angle: 178, Distance: 77.9, Quality: 22
ev3dev#3|17:54:44.554 [Thread-1] INFO examples.Demo6 - Angle: 179, Distance: 77.825, Quality: 22
ev3dev#3|17:54:44.571 [Thread-1] INFO examples.Demo6 - Angle: 180, Distance: 78.825, Quality: 26
ev3dev#3|17:54:44.589 [Thread-1] INFO examples.Demo6 - Angle: 182, Distance: 78.925, Quality: 26
ev3dev#3|17:54:44.603 [Thread-1] INFO examples.Demo6 - Angle: 183, Distance: 79.05, Quality: 26
ev3dev#3|17:54:44.621 [Thread-1] INFO examples.Demo6 - Angle: 185, Distance: 79.275, Quality: 26
ev3dev#3|17:54:44.637 [Thread-1] INFO examples.Demo6 - Angle: 186, Distance: 79.5, Quality: 25
ev3dev#3|17:54:44.655 [Thread-1] INFO examples.Demo6 - Angle: 188, Distance: 79.8, Quality: 28
ev3dev#3|17:54:44.675 [Thread-1] INFO examples.Demo6 - Angle: 189, Distance: 80.025, Quality: 28
ev3dev#3|17:54:44.698 [Thread-1] INFO examples.Demo6 - Angle: 191, Distance: 80.425, Quality: 26
ev3dev#3|17:54:44.723 [Thread-1] INFO examples.Demo6 - Angle: 192, Distance: 80.875, Quality: 25
ev3dev#3|17:54:44.744 [Thread-1] INFO examples.Demo6 - Angle: 193, Distance: 81.35, Quality: 27
ev3dev#3|17:54:44.763 [Thread-1] INFO examples.Demo6 - Angle: 195, Distance: 81.875, Quality: 29
ev3dev#3|17:54:44.782 [Thread-1] INFO examples.Demo6 - Angle: 196, Distance: 82.6, Quality: 27
ev3dev#3|17:54:44.799 [Thread-1] INFO examples.Demo6 - Angle: 198, Distance: 83.175, Quality: 24
ev3dev#3|17:54:44.814 [Thread-1] INFO examples.Demo6 - Angle: 199, Distance: 83.975, Quality: 28
ev3dev#3|17:54:44.833 [Thread-1] INFO examples.Demo6 - Angle: 201, Distance: 84.8, Quality: 28
ev3dev#3|17:54:44.850 [Thread-1] INFO examples.Demo6 - Angle: 202, Distance: 85.6, Quality: 27
ev3dev#3|17:54:44.867 [Thread-1] INFO examples.Demo6 - Angle: 204, Distance: 86.6, Quality: 28
ev3dev#3|17:54:44.885 [Thread-1] INFO examples.Demo6 - Angle: 205, Distance: 86.825, Quality: 27
ev3dev#3|17:54:44.903 [Thread-1] INFO examples.Demo6 - Angle: 206, Distance: 87.6, Quality: 24
ev3dev#3|17:54:44.919 [Thread-1] INFO examples.Demo6 - Angle: 208, Distance: 88.85, Quality: 26
ev3dev#3|17:54:44.942 [Thread-1] INFO examples.Demo6 - Angle: 209, Distance: 90.0, Quality: 24
ev3dev#3|17:54:44.964 [Thread-1] INFO examples.Demo6 - Angle: 211, Distance: 91.475, Quality: 28
ev3dev#3|17:54:44.993 [Thread-1] INFO examples.Demo6 - Angle: 219, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.017 [Thread-1] INFO examples.Demo6 - Angle: 220, Distance: 0.0, Quality: 27
ev3dev#3|17:54:45.041 [Thread-1] INFO examples.Demo6 - Angle: 214, Distance: 143.575, Quality: 21
ev3dev#3|17:54:45.065 [Thread-1] INFO examples.Demo6 - Angle: 216, Distance: 146.65, Quality: 25
ev3dev#3|17:54:45.092 [Thread-1] INFO examples.Demo6 - Angle: 217, Distance: 148.475, Quality: 26
ev3dev#3|17:54:45.114 [Thread-1] INFO examples.Demo6 - Angle: 219, Distance: 152.3, Quality: 26
ev3dev#3|17:54:45.143 [Thread-1] INFO examples.Demo6 - Angle: 220, Distance: 155.6, Quality: 28
ev3dev#3|17:54:45.168 [Thread-1] INFO examples.Demo6 - Angle: 222, Distance: 158.325, Quality: 24
ev3dev#3|17:54:45.193 [Thread-1] INFO examples.Demo6 - Angle: 223, Distance: 161.9, Quality: 28
ev3dev#3|17:54:45.215 [Thread-1] INFO examples.Demo6 - Angle: 224, Distance: 166.175, Quality: 25
ev3dev#3|17:54:45.245 [Thread-1] INFO examples.Demo6 - Angle: 226, Distance: 170.65, Quality: 25
ev3dev#3|17:54:45.272 [Thread-1] INFO examples.Demo6 - Angle: 227, Distance: 193.9, Quality: 25
ev3dev#3|17:54:45.296 [Thread-1] INFO examples.Demo6 - Angle: 229, Distance: 199.875, Quality: 22
ev3dev#3|17:54:45.320 [Thread-1] INFO examples.Demo6 - Angle: 230, Distance: 205.3, Quality: 22
ev3dev#3|17:54:45.344 [Thread-1] INFO examples.Demo6 - Angle: 231, Distance: 212.425, Quality: 25
ev3dev#3|17:54:45.365 [Thread-1] INFO examples.Demo6 - Angle: 233, Distance: 219.775, Quality: 21
ev3dev#3|17:54:45.390 [Thread-1] INFO examples.Demo6 - Angle: 234, Distance: 226.6, Quality: 21
ev3dev#3|17:54:45.414 [Thread-1] INFO examples.Demo6 - Angle: 236, Distance: 165.5, Quality: 27
ev3dev#3|17:54:45.433 [Thread-1] INFO examples.Demo6 - Angle: 245, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.460 [Thread-1] INFO examples.Demo6 - Angle: 246, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.482 [Thread-1] INFO examples.Demo6 - Angle: 240, Distance: 251.125, Quality: 14
ev3dev#3|17:54:45.499 [Thread-1] INFO examples.Demo6 - Angle: 242, Distance: 275.675, Quality: 11
ev3dev#3|17:54:45.516 [Thread-1] INFO examples.Demo6 - Angle: 243, Distance: 291.1, Quality: 13
ev3dev#3|17:54:45.533 [Thread-1] INFO examples.Demo6 - Angle: 244, Distance: 305.35, Quality: 12
ev3dev#3|17:54:45.549 [Thread-1] INFO examples.Demo6 - Angle: 246, Distance: 324.7, Quality: 11
ev3dev#3|17:54:45.565 [Thread-1] INFO examples.Demo6 - Angle: 247, Distance: 344.6, Quality: 10
ev3dev#3|17:54:45.583 [Thread-1] INFO examples.Demo6 - Angle: 249, Distance: 367.175, Quality: 11
ev3dev#3|17:54:45.599 [Thread-1] INFO examples.Demo6 - Angle: 258, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.619 [Thread-1] INFO examples.Demo6 - Angle: 259, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.633 [Thread-1] INFO examples.Demo6 - Angle: 261, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.660 [Thread-1] INFO examples.Demo6 - Angle: 262, Distance: 0.0, Quality: 0
ev3dev#3|17:54:45.679 [Thread-1] INFO examples.Demo6 - Angle: 256, Distance: 446.075, Quality: 11
ev3dev#3|17:54:45.699 [Thread-1] INFO examples.Demo6 - Angle: 258, Distance: 212.425, Quality: 28
ev3dev#3|17:54:45.723 [Thread-1] INFO examples.Demo6 - Angle: 259, Distance: 211.725, Quality: 29
ev3dev#3|17:54:45.739 [Thread-1] INFO examples.Demo6 - Angle: 262, Distance: 67.725, Quality: 17
ev3dev#3|17:54:45.755 [Thread-1] INFO examples.Demo6 - Angle: 263, Distance: 66.05, Quality: 16
ev3dev#3|17:54:45.773 [Thread-1] INFO examples.Demo6 - Angle: 265, Distance: 65.55, Quality: 23
ev3dev#3|17:54:45.792 [Thread-1] INFO examples.Demo6 - Angle: 267, Distance: 65.825, Quality: 20
ev3dev#3|17:54:45.808 [Thread-1] INFO examples.Demo6 - Angle: 268, Distance: 65.2, Quality: 22
ev3dev#3|17:54:45.833 [Thread-1] INFO examples.Demo6 - Angle: 269, Distance: 67.05, Quality: 23
ev3dev#3|17:54:45.863 [Thread-1] INFO examples.Demo6 - Angle: 271, Distance: 68.5, Quality: 21
ev3dev#3|17:54:45.895 [Thread-1] INFO examples.Demo6 - Angle: 272, Distance: 68.325, Quality: 20
ev3dev#3|17:54:45.915 [Thread-1] INFO examples.Demo6 - Angle: 274, Distance: 68.525, Quality: 22
ev3dev#3|17:54:45.941 [Thread-1] INFO examples.Demo6 - Angle: 275, Distance: 69.225, Quality: 21
ev3dev#3|17:54:45.970 [Thread-1] INFO examples.Demo6 - Angle: 277, Distance: 69.475, Quality: 19
ev3dev#3|17:54:45.994 [Thread-1] INFO examples.Demo6 - Angle: 278, Distance: 69.825, Quality: 18
ev3dev#3|17:54:46.022 [Thread-1] INFO examples.Demo6 - Angle: 280, Distance: 71.275, Quality: 23
ev3dev#3|17:54:46.051 [Thread-1] INFO examples.Demo6 - Angle: 281, Distance: 71.5, Quality: 21
ev3dev#3|17:54:46.082 [Thread-1] INFO examples.Demo6 - Angle: 283, Distance: 71.775, Quality: 13
ev3dev#3|17:54:46.109 [Thread-1] INFO examples.Demo6 - Angle: 290, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.135 [Thread-1] INFO examples.Demo6 - Angle: 286, Distance: 73.4, Quality: 19
ev3dev#3|17:54:46.162 [Thread-1] INFO examples.Demo6 - Angle: 287, Distance: 74.025, Quality: 15
ev3dev#3|17:54:46.186 [Thread-1] INFO examples.Demo6 - Angle: 288, Distance: 74.6, Quality: 19
ev3dev#3|17:54:46.209 [Thread-1] INFO examples.Demo6 - Angle: 290, Distance: 75.275, Quality: 21
ev3dev#3|17:54:46.231 [Thread-1] INFO examples.Demo6 - Angle: 291, Distance: 77.525, Quality: 20
ev3dev#3|17:54:46.255 [Thread-1] INFO examples.Demo6 - Angle: 293, Distance: 78.1, Quality: 22
ev3dev#3|17:54:46.279 [Thread-1] INFO examples.Demo6 - Angle: 294, Distance: 79.325, Quality: 18
ev3dev#3|17:54:46.303 [Thread-1] INFO examples.Demo6 - Angle: 296, Distance: 80.65, Quality: 19
ev3dev#3|17:54:46.329 [Thread-1] INFO examples.Demo6 - Angle: 297, Distance: 82.35, Quality: 21
ev3dev#3|17:54:46.354 [Thread-1] INFO examples.Demo6 - Angle: 298, Distance: 85.05, Quality: 21
ev3dev#3|17:54:46.373 [Thread-1] INFO examples.Demo6 - Angle: 306, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.400 [Thread-1] INFO examples.Demo6 - Angle: 308, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.423 [Thread-1] INFO examples.Demo6 - Angle: 309, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.448 [Thread-1] INFO examples.Demo6 - Angle: 310, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.470 [Thread-1] INFO examples.Demo6 - Angle: 312, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.494 [Thread-1] INFO examples.Demo6 - Angle: 313, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.518 [Thread-1] INFO examples.Demo6 - Angle: 315, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.537 [Thread-1] INFO examples.Demo6 - Angle: 316, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.560 [Thread-1] INFO examples.Demo6 - Angle: 318, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.582 [Thread-1] INFO examples.Demo6 - Angle: 319, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.604 [Thread-1] INFO examples.Demo6 - Angle: 321, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.625 [Thread-1] INFO examples.Demo6 - Angle: 322, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.650 [Thread-1] INFO examples.Demo6 - Angle: 324, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.671 [Thread-1] INFO examples.Demo6 - Angle: 325, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.694 [Thread-1] INFO examples.Demo6 - Angle: 327, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.717 [Thread-1] INFO examples.Demo6 - Angle: 328, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.743 [Thread-1] INFO examples.Demo6 - Angle: 330, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.763 [Thread-1] INFO examples.Demo6 - Angle: 331, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.790 [Thread-1] INFO examples.Demo6 - Angle: 333, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.809 [Thread-1] INFO examples.Demo6 - Angle: 334, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.832 [Thread-1] INFO examples.Demo6 - Angle: 336, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.853 [Thread-1] INFO examples.Demo6 - Angle: 337, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.873 [Thread-1] INFO examples.Demo6 - Angle: 339, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.899 [Thread-1] INFO examples.Demo6 - Angle: 340, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.920 [Thread-1] INFO examples.Demo6 - Angle: 342, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.941 [Thread-1] INFO examples.Demo6 - Angle: 343, Distance: 0.0, Quality: 0
ev3dev#3|17:54:46.965 [Thread-1] INFO examples.Demo6 - Angle: 344, Distance: 19.675, Quality: 31
ev3dev#3|17:54:46.985 [Thread-1] INFO examples.Demo6 - Angle: 346, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.012 [Thread-1] INFO examples.Demo6 - Angle: 347, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.028 [Thread-1] INFO examples.Demo6 - Angle: 349, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.048 [Thread-1] INFO examples.Demo6 - Angle: 350, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.074 [Thread-1] INFO examples.Demo6 - Angle: 352, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.094 [Thread-1] INFO examples.Demo6 - Angle: 353, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.118 [Thread-1] INFO examples.Demo6 - Angle: 355, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.140 [Thread-1] INFO examples.Demo6 - Angle: 356, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.317 [Thread-1] INFO examples.Demo6 - Angle: 358, Distance: 0.0, Quality: 0
ev3dev#3|17:54:47.335 [Thread-1] INFO examples.Demo6 - Angle: 359, Distance: 0.0, Quality: 0

I would like to know if I have to normalize the value to a determined range of values or, it is possible to send the value from the sensor directly.

Juan Antonio

kintzhao commented 7 years ago

it is not meanful for real action.

jabrena commented 7 years ago

So, in current slamtec implementation the intensities are not populated, isn't it?

I checked that hokuyo driver didn't populate the intensities array too: https://github.com/rosjava/rosjava_extras/blob/kinetic/hokuyo/src/main/java/com/github/rosjava/rosjava_extras/hokuyo/LaserScanPublisher.java

Juan Antonio

kintzhao commented 7 years ago

it is not meanful for the intensities array at current version.