in a first embodiment of the present invention , manual adjustment of the spray head and a calibration fixture providing a visual aid to the robot operator will be described . a detailed view of the spray gun with manual adjustments is given in fig3 . views of aligning the gun nozzle are given in fig2 . fig1 shows the complete spray gun calibration stand 10 with a calibration fixture mounted on top . stand 10 is fastened to the floor with bolts 13 within the robot work area , but out of the way of the normal robot activity . to calibrate the robot spray stream , the robot mounted gun nozzle is brought to the compliant target disc 15 . this is done preferably prior to teaching the robot spray paths . however , it is possible to calibrate after teaching , if the gun is not readjusted . all guns adjustments should be at nominal to allow maximum readjustment range when realigning at later times . the gun nozzle is brought as close to disc 15 as practical , and centered visually using centerline markings 16 and the robot &# 39 ; s teach pendant ( controls ). disc 15 is made compliant to avoid excess stress on the gun nozzle if the nozzle is brought inadvertently into contact with the disc . the spray stream is activated and passes through a hole in disc 15 , through fixture 11 and into the purge bucket 12 . the stream is then observed by the robot operator through the alignment bars 14 and the robot position , and orientation , is altered until the stream is centered and parallel to the two orthogonal sets of alignment bar pairs . that position and orientation is then recorded by the robot as its calibrated location . the background shroud 17 makes it easier to sight the stream . fig2 illustrates the extension nozzle 20 and orifice 21 in proper alignment to bring stream 22 parallel to the two orthogonal sets of alignment for pairs 14 . the stream 22 is also centered in orthogonal directions by centerline markings 16 . at any future time the robot may be brought back to its taught calibration position and checked for alignment . the stream may go out of alignment due to orifice wear , bending of the nozzle or as a result of replacing the gun or nozzle . since it may be undesirable to alter the taught path , adjustments may be provided on the gunmount as shown in fig3 . if the stream is seen to be out of alignment , then the adjustments 32 ( roll ) 33 ( in / out ) 34 ( side / side ) 35 ( pitch ) are used to reposition orifice 21 and nozzle 20 to realign stream 22 without changing the robot &# 39 ; s position . since the stream is realigned without any alteration to the robot path , the spray will be consistent with original performance within the robot &# 39 ; s repeatability capability . to provide this ability to leave the robot path unmodified and adapt to stream variations , spray gun 30 is mounted to the robot arm via gun holder assembly 31 that attaches to the arm via side / side adjustment 34 which provides offsetting stream 22 in directions 38 . holder 31 can slide in direction 37 via adjustment 33 to offset stream 22 in direction 37 . holder 31 can also pivot in direction 39 via adjustment 35 to modify the stream 22 orientation in direction 39 . lastly , gun 30 can roll in direction 36 via adjustment 32 which , due to a bend in nozzle 20 , provides a second angular adjustment . ideally , 6 adjustments are required . these are three linear translations that are mutually orthogonal with rotations around each . however , it is often possible to obtain satisfactory performance with fewer adjustments such as the combination shown in fig3 . if it is not possible to exactly align stream 22 to be centered and parallel to the alignment bars 14 , then the stream should be made to match the condition as closely as possible and still pass through the central location at a distance form from orifice 21 , as will be encountered when spraying the workpiece . in a second embodiment of the invention the concepts of the first embodiment are automated . machine vision replaces human vision and as a result of its mensuration capability no calibration fixture is required . fig4 illustrates the system with a machine vision sensor 40 capable of making precise three - dimensional measurements within its field of view 42 . typically , sensor 40 will employ optical triangulation . two 2 - dimensional vision systems mounted to view the stream 22 in orthogonal directions can be equally as effective . if the sensor 40 provides only a single cross sectional measurement of stream 22 , then it is transported in directions 41 to make measurements at several cross sections 43 , to fully describe the position and orientation of stream 22 . the raw image data 44 coming out of sensor 40 , offset to show scan 41 , can be displayed on a monitor 45 to assist in initial setup . the data 44 are processed by visual link 46 to determine needed position and orientation corrections of stream 22 , which are required to center the stream or realign it to a calibrated location . to initially calibrate the system , it is again preferable to set all adjustments to the center of their ranges and then teach the spray paths with that setting to reserve maximum adjustability . for the mount shown , only two motorized adjustments are used . it is possible to obtain sufficient correction with just two angular corrections by designing the mount to place the orifice on axis 419 of gun 30 at the intersection of axes 417 and 420 . in this manner , a change in orientation made to correct the angle of stream 22 will not cause an offset error . thus , no offset adjustments are required . gun 30 is held by pitch assembly 416 that pivots in directions 39 about axis 420 ( perpendicular to the plane of the drawing ) as a result of rotating eccentric cam and slot adjustment 35 driven by motor 411 . assembly 416 pivots on yaw assembly 414 which rotates assembly 416 in directions 418 about axis 417 of mount 413 . motor 410 drives eccentric cam and slot adjustment 412 to rotate assembly 414 . a plane 415 represents the surface to be sprayed . the location of plane 415 is known via measurements relative to sensor 40 and forms a part of the calibration station . the calibration location of the robot is chosen to place the orifice of gun 30 a distance along gun axis 419 from plane 415 , equal to the nominal distance from gun 30 orifice along axis 419 to the surface being sprayed . since the machine vision can accurately measure the stream 22 location and orientation , the stream does not have to be accurately positioned or oriented when calibrating . whatever location is calibrated is recorded by the system and realignment merely tries to bring the stream 22 back to that recorded location . of course , it is possible to bring the stream to a predetermined location for calibration . the visual link processing 46 begins by examining the raw data 44 which is given in the 2 - dimensional coordinates of the camera of sensor 40 . a typical output of sensor 40 will contain data across the width of stream 22 for each measurement 43 along scan 41 . the line extractor of processor 46 will detect the start and end of the stream 22 measurement data for each measurement 43 along scan 41 . a filter then removes points that do not correlate along the length of the scan 41 . all start edge points should fall along a line . those points that correlate closely with a line are retained , and the remainder rejected . the same filtering is applied to the end edge points . the points are then converted from the 2 - dimensional coordinate space to 3 - dimensional coordinate space , using the normal conversion process of the sensor system . the start edge and end edge points are then each least squares fit to lines in 3 - d space . since the lines will not necessarily be coplanar , the points are also least squares fit to a plane and the lines projected upon the plane , to give two coplanar lines representative of the stream 22 extremities . being coplanar , mid points between the lines will form a line in the plane that is very representative of the stream 22 core . the equation of this core line is then stored for reference in memory 420 . an intersection of the core line and the reference plane 415 can also be stored . this completes the calibration . for realignment , the robot is returned to its calibrated location , and the stream is measured and processed as during calibration . however , the result is sent to calibration controller 47 rather than memory 420 , and controller 47 receives the stored reference from memory 420 for comparison . controller 47 is programmed to determine the angular change of the stream 22 core line in the two directions of adjustment 39 and 418 . correction signals are then generated and sent to the motor driver 49 , via buffer amplifier 48 , to drive motors 411 and 410 and null out the angular changes . sensor 40 can then verify the system performance by measurement and a second correction can be made if needed . when fewer than six degrees of corrective adjustment are provided , it may be necessary to trade off residual errors for best performance . if the orifice has been translated a small amount , then making the angle measured equal to the calibrated angles will result in the core line being parallel to the calibrated core line -- except translated . compromise corrective angles could be used that reduce the translation errors at plane 415 , and maintain the parallelism with the calibrated core line as much as possible . in a third embodiment of the invention , the spray gun 30 is simply mounted fixed to the robot arm , thereby eliminating pivoting mounts , motors and drivers . the stream 22 is calibrated in the same manner as in the second embodiment , and the equation of the core line is stored in memory 420 . when a realignment measurement is made and the equation of the core line determined , calibration controller 47 determines the change in intersection with plane 415 , and either provides translation corrections for the operator to manually enter as workpiece offsets or automatically transmits the corrections to the robot . the robot must have the capability of translating its taught paths accordingly . if the robot can accept corrections to the tool point position and orientation relative to its tool plate , then both translation and angular errors can be corrected . the calibrated core line intersection with plane 415 provides the calibration reference tool point and orientation . the realignment measured core line intersection with plane 415 provides a new tool point and orientation from which the robot can compute the corrected spray paths to compensate for the change . in both automated systems the coordinate system of the sensor 40 must be in known relationship to the coordinate system for correction -- the pivoted assemblies for the second embodiment and the robot for the third embodiment . standard procedures for alignment of the coordinate axes may be followed , or mathematical corrections may be used to relate the two coordinate systems where misaligned . the measurement sensor 40 can be used to make the necessary alignment measurements . the invention has been described and illustrated with reference to an exemplary embodiment . it is not to be considered limited thereto , inasmuch as all modifications and variations which might offer themselves are intended to be encompassed within the scope of the appended claims .