Header Name | Header Value |
---|---|
Content-Type | application/x-findsurface-response |
NOTE: To use optional header field(s) below, Content-Type
must be application/x-findsurface-response.
Header Name | Header Value |
---|---|
X-Content-Endian | big |
If X-Content-Endian
is presented, it lets the client know a byte order of a response body as Big-endian.
Otherwise, as Little-endian.
Response body only has Header part in most of the cases.
But if you specify an option flag for [Request Inlier & Outlier Flags] on request,
Array of Inlier & Outlier Flag will be attached after Header.
Body Header | |||
---|---|---|---|
01 | 02 | 03 | 04 |
Signature | Version | ||
Header Size | |||
Result Code |
If, FindSurface has been succeeded ( Result Code > 0 ), followings will be added.
Result Code > 0 | |||
---|---|---|---|
01 | 02 | 03 | 04 |
Data Length | |||
RMS |
Plane Parameter (Result Code == 1) | |||
---|---|---|---|
01 | 02 | 03 | 04 |
X of Lower-Left Position | |||
Y of Lower-Left Position | |||
Z of Lower-Left Position | |||
X of Lower-Right Position | |||
Y of Lower-Right Position | |||
Z of Lower-Right Position | |||
X of Upper-Right Position | |||
Y of Upper-Right Position | |||
Z of Upper-Right Position | |||
X of Upper-Left Position | |||
Y of Upper-Left Position | |||
Z of Upper-Left Position |
Sphere Parameter (Result Code == 2) | |||
---|---|---|---|
01 | 02 | 03 | 04 |
X of Center Position | |||
Y of Center Position | |||
Z of Center Position | |||
Radius |
Cylinder Parameter (Result Code == 3) | |||
---|---|---|---|
01 | 02 | 03 | 04 |
X of Bottom Position | |||
Y of Bottom Position | |||
Z of Bottom Position | |||
X of Top Position | |||
Y of Top Position | |||
Z of Top Position | |||
X of Radius |
Cone Parameter (Result Code == 4) | |||
---|---|---|---|
01 | 02 | 03 | 04 |
X of Bottom Position | |||
Y of Bottom Position | |||
Z of Bottom Position | |||
X of Top Position | |||
Y of Top Position | |||
Z of Top Position | |||
Bottom Radius | |||
Top Radius |
Torus Parameter (Result Code == 5) | |||
---|---|---|---|
01 | 02 | 03 | 04 |
X of Center Position | |||
Y of Center Position | |||
Z of Center Position | |||
X of Normal Vector | |||
Y of Normal Vector | |||
Z of Normal Vector | |||
Mean Radius | |||
Tube Radius |
If [Reqeust Inlier & Outlier Flags] flag is specified on reuqest header, followings will be added.
Array of In/Outliers flag | |||||
---|---|---|---|---|---|
01 | 02 | … | … | … | n** |
flag[0] | flag[1] | … | … | … | flag[n - 1] |
** n == Data Length
uint8_t[2]
[0] = 'F'; [1] = 'S'
uint8_t[2]
[0] = major, [1] = minor
uint32_t
int32_t
uint32_t
Byte size of body data right after this header.
Most of the cases this value is '0'. But if you specify an option flag for [Request Inlier & Outlier Flags],
this value indicates that size of the Array of Inlier & Outlier Flag.
This value is only available when Result Code > 0.
float (IEEE754 Single)
Resultant RMS fit error of the inliers.
This value is only available when Result Code > 0.
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
float (IEEE754 Single)
Note: This value is only available when you specify option flag of [Request Inlier & Outlier Flags] on request header.
uint8_t
This value that indicates either Inliers or Outliers. ( 0 <= n < Data Length )
0x00
- Inliersotherwise
- OutliersAn index order of this array is same as Array of Point Attributes on the requested body. The i th flag indicates whether the i th point in the requested body is an inlier or an outlier. The outliers may be used as the new Point Attributes array in the next requested body to be sent.
Case) When FindSurface has been failed.
Offset | Size | Hex value | Value | Description |
---|---|---|---|---|
Header Only | ||||
0x00 | 2 | 46 53 |
"FS" | Signature field |
0x02 | 2 | 01 00 |
1.0 | Version |
0x04 | 4 | 0C 00 00 00 |
12 bytes | Byte size of this header |
0x08 | 4 | 00 00 00 00 |
Not Found | Result Code |
Case) When FindSurface has been succeeded to find a Plane. The measurement unit is in meter.
Let's assume that the result of each coordinate of the corners of the plane is:
Offset | Size | Hex value | Value | Description |
---|---|---|---|---|
Header with Parameter | ||||
0x00 | 2 | 46 53 |
"FS" | Signature field |
0x02 | 2 | 01 00 |
1.0 | Version |
0x04 | 4 | 44 00 00 00 |
68 bytes | Byte size of this header (include parameter) |
0x08 | 4 | 01 00 00 00 |
Plane | Result Code |
0x0C | 4 | 00 00 00 00 |
0 bytes | No data after this Header |
0x10 | 4 | A6 9B C4 3A |
1.5 mm fit error | Resultant RMS fit error of the inliers. |
Plane Parameter | ||||
0x14 | 4 | CD CC CC BD |
-0.1 | The x coordinates of lower-left corner. |
0x18 | 4 | CD CC CC BD |
-0.1 | The y coordinates of lower-left corner. |
0x1C | 4 | CD CC CC 3D |
0.1 | The z coordinates of lower-left corner. |
0x20 | 4 | CD CC CC 3D |
0.1 | The x coordinates of lower-right corner. |
0x24 | 4 | 00 00 00 00 |
0.0 | The y coordinates of lower-right corner. |
0x28 | 4 | CD CC CC 3D |
0.1 | The z coordinates of lower-right corner. |
0x2C | 4 | CD CC CC 3D |
0.1 | The x coordinates of upper-right corner. |
0x30 | 4 | CD CC CC 3D |
0.1 | The y coordinates of upper-right corner. |
0x34 | 4 | CD CC CC BD |
-0.1 | The z coordinates of upper-right corner. |
0x38 | 4 | CD CC CC BD |
-0.1 | The x coordinates of upper-left corner. |
0x3C | 4 | 00 00 00 00 |
0.0 | The y coordinates of upper-left corner. |
0x40 | 4 | CD CC CC BD |
-0.1 | The z coordinates of upper-left corner. |