The text of a manual · part 7 of 12
Telegram Listing: Telegrams for Configuring and Operating the NAV200 Laser Positioning System, Firmware Version from V4.4.X: 4 Modes, pages 45 to 54
Pages 45 to 54 of 96, from Telegram Listing: Telegrams for Configuring and Operating the NAV200 Laser Positioning System, Firmware Version from V4.4.X
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Sick NAV 200
Page 45
Telegram Listing
Modes
Chapter 4
NAV200
4.4
"Positioning" mode (determining position")
The "positioning" mode is the standard mode of the NAV200. In this mode the NAV200 analyses the reflector position measurements and uses a comparison with the reflector positions in its reflector memory to determine its own position and direction in the layer. The NAV200 only transmits its position data upon request. The active layer can be selected during the positioning process. The first determination of a position after activating the positioning process by the PN or PA commands is carried out in the full map, which means that the NAV200 looks for its own position without any previous knowledge of its approximate position. The allocation of measured reflector positions to the reflector positions stored in the reflector memory which is essential for calculating a position is carried out by means of a CPUintensive process of matching the pattern of reflector allocation. Starting in the full map mode may take several seconds, depending on the number of reflectors in a layer. After starting the NAV200 operates in Quickmap with the help of previous measurements. Reflectors are allocated in this case by means of tracing the reflectors in a geometric capture range. In the case of accelerated movement one or more reflectors may be seen beyond the scope of this capture range and hence no longer contribute to determining position. Detecting fewer than 3 reflectors may result in a loss of contact to the layer (also termed loss of position).
4.4.1
Details on speed when requesting positions
The NAV200 extrapolates the data on position and direction at the point in time of the data output to the vehicle processor. In this case the NAV200 needs the velocity and the angular velocity to be entered externally by the vehicle processor. For a position request PP these speeds are determined by the NAV200 itself. The velocity vector and the angular velocity are passed on by the vehicle processor direct on receipt of the commands requesting position Pv and Pw (see also chapter 3.6 Co-ordinate systems, page 13). Command
Velocity input Path velocity
Angular velocity
PP
–
–
Pv (Vx, Vy)
Velocity vector in the local co-ordinate system of the NAV200
–
Pw (Vx, Vy, ω)
Velocity vector in the local co-ordinate system of the NAV200
Angular velocity
PV (VX, VY, ω)
Velocity vector in the absolute co-ordinate system
Angular velocity
Tab. 4-34: Overview: Commands with velocity vectors
8009595/TK80/2009-10-29
© SICK AG · Division Auto Ident · Germany · All rights reserved
45
Page 46
Chapter 4
Modes
Telegram Listing Laser Positioning System NAV200
4.4.2
Timing when requesting a position
Reflector position measurement The NAV200 calculates its position from a measurement on reflectors. The measurement data of each full rotation of the head (scan) are used for calculating a position. A scan takes 125 ms. When the AGV moves, measurement on the reflectors will be distorted due to this movement during a scanning process. A reflector position at the beginning of a scan is relative at a different position to that at the end of a scan. After a full rotaton the measurement data are transferred into the position calculation process (POS). Due to distortion during a scan, the calculation process will need information on velocity in order to adjust the reflector measurement. The scanning time and the time required for calculating a position will last approx. 135 ms. When movement is accelerated, the point in time of passing on the speed will affect the precision of the calculation of a position and reflector identification. Position determining speed and time 135 ms Scan
Rohdaten Fullmap
Quickmap
Position
Start POS “PA”
GET POS x,y,a,Q,N v x , v y ,w
Benutzer Eingaben
Positionsdaten Geschwindigkeit td
Fig. 4-1:
Zeit
POS DATA td td td = 60 ... 75 ms
Determining position timing
Principles for measuring position with movement •
Positions are determined with a full 360° scan.
•
Scanning and evaluation of the previous scan are parallel processes.
•
The movement of the NAV200 and the rotation of the scanner head are balanced by changing the shift and the speed of rotation.
•
The position data at the data interface are extrapolated to the point in time of transmission.
•
Speeds are either calculated by the NAV200 or they are delivered by the vehicle processor (taken from odometric system data).
The 360° scan, the calculation of the position from the previous scan and application input are parallel processes. The velocity vectors made available by the Pw, Pv or PV commands or calculated by automatic detection in the PP command are used for: a) Adjusting the reflector positions With the help of the velocity vectors, the reflector positions measured are counted back to the temporal middle of a scan. Equivalent to a snapshot in the middle of a scan. b) Identifiying the reflectors In a current determination of position the NAV200 will be in the Quickmap mode. In Quickmap the NAV200 is in expectation of the approximate reflector positions. The informa-
46
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29
Page 47
Modes
Telegram Listing
Chapter 4
NAV200 tion on velocity is used in the NAV200 for projecting the approximate position of the reflectors. Measurements on reflectors are then allocated to the respective corresponding reflectors (see also Section 3.6 and the following in the manual NAV200). c) Extrapolating the position data to the point in time of transmission The NAV200 extrapolates the calculated position data and the information on velocity to the point in time of transmission of the first byte. Regulation on position for accelerated movement The NAV200 calculates the position from a 360° scan and uses the current velocity vectors for this scan. If the velocity vectors and the actual speed of the AGV at the point in time of scanning are identical, distortion caused by the movement of the AGV will be at the lowest level. The best results can be achieved if a position enquiry with the latest information on speed is forwarded approximately 60 ... 75 ms after receipt of the first byte of the previous position data. The cycle time of the AGV vehicle processor must also be included in the calculation. The time delay for calculating the velocity information of the odemetric system signals must be included in the calculation. 4.4.3
Commands for selecting a layer in the positioning mode
The organisation of the course in layers (levels) means that the current layer must be indicated before the first position enquiry is delivered and for alternation between the layers. Command PL, with which only the layer number is indicated by means of parameter E and command PM, which also comprises a position and orientation default setting, are available here. In addition, it is necessary to ensure that the NAV200 is operating on the correct layer bank. The appropriate bank can be activated by layer selection with the BS command. A layer must always be selected prior to the first position enquiry after activating the positioning mode. The command PM can be used when the layer and the position are known and the NAV200 is newly switched to the positioning mode (e.g. at a battery charging station). The NAV200 will then operate in Quickmap. 4.4.4
Commands to select reflector measurements for determining position
The precision of determining position depends on the average distance of all the reflectors used for determining a position. In order to optimise the positioning results, for example at docking stations, commands PO and PC are available and can be used to exclude reflectors that are located further away. The parameters that can be set with the commands already have effective default settings ("include all reflector measurements"). Please note
8009595/TK80/2009-10-29
Parameterisations undertaken by the PO and PC commands will be lost when the positioning mode is exited.
© SICK AG · Division Auto Ident · Germany · All rights reserved
47
Page 48
Chapter 4
Modes
Telegram Listing Laser Positioning System NAV200
4.4.5
Recognising the reasons for losses of position
The reasons for losses of position can be seen in parameters G and N in the response of the NAV200 to a position request. 1.
G = 0: No contact to the layer. The NAV200 attempts to restore contact in Quickmap until the user releases command PA or PN (force full map). The position data during the Quickmap process are calculated with virtual driving on at the current speeds (blind route).
2.
G = –1 (FFh): No contact to the layer. The vritual determination of position has been outside of 3 m in X or Y since last determining position.
3.
G = –2 (FEh): The NAV200 has determinined the position, but the number of valid reflectors determined by operational radii is less than 3. For this reason all the valid reflectors viewed, even those outside the operational range, are used.
The additional parameter N in the response to the position request PP contains the number of reflectors used for determining position.
48
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29
Page 49
Telegram Listing
Modes
Chapter 4
NAV200
4.4.6
Command PA: Activate the NAV200 position determination
Command PA is used to activate determining position from the "standby" mode. On the other hand, when the positioning mode is activated, the PA command will initiate a restart in the full map mode (see chapter 4.4 "Positioning" mode (determining position"), page 45). Mode
P Determining position
Function
A Activate mode
Command PA to NAV200: STX
5
P
A
BCC
A
BCC
NAV200 response (acknowledgement): STX
5
P
The "positioning" mode (determining position) is active. Example of command input/NAV200 response: Name
8009595/TK80/2009-10-29
Start character Length
Command
Block check
Structure
STX
5
P
A
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
50h
41h
16h
© SICK AG · Division Auto Ident · Germany · All rights reserved
49
Page 50
Chapter 4
Modes
Telegram Listing Laser Positioning System NAV200
4.4.7
Command PN: Activate position determination of the NAV200 on entering the max. profile peak
Command PN is used to activate determining position from the "standby" mode. On the other hand, when the positioning mode is activated, the PN command will initiate a restart in the full map mode (see chapter 4.4 "Positioning" mode (determining position"), page 45). Mode
P Determining position
Function
N Activate a mode on entering the max. profile peak
Command PN to NAV200: STX
6
P
N
S
BCC
Block
Denotation
Range
Default setting
S
Number of measurements for a gliding medium
1 ... 63
4
A
BCC
Tab. 4-35: Command PN: Denotation of block S
NAV200 response (acknowledgement): STX
5
P
The "positioning" mode (determining position) is active. The formal response is identical to the response to command PA. Example of a command input: Activate the positioning mode with max. profile peak 1 Name
Start character
Length
Command
Structure
STX
6
P
Byte position
1
2
Hex
02h
06h
Value
Data
Block check
N
S
BCC
3
4
5
6
50h
4Eh
01h
1Bh
PN
1
Example of NAV200 response:
50
Name
Start character Length
Command
Structure
STX
5
P
A
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
50h
41h
16h
© SICK AG · Division Auto Ident · Germany · All rights reserved
Block check
8009595/TK80/2009-10-29
Page 51
Modes
Telegram Listing
Chapter 4
NAV200
4.4.8
Command PP: Position of the NAV200 displayed on the automatic internal determination of velocity by the NAV200
Mode
P Determining position
Function
P Display current position without external speed entry into the NAV200
Command PP to NAV200: STX
5
P
P
BCC
Request for output of the current position data of the NAV200. NAV200 response (acknowledgement): STX
17
P
P
X0
X1
X2
X3
Y0
Y1
Y2
Y3
A0
A1
G
N
BCC
Block
Denotation
Range
X0 to X3
X position of the NAV200 (4 bytes, LSB to MSB)
–8,380,000 ... 8,380,000 mm
Y0 to Y3
Y position of the NAV200 (4 bytes, LSB to MSB)
–8,380,000 ... 8,380,000 mm
A0, A1
Orientation of the NAV200 (LSB, MSB)
0000h ... FFFFh bdeg
G
Quality of position determination
0 ... 100, –1, –2
N
Number of reflectors used for determining position
0 ... 31
Tab. 4-36: Command PP: Structure of the NAV200 response
Example of a command input: Name
Start character Length
Command
Block check
Structure
STX
5
P
P
BCC
Byte position
1
2
3
4
5
Hex
02h
05h
50h
50h
07h
Example of NAV200 response: Name
Start ch.
Structure
STX
Length Command
Data
Block check
17
P
P
X0
X1
X2
X3
Y0
Y1
Y2
Y3
A0
A1
G
N
BCC
Byte position 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Hex
11h
50h
50h
0Ch 27h 00h 00h EDh D8h FFh
FFh
D7h 3Fh
56h
03h B0h
3FD7h bdeg
86
3
02h
Value
8009595/TK80/2009-10-29
PP
X = 9,996 mm
Y = -10,003 mm
© SICK AG · Division Auto Ident · Germany · All rights reserved
51
Page 52
Chapter 4
Modes
Telegram Listing Laser Positioning System NAV200
4.4.9
Command Pv: Display position of the NAV200 on external velocity entry in the local co-ordinate system of the NAV200
Mode
P Determining position
Function v
Display current position on external velocity input in the local co-ordinate system of the NAV200
Command Pv to NAV200: STX
9
P v
Vx0
Vx1
Vy0
Vy1
BCC
Block
Denotation
Range
Vx0, Vx1
X component of velocity in the local co-ordinate system of the NAV200 (LSB to MSB)
–4,000 ... 4,000 mm/s
Vy0, Vy1
Y component of velocity in the local co-ordinate system of the NAV200 (LSB to MSB)
–4,000 ... 4,000 mm/s
Tab. 4-37: Command Pv: Denotation of the individual blocks
Request to display the current position data of the NAV200 on the external input of the velocity of the NAV200 in the local co-ordinate system of the NAV200 by the vehicle processor. NAV200 response (acknowledgement): STX
17
P
P
X0
X1
X2
X3
Y0
Y1
Y2
Y3
A0
A1
G
N
Block
Denotation
X0 to X3
X position of the NAV200 (4 bytes, LSB to MSB) –8,380,000 ... 8,380,000 mm
Y0 to Y3
Y position of the NAV200 (4 bytes, LSB to MSB) –8,380,000 ... 8,380,000 mm
BCC
Range
A0, A1
Orientation of the NAV200 (LSB, MSB)
0000h ... FFFFh bdeg
G
Quality of position determination
0 ... 100, –1, –2
N
Number of reflectors used for determining position
0 ... 31
Tab. 4-38: Command Pv: Structure of the NAV200 response
The formal response is identical to the response to command PP. Example of a command input: Name
Start ch.
Length Command
Data
Structure
STX
9
P v
Vx0
Vx1
Vy0
Vy1
BCC
Byte position 1
2
3
4
5
6
7
8
9
Hex
09h
50h
76h
EAh
03h
01h
00h
C5h
Value
52
02h
Pv
Block check
Vx = 1,002 mm/s Vx = 1 mm/s
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009595/TK80/2009-10-29
Page 53
Modes
Telegram Listing
Chapter 4
NAV200
Example of NAV200 response: Name
Start ch.
Length Command
Data
Structure
STX
17
P
P
X0
X1
X2
X3
Y0
Y1
Y2
Y3
A0
A1
G
N
BCC
Byte position
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Hex
02h
11h
50h
50h
0Ch 27h 00h 00h EDh D8h FFh
FFh
D7h 3Fh 56h
03h B0h
3FD7h bdeg
3
Value
8009595/TK80/2009-10-29
PP
Block check
X = 9,996 mm
Y = -10,003 mm
© SICK AG · Division Auto Ident · Germany · All rights reserved
86
53
Page 54
Modes
Chapter 4
Telegram Listing Laser Positioning System NAV200
4.4.10
Command Pw: Display position of the NAV200 on the external input of velocity and angular velocity in the local co-ordinate system of the NAV200
Mode
P Determining position
Function w Display current position on the extermal input of velocity and Angular velocity in the local co-ordinate system of the NAV200
Command Pw to NAV200: STX
11
P w
Vx0
Vx1
Vy0
Vy1
VA0
VA1
BCC
Block
Denotation
Range
Vx0, Vx1
X component of velocity in the local co-ordinate system of the NAV200 (LSB to MSB)
–4,000 ... 4,000 mm/s
Vy0, Vy1
X component of velocity in the local co-ordinate system of the NAV200 (LSB to MSB)
–4,000 ... 4,000 mm/s
VA0, VA1
Angular velocity of the NAV200 (LSB to MSB)
0000h ... 4000h bdeg/s
Tab. 4-39: Command Pw: Denotation of the individual blocks
Request to display the current position data of the NAV200 on the external default setting of the velocity and the angular velocity of the NAV200 in the local co-ordinate system of the NAV200 by the vehicle processor. NAV200 response (acknowledgement): STX
17
P
P
X0
X1
X2
X3
Y0
Y1
Y2
Y3
A0
A1
G
N
BCC
Block
Denotation
Range
X0 to X3
X position of the NAV200 (4 bytes, LSB to MSB)
–8,380,000 ... 8,380,000 mm
Y0 to Y3
Y position of the NAV200 (4 bytes, LSB to MSB)
–8,380,000 ... 8,380,000 mm
A0, A1
Orientation of the NAV200 (LSB, MSB)
0000h ... FFFFh bdeg
G
Quality of position determination
0 ... 100, –1, –2
N
Number of reflectors used for determining position
0 ... 31
Tab. 4-40: Command Pw: Structure of the NAV200response
The formal response is identical to the response to command PP. Example of a command input: Name
Start character
Length Command
Data
Structure
STX
11
P w
Vx0
Vx1
Vy0
Vy1
VA0
VA1
BCC
Byte position
1
2
3
4
5
6
7
8
9
10
11
Hex
02h
OBh
50h
77h
EAh
03h
02h
00h
00h
00h
C5h
Value
54
Pw
Block check
Vx = 1,002 mm/s
Vx = 2 mm/s
© SICK AG · Division Auto Ident · Germany · All rights reserved
VA = 0h bdeg/s
8009595/TK80/2009-10-29