Manuscript Offprint
arXiv:2611.09679Autonomous Particle Image Velocimetry Using Zero-Shot Sim-to-Real Reinforcement Learning
Chang Rajani¹, Luke Sebastien Marsden¹,², Stephan Kunz¹, Claudio Mucignat¹, Ivan Lunati¹,²
Abstract—Particle image velocimetry (PIV) reconstructs a flow field from the motion of tracer particles but the reconstruction quality is bounded by how well the flow structure of interest is resolved in the images. The acquisition position is typically fixed by the operator before the measurement. We cast camera placement as a sequential decision-making problem and train a reinforcement learning agent to control a 6-DoF manipulator equipped with a camera, enabling it to locate, frame and resolve a hydrofoil wake in a water tunnel. The agent commands the camera pose and observes the scene only through the velocity field and uncertainty estimated from time-separated image pairs. It is trained entirely in a photorealistic simulation of our water tunnel, with wakes generated by Computational Fluid Dynamics (CFD) simulations of hydrofoils with varying profiles, positions and angles of attack. After zero-shot transfer to the real water tunnel, the policy reliably locates and frames the wakes of randomly placed hydrofoils. It resolves the wake at a higher resolution than a fixed camera view and with lower error in the measured flow statistics, in roughly half the time of a full scan and with far fewer image pairs.
I. INTRODUCTION
Particle image velocimetry (PIV) is an optical technique for measuring fluid velocity fields by tracking the displacement of tracer particles between successive images of a flow illuminated by a light sheet [1]. The quality of the resulting velocity estimates depends critically on the imaging conditions. Parameters such as magnification, camera distance, separation time, and depth of field determine the spatial resolution of the measurement and the particle displacement between exposures. Established PIV guidelines provide recommendations for selecting these parameters [1], [2], but tuning them to a particular flow typically requires several iterations and the judgement of an expert operator.
In conventional practice, those parameters are selected based on prior knowledge or expectation of the velocity magnitude and the location of relevant flow features. This makes the measurement vulnerable to deviations from these expectations. When features of interest are compact, move across the field of view, or occur in unexpected locations, the quality of the recordings may be insufficient to allow accurate velocity reconstruction. No subsequent improvement in the PIV algorithm can recover information that was not adequately captured, resulting in suboptimal velocity estimates and inefficient use of measurement resources.
Robot-mounted PIV systems address this limitation by traversing a probe along a pre-planned path at close range and stitching the resulting image tiles together afterwards [3], [4]. This approach provides detailed coverage of the entire measurement plane, but requires lengthy scans and devotes measurement time to regions that may not contain features of interest. In both conventional and robot-mounted PIV systems, camera placement is determined before measurement and is not adapted based on the acquired data. As a result, the camera may cover too little or too much of the region of interest.
In this work, we propose treating where the camera looks as a controlled, closed-loop variable, in the spirit of active sensing [5]. We mount the camera on a 6-DoF manipulator observing a water tunnel and train a learned policy to reposition it so that an a priori unknown flow structure is brought into a favourable imaging configuration: within the field of view and at a distance that allows it to be fully captured and sufficiently resolved. An appropriate representation of flow regions with low energy has long been of particular interest in applications such as wind energy [6] and air quality [7]. In this work, we focus on hydrofoil wakes, which are known to exhibit large variations in shape and size with changes in angle of attack and flow speed [8].
Casting camera placement as a sequential decision-making problem poses three challenges. First, the true flow field is not available to the agent, which can estimate the velocity only from its own camera images. These estimates are unreliable when the camera is badly positioned. Our agent therefore uses the flow estimate and uncertainty provided by LIMA, a CNN-based PIV estimator that is fast enough to run within the control loop [9], [10], to guide camera positioning decisions. Second, reinforcement learning requires millions of interactions, which would take weeks to collect on physical hardware. We train a DreamerV3 agent [11] entirely in a simulation of our laboratory setup built in NVIDIA Isaac Sim with Isaac Lab [12]. The simulation includes the test section, light sheet, tracer particles and camera optics of the real setup, together with flow fields from CFD simulations. We then deploy the policy on the physical manipulator without fine-tuning or training on real-world data. Third, camera viewpoint selection and robot joint motion are defined in different spaces. The agent commands a Cartesian camera position, and a calibration of the manipulator against a marker board in the test section maps each command to joint angles (Fig. 1).
Our contributions are threefold: (i) a system that formulates active PIV camera placement as a reinforcement
¹Computational Engineering Lab, Empa, Swiss Federal Laboratories for Materials Science and Technology, Switzerland. ²ETH Zurich, Switzerland. This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible. Supplementary Video: https://youtu.be/RlfhBA8eIFc

Fig. 1. System overview. (a) The water tunnel (blue, with a plexiglass test section in the middle) is seeded with tracer particles, and an LED line light illuminates a thin planar sheet of the flow. A test hydrofoil is placed at an arbitrary position and angle of attack and sheds a wake. A camera on the wrist of an igus ReBeL 6-DoF arm images the sheet. (b) At each decision step the camera records four image pairs at times and . After background subtraction, LIMA estimates the velocity, from which we compute the streamwise velocity deficit, and its uncertainty. The policy takes these three fields as input and outputs a new camera position, which is converted to joint angles and sent to the arm.
learning problem over Cartesian camera-position commands, in which the policy must locate, frame, and resolve an initially unknown wake; (ii) a high-fidelity Isaac Sim model of our laboratory PIV setup, incorporating CFD flow fields for different NACA hydrofoils to simulate tracer-particle motion; and (iii) zero-shot deployment on physical hardware, demonstrated through extensive experiments showing that the policy consistently converges to camera positions that outperform a conventional fixed view and achieve flow-estimation quality comparable to brute-force image stitching at a substantially lower measurement time.
Optimal PIV data acquisition and processing in practice. In conventional PIV, the imaging parameters are fixed before the experiment following established design rules [1], [2], and the measurement uncertainty is quantified afterwards
from the recorded images [14] without feeding back into the viewpoint selection process. Robot-mounted systems follow the same pattern: robotic volumetric PIV traverses a probe around a full-scale object and stitches the recorded sub-volumes in post-processing [3], while industrial RoboPIV installations distribute illumination and cameras over several robots to cover a large domain [4]. In both cases, the trajectory is planned in advance and the acquired data does not influence camera positioning. Methods that improve accuracy from the captured images, such as iterative image deformation [15], act on the evaluation rather than the recording phase and cannot improve data acquisition itself.
Learned flow estimation and virtual camera agents. We use LIMA, a lightweight matching network that enables real-time inference during measurements [9], [10] and provides an uncertainty estimate for the instantaneous displacement fields, as the core PIV algorithm in our work. Among existing approaches, the pykitPIV framework is the most related to our work. It provides configurable virtual PIV experiments and allows an agent to be trained to move a virtual camera across a synthetic image to locate sources and sinks [16]. In contrast to pykitPIV, our framework models the camera and lens and allows camera movements in three dimensions. The distance between the sensor and the measurement plane determines the magnification and the resolvable displacement. Each commanded viewpoint must be reached by a robotic arm subject to physical constraints such as joint limits. Our simulation also provides photorealistic rendering, including physically realistic glare, shadows, occlusions, and reflections. Finally, we transfer the trained policy directly to real hardware.
Active perception and viewpoint control. Selecting one's own observations is the goal of active perception [5] and next-best-view planning [17]. In these approaches, candidate views are scored by expected information gain over an explicit scene model [18] or through a learned policy [19]. These methods aim to cover a static scene, using a persistent geometric model to evaluate candidate views. Our objective also involves coverage, but focuses on a single flow structure rather than the scene as a whole. The structure is not directly visible in the images, but it is identified through the velocity estimated from image pairs. The agent must locate the structure and frame it entirely at the best possible magnification. Our setting is also related to eye-in-hand visual servoing [20], in which camera motion is controlled from image features in closed loop. However, our task has no predefined target image or image feature to track, and the structure of interest must first be identified. Reinforcement learning in experimental fluid mechanics has generally been used in flow control [21] or navigation problems [22] rather than to improve observations of the flow.
Sim-to-real transfer. Domain randomisation is the standard approach to improving policy robustness to differences between rendered and real images [23]. An alternative is to provide the policy with an intermediate representation that is largely invariant to appearance. This approach has been used to transfer driving policies from simulation to the real world [24]. Optical flow is one such representation, and it has been used for visual servoing on real robots because of this robustness [25]. We combine the two approaches. The policy receives the output of the flow estimator as its observation, reducing the appearance differences between simulation and reality, while retaining errors introduced by the estimator itself. Where the light sheet is shadowed or unlit, the estimator may report spurious flow, and the policy must learn to ignore these regions (Sec. IV-D).
III. PROBLEM FORMULATION
We mount a camera on a 6-DoF robotic arm in front of a water tunnel seeded with tracer particles. A vertical LED light sheet illuminates a thin streamwise slice of the test section, which defines the measurement plane, and a hydrofoil generates a wake in a uniform free stream (see Fig. 1). The position and extent of the wake depend on the hydrofoil geometry, position and angle of attack (AoA), and on the free-stream speed, none of which is known to the agent. The agent must search for the wake by acquiring a sequence of velocimetry measurements, and then maintain a viewpoint from which the flow estimator can resolve the wake accurately. The hydrofoil may also be exchanged for another one at a different position, so the agent must detect that the tracked wake has moved or disappeared and search again.
We formulate the problem as a partially observable Markov decision process (POMDP) [26] with a horizon of T decision steps (we use T = 15 or T = 45 depending on the training phase, see Fig. 4). The hydrofoil parameters, tracer positions, and arm configuration are unknown to the agent, which only observes the flow estimate that LIMA infers from
(a) Side view: camera workspace and light sheet

(b) Face-on view: hydrofoil placements of the training set
NACA 0012 NACA 0024 NACA 6412

Fig. 2. Task geometry and training set. (a) Side view. The agent commands the camera optical centre inside the camera workspace (dashed), with the optical axis held normal to the light sheet. (b) Face-on view of a subset of the hydrofoil placements of the training set, coloured by NACA section. The angle of attack, chord and section vary per placement, and training uses two free-stream speeds. Placements lie inside the dashed region, which keeps 20 mm from the inlet, the floor and the lid, and 75 mm from the downstream end so that the wake stays in the test section.
the recorded frames [10]. We operate in the standard online RL setting [27] and maximise the expected discounted return , with . The horizon imposes a time limit but does not define a terminal state.
Throughout this work, we use for the streamwise coordinate, for the vertical coordinate, and for the distance of the camera from the sheet. The action specifies the bounded absolute position of the camera optical centre within a Cartesian camera workspace of , with its longest axis normal to the sheet. One action component sets the camera distance, , while the other two translate the imaged window across the sheet. In 2D PIV, the optical axis must remain normal to the imaging plane, so the agent cannot pitch, yaw, or roll the sensor. The arm is moved to the commanded position by inverse kinematics in simulation and by a calibrated lookup table on hardware (Sec. IV). If the arm cannot realise the command, the agent receives a reward of .
The reward is computed from the time-averaged velocity field of the CFD case, where denotes a point on the measurement plane. Let U denote the free-stream speed of the episode. The streamwise velocity deficit is defined as
which is near zero in the free stream and one where the flow is stationary. The wake region S is defined as the part of the sheet connected to the hydrofoil where the deficit exceeds a threshold that increases with the distance from the hydrofoil surface,
with and mm. The low threshold near the hydrofoil surface ensures that thin wakes at small angles of attack are included in the region, while the increasing threshold excludes regions where the wake has decayed. Slow-flow regions that are not connected to the hydrofoil, such as the boundary layers along the test-section walls, are excluded from S.
At step , the camera faces the sheet at distance . With an image resolution of pixels and focal length , it captures a window of the sheet with area . A point in is considered in view if it projects onto the image and is not occluded by the hydrofoil. We define capture as the fraction of the wake that is in view and fill as the fraction of the frame occupied by the wake,
Fill decreases as , so the closest pose that captures the entire wake achieves the highest fill. This is the required pose for a given case (as the orientation of the camera is fixed, poses are fully defined by Cartesian coordinates). The required pose is centred on the bounding box of and is located at the smallest distance at which the window spans the entire box,
where and are the dimensions of the bounding box, and m is the near wall of the camera workspace. If the bounding-box centre lies outside the camera workspace, the required pose is placed at the nearest reachable position, and is increased until the wake fits within the image window. We denote the capture and fill of the required pose by and , respectively. The capture is slightly below one because the hydrofoil occludes part of the wake near its surface.
The per-step reward is defined as
with . Both factors attain their maximum value of one at the required pose, so the reward is one regardless of the wake size. The same pose serves as the reference for evaluating the policy in Sec. V. In our experiments without the normalisation by , the agent preferred small wakes because they gave a higher fill for the same quality of framing. Without clipping at one, the agent moved closer than the required pose and cropped the wake to increase the fill.
Between the far and the near wall of the camera workspace, the magnification on the sheet changes by a factor of 2.4, so a wake that fills the frame is sampled at more than twice the spatial resolution of one that occupies only a corner. An ideal agent must therefore search for the wake (make nonzero), frame it (increase towards ), and resolve it (move closer to ). Since varies from case to case, the agent must position the camera closer to the test section for small wakes and further away for large ones, rather than memorising a single suitable position.
As the wake fluctuates in time, PIV systems commonly average over several shedding cycles to obtain a mean flow field. Therefore, to save simulation time, we advect the tracer particles using the time-averaged velocity field from CFD. At step , once the arm has settled, the camera records four frame pairs. The two frames in each pair are taken with an inter-frame time ms. LIMA estimates a displacement field and its uncertainty from each pair; both are averaged over the four pairs. The calibrated camera model converts the averaged displacement and uncertainty into a velocity estimate and uncertainty , respectively. Using the known free-stream speed, we obtain the estimated deficit from Eq. (1). The observation is . The uncertainty is high in regions where tracers are not illuminated, allowing the agent to distinguish the wake from poorly lit regions (Sec. IV-D). We use four pairs as a compromise between rendering time and the quality of the flow estimate required to locate and frame the wake. The reward is a privileged signal available only in simulation; the deployed policy relies solely on , enabling zero-shot transfer (see Sec. VI).
IV. SYSTEM AND METHOD
A. Camera calibration
The policy commands a view, defined by the point of the light sheet at the image centre and the distance z, and the arm must position the camera accordingly. On hardware, a rigid camera-mount calibration combined with the arm kinematics produced pose-dependent view errors. We therefore calibrate the view directly. A large ArUco board is held in the water in the plane of the light sheet, and the arm visits a set of poses distributed over the camera workspace, all in the same wrist configuration. In each image the detected markers provide a homography between the image and the board, from which we extract the position of the image centre on the sheet, the pixel size on the sheet, and the image roll. These quantities are stored together with the joint angles reported by the arm. Since the board is imaged through the glass and the water, refraction is included in the measurement and requires no explicit model. To reach a commanded view, we interpolate the table to obtain the joint angles and execute a single joint move. For views not contained in the table, the image centre lands within about 2 mm of the commanded point. Commands outside the calibrated region are refused, and the arm does not move. During training, we displace the camera
For clarity, we drop the hat notation in the experiments since all quantities there are estimated.
by a random error of a few millimetres in every episode, so that the policy does not rely on exact command execution.
B. World-model agent
The policy is trained using DreamerV3 [11] without modifications. DreamerV3 fits a recurrent latent world model to the observations, while the actor and critic are optimised using imagined rollouts. Model-based RL is well suited to this setting because each environment step requires computationally expensive path-traced rendering in Isaac Sim, making sample efficiency particularly important.
C. Simulation and rendering

Fig. 3. Simulated (top row) and real observations (bottom row). A simulated and a real hydrofoil of similar profile at a similar angle of attack, shown for illustration. The two rows show different fields of view. Left: one camera image after preprocessing. Middle: flow speed relative to the free stream, averaged over 100 image pairs. Right: LIMA uncertainty relative to the free-stream speed. In both rows the wake is a slow band behind the trailing edge. Below the hydrofoil, the estimator returns a spurious flow in the shadow.
We build the training environment in NVIDIA Isaac Sim to reproduce the laboratory setup. The simulated arm, imported from its URDF, has exact kinematics and therefore does not need a calibration table. We place it at the inverse-kinematics solution of each commanded view, and the residual error of the real calibration is modelled by the random camera offset described in Sec. IV-A. The motion between viewpoints is not simulated because it carries no information for the task. The tunnel has the real inner dimensions and is filled to the brim (see Fig. 1). The camera is modelled as a pinhole with the calibrated intrinsics of the real sensor and lens, mounted at a calibrated offset from the flange. Its output is convolved with a diffraction-limited point spread function (PSF). The PSF width is scaled and tracers are rendered larger than their real size, so that the rendered particle images roughly resemble those captured on hardware. We omit depth of field because the motorised lens is refocused on the sheet at every camera distance, keeping the sheet in focus.
The flow in each episode is a precomputed two-dimensional lattice-Boltzmann solution for the hydrofoil in a domain that approximates the test section of the tunnel. It is computed with XLB [28] on a D2Q9 lattice with the entropic KBC collision model [29], at a grid spacing of 0.4 mm, and averaged over 24 s of shedding. We train on 719 cases from 372 hydrofoil configurations at two free-stream speeds. The configurations span three NACA sections (0012, 0024 and 6412), angles of attack of up to in either direction, chord lengths of 30 to 70 mm, and different positions in the test section (see Fig. 2). Each episode draws one case and randomly mirrors it left to right or top to bottom. These transformations are exact because the test section is symmetric and the two-dimensional flow is unaffected by gravity.
Each environment is seeded with tracers in the light-sheet plane, which are advected through the time-averaged CFD field over the 10 ms inter-frame interval of the real camera. We render the scene before and after the advection. Figure 3 compares the images supplied to LIMA and the resulting velocity fields and uncertainties for the real water tunnel and the simulation of a similar hydrofoil condition. The tracers are the only bright objects and are illuminated from above by an LED line light that forms the sheet. Illumination is computed by the Isaac Sim path tracer, which naturally reproduces effects such as shadows cast by the hydrofoil through the particle field and occlusion of the sheet from oblique viewpoints. The hydrofoil can be replaced by the CAD model of any other object without making any change to the rendering code.
LIMA tends to report higher uncertainty in a real turbulent wake than in the free stream, due to increased particle loss from the flow being more three-dimensional. To reproduce this effect in simulation with the smooth mean CFD field, we add a small, random, out-of-plane velocity vector to each tracer, with a magnitude that increases with the local velocity deficit. We randomise the seeding density, tracer-size distribution, and sensor noise in every episode to cover conditions that are difficult to measure directly.
D. Spurious deficits
The estimated deficit is high wherever the flow is slow, but also where the flow estimator has no lit tracers to track. This occurs in the hydrofoil shadow, in the upper corners of the test section beyond the reach of the LED line light, and near the walls. In the shadow, for example, the estimator returns a streamwise velocity well below the free-stream speed, together with a spurious downward velocity, while its uncertainty is much higher than that of the free stream (Fig. 3). Such regions can be larger than the wake itself.
We initially tested a scripted approach in simulation: two wide views survey the test section, Eq. (2) is applied to the estimated deficit, and the camera moves to the required pose defined by Eq. (4). Even with manually generated masks based on the tunnel and light geometry, this approach often framed the shadow instead of the wake. We therefore render the light, shadow, and tracers physically, reproducing the same spurious deficits during training, and provide the policy with the LIMA uncertainty estimate [10]. Policies trained without uncertainty often framed the hydrofoil shadow or the unit corners, particularly on hardware. With uncertainty, the policy learns to distinguish the wake from poorly lit regions without requiring manually generated masks.
(a)

(b)
Fig. 4. Training in simulation. The policy is trained for 2.0 M environment steps on 15-step episodes with a fixed hydrofoil, then for 3.0 M steps on 45-step episodes, half of which contain a hydrofoil change. The dotted line marks the switch. (a) Median error between the settled and the required camera pose in x, y and z. (b) Reward per decision step. The dashed line is the best single fixed camera pose.
(a) Search

(b) Re-search

(c)

Fig. 5. Search and re-search in one evaluation episode. The policy finds a wake within three steps, holds it, and after the hydrofoil is exchanged at step 16 it finds the new, larger wake within two steps and moves back to fit it. (a, b) Face-on view of the test section before and after the exchange, with the time-averaged deficit (grey), the wake region S (orange), the path of the view centre numbered by decision step, and the settled view (blue rectangle). (c) Capture (Eq. (3)) per decision step. The policy settles at 373 and 425 mm, against required distances of 350 and 415 mm.
V. SIMULATION RESULTS
We train the policy in two phases (Fig. 4). In the first, episodes are 15 steps long and the hydrofoil remains fixed, allowing the policy to learn to find and hold a wake. In the second, the episodes are 45 steps long, and the hydrofoil is exchanged for another one midway through half of the episodes. The policy must therefore detect when the wake disappears and locate the new one. At the end of training, the median error between the settled and the required view is below 10 mm in x and y and about 20 mm in z. The distance is the hardest to estimate because the extent of a thin wake is difficult to infer from tracer particles. The per-step reward is more than twice that of the best fixed camera position and remains at the same level when hydrofoil changes are introduced.
Figure 5 shows a representative evaluation episode. The wake is initially out of sight. The policy finds it within three steps and maintains the view. When the hydrofoil is exchanged at step 16, the wake disappears from view. The policy searches again and settles on the new, larger wake,

Fig. 6. Framing sharpens the measured wake. From the required pose LIMA resolves the downstream part of the wake and the thin layer along the upper surface of the hydrofoil, neither of which are captured well at the far pose. Top: true deficit of one simulated wake, with the wake region S (purple). Middle and bottom: the deficit LIMA measures from 520 mm and from the required pose at 250 mm, at the same view centre, each averaged over 100 frame pairs. The hydrofoil is black, and its shadow (grey) is left out of the comparison.
which requires a greater camera distance. Across evaluation episodes, the policy captures the wake within a median of four steps from a random initial view and three steps after a hydrofoil change. Following a change, it frames the new wake as accurately as it does from a fresh start.
Figure 6 illustrates the benefit of reaching the required pose. We measure the same simulated wake from 520 mm and from the required pose, with the camera centred on the same point. From the farther pose, LIMA resolves the wake directly behind the trailing edge, but not its weaker downstream part or the thin boundary layer and separation region along the hydrofoil upper surface. These features are much better resolved from the required pose. The improvement results from spatial sampling: at the required pose, each millimetre of the wake spans about twice as many pixels, allowing LIMA to better resolve gradients at the wake boundary. Across the simulated wakes tested, LIMA identifies, on average, 54% of the true wake region from the far pose, compared with 72% from the required pose. The required pose performs better for nearly every wake, and the peak deficit is also closer to the true value.
VI. SIM-TO-REAL TRANSFER
We transfer our policy zero-shot to hardware and assess whether it can locate the wake, adjust its framing when the wake changes, and improve flow-measurement accuracy in the real water tunnel. We evaluate it on two different 3D-printed hydrofoil profiles: a NACA 0015 and a NASA SC(2)-0714, neither included in training. The foils are mounted magnetically to the back wall of the water tunnel and extend to the front glass. Each hydrofoil is tested at six location-AoA combinations, labelled SC2-1 to SC2-6 and N15-1 to N15-6 in the order tested. For each setting, we run two 15-step episodes from different random camera starting positions. Then, a third episode continues after step 15: we
(a) Wake region Masked / no tile Fixed wide view Policy final views Fitted foil outline x-stations (i)–(iii): TE+10/25/50mm

(b)
Fig. 7. Real policy deployments and flow statistics in the wake. (a) Velocity deficit from the scan mosaic for each hydrofoil setting, with the area imaged by the fixed wide view (red) and by the settled policy views (blue). The policy frames the whole wake in 41 of 42 views, whereas the fixed view cuts it in several settings. Setting N15-3 is shown but excluded from the comparison with the mosaic because the camera dropped frames during the scan. (b) Setting N15-1. Profiles of and against y at the stations (i)–(iii), which are 10, 25 and 50 mm behind the trailing edge. The policy views (blue) follow the scan mosaic (dashed) more closely than the fixed wide view (red).
move the hydrofoil to the next setting and let the policy run for another 30 steps without resetting the episode. The actual measurement is taken from the final viewpoint, from which we record 100 frame pairs and average their flow estimates; all results on hardware are computed from these fields.
We compare the policy with a fixed-view baseline that observes most of the test section and we use a stitched mosaic as the reference reconstruction. The mosaic is obtained by scanning the full water tunnel in 15 close tiles, each comprising 100 image pairs, and stitching them in post-processing. The fixed view is taken from the farthest distance reachable by the arm and covers about 260 mm of the 420 mm test section. Covering the entire section would require a wider lens or a greater distance, both of which would further reduce wake resolution. All hydrofoil settings and camera start positions were selected randomly before the experiments.
Fig. 7 shows that the policy converges to nearly the same view for each hydrofoil configuration from different initial positions, typically within 4 mm. In all but one episode, it settles on a view containing the whole wake, even when the hydrofoil is moved mid-episode. A full 15-step episode, including the 100 frame pairs recorded at the final viewpoint, took a median of 85 s, against 148 s for the scan to cover the test section of our small water tunnel with 15 overlapping close-up views, and the policy processed 160 image pairs instead of the scan's 1500. This gap depends on the camera field of view as well as tunnel size, and would be far larger in full-scale water and wind tunnels. The policy captures the wake within a median of two steps, both from a random initial view and after a hydrofoil change, comparable to simulation. We encourage the reader to see the supplementary video, which shows the search, the settled views and the response to a hydrofoil change on the real setup. By comparison, the fixed view misses part of the
wake in a third of the settings, despite imaging the sheet at roughly two thirds of the resolution achieved by the policy. We report every pre-planned run as recorded, without repeating any. Therefore, setting N15-3, in which the camera dropped frames during the mosaic scan, is shown in Fig. 7 but excluded from comparisons with the mosaic. Table I summarises, across the remaining eleven settings, the number of views containing the whole wake, the median distance between view centres reached from different initial positions, and the median pixel size on the light sheet.
To assess flow-measurement accuracy, we follow PIV studies of wake behaviour [30] and comparisons of PIV techniques [31]. For one case, Fig. 7 shows the non-dimensionalised, time-averaged streamwise velocity profiles and transverse velocity fluctuations at three streamwise stations in the wake. Both quantities are closer to the scan mosaic values at the policy's final view than at the baseline position. We quantify this improvement using and calculate the relative summed error and signed bias of with respect to the scan:
(6)
Here, denotes a cell within , the set of cells in the wake region that are valid (unmasked) in both the scan mosaic and the view. Table I reports the mean and standard deviation of both measures across the eleven hydrofoil settings, with the better value in bold. The policy clearly reduces both the error and the bias of the three flow-field variables within the wake region.
TABLE I
FIXED WIDE VIEW AGAINST SETTLED POLICY VIEWS ON HARDWARE.
| Wake in view | View spread [mm] | Pixel size [mm] | |
|---|---|---|---|
| Wide (fixed)Policy | 7 of 11 | - | 0.136 |
| 41 of 42 | 3.6 | 0.090 | |
| Wide (fixed)Policy | |||
| Wide (fixed)Policy | |||
VII. LIMITATIONS AND CONCLUSION
In this paper we present a method for autonomous PIV in which a camera mounted on a robotic arm improves measurement quality by locating and better resolving regions of interest in the measurement plane. The method is trained entirely in a photorealistic Isaac Sim environment that reproduces key visual artefacts of the real setup, including occlusions and shadows, and is deployed zero-shot on physical hardware. In hardware experiments, the policy located and framed the wakes of two hydrofoils not seen during training, both from random initial positions and after the hydrofoil was moved mid-episode. It settled on a view containing the whole wake in all but one episode. The robot, camera, lens, light source and computer used in the experiments cost approximately €15,000, roughly one tenth of the price of a commercial laser-based PIV system.
We expect the method to generalise to other wind- and water-tunnel setups, provided accurate CAD models of the scene are available, the lighting is adequately represented in simulation, and the camera is extensively calibrated. A limitation of the current work is that the agent does not adjust imaging parameters such as exposure time, inter-frame time and aperture, which also affect flow-reconstruction quality. Extending the policy to control these parameters is a natural direction for future work.
ACKNOWLEDGEMENTS
This work was supported by the Swiss National Science Foundation (SNSF) under grant no. 10005849 (AuRoS). We thank Roger Vonbank for his valuable engineering contributions.
REFERENCES
[1] M. Raffiel, C. E. Willert, F. Scarano, C. J. Kähler, S. T. Wereley, and J. Kompenhans, Particle Image Velocimetry: A Practical Guide, 3rd ed. Springer International Publishing, 2018.
[2] R. D. Keane and R. J. Adrian, “Optimization of particle image velocimeters. I. Double pulsed systems,” Measurement Science and Technology, vol. 1, no. 11, pp. 1202–1215, 1990.
[3] C. Jux, A. Sciacchitano, J. F. G. Schneiders, and F. Scarano, “Robotic volumetric PIV of a full-scale cyclist,” Experiments in Fluids, vol. 59, no. 4, p. 74, 2018.
[4] F. Michaux, P. Mattern, and S. Kallweit, “RoboPIV: how robotics enable PIV on a large industrial scale,” Measurement Science and Technology, vol. 29, no. 7, p. 074009, 2018.
[5] R. Bajcsy, “Active perception,” Proceedings of the IEEE, vol. 76, no. 8, pp. 966–1005, 1988.
[6] R. J. Barthelmie, G. C. Larsen, S. T. Frandsen, L. Folkerts, K. Rados, S. C. Pryor, B. Lange, and G. Schepers, “Comparison of wake model simulations with offshore wind turbine wake profiles measured by sodar,” Journal of Atmospheric and Oceanic Technology, vol. 23, no. 7, pp. 888–901, 2006.
[7] N. Luo, W. Weng, X. Xu, and M. Fu, “Experimental and numerical investigation of the wake flow of a human-shaped manikin: Experiments by PIV and simulations by CFD,” Building Simulation, vol. 11, no. 6, pp. 1189–1205, 2018.
[8] J. D. Anderson, Jr., Fundamentals of Aerodynamics, 6th ed., ser. McGraw-Hill Series in Aeronautical and Aerospace Engineering. New York: McGraw-Hill Education, 2017.
[9] L. Manickathan, C. Mucignat, and I. Lunati, “A lightweight neural network designed for fluid velocimetry,” Experiments in Fluids, vol. 64, no. 10, p. 161, 2023.
[10] C. Mucignat, K. Zdybal, H. Gorji, and I. Lunati, “A lean probabilistic CNN for PIV enabling joint flow and reconstruction uncertainty estimation,” in Proc. 22nd Int. Symp. Applications of Laser and Imaging Techniques to Fluid Mechanics, Lisbon, Portugal, 2026.
[11] D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap, “Mastering diverse control tasks through world models,” Nature, vol. 640, no. 8059, pp. 647–653, 2025.
[12] M. Mittal, C. Yu, Q. Yu, J. Liu, N. Rudin, D. Hoeller, J. L. Yuan, R. Singh, Y. Guo, H. Mazhar, A. Mandlekar, B. Babich, G. State, M. Hutter, and A. Garg, “Orbit: A unified simulation framework for interactive robot learning environments,” IEEE Robotics and Automation Letters, vol. 8, no. 6, pp. 3740–3747, 2023.
[13] C. Lagemann, K. Lagemann, S. Mukherjee, and W. Schröder, “Deep recurrent optical flow learning for particle image velocimetry data,” Nature Machine Intelligence, vol. 3, no. 7, pp. 641–651, 2021.
[14] A. Sciacchitano, “Uncertainty quantification in particle image velocimetry,” Measurement Science and Technology, vol. 30, no. 9, p. 092001, 2019.
[15] F. Scarano, “Iterative image deformation methods in PIV,” Measurement Science and Technology, vol. 13, no. 1, pp. R1–R19, 2002.
[16] K. Zdybal, C. Mucignat, and I. Lunati, “pykitPIV: A framework for flexible and reproducible virtual training of machine learning models in optical velocimetry,” SoftwareX, vol. 31, p. 102356, 2025.
[17] R. Zeng, Y. Wen, W. Zhao, and Y.-J. Liu, “View planning in robot active vision: A survey of systems, algorithms, and applications,” Computational Visual Media, vol. 6, no. 3, pp. 225–245, 2020.
[18] S. Isler, R. Sabzevari, J. Delmerico, and D. Scaramuzza, “An information gain formulation for active volumetric 3D reconstruction,” in Proc. IEEE Int. Conf. Robotics and Automation (ICRA), 2016, pp. 3477–3484.
[19] X. Chen, Q. Li, T. Wang, T. Xue, and J. Pang, “GenNBV: Generalizable next-best-view policy for active 3D reconstruction,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2024, pp. 16436–16445.
[20] F. Chaumette and S. Hutchinson, “Visual servo control. I. Basic approaches,” IEEE Robotics & Automation Magazine, vol. 13, no. 4, pp. 82–90, 2006.
[21] C. Vignon, J. Rabault, and R. Vinuesa, “Recent advances in applying deep reinforcement learning for flow control: Perspectives and future directions,” Physics of Fluids, vol. 35, no. 3, p. 031301, 2023.
[22] S. H. Singh, F. van Breugel, R. P. N. Rao, and B. W. Brunton, “Emergent behaviour and neural dynamics in artificial agents tracking odour plumes,” Nature Machine Intelligence, vol. 5, no. 1, pp. 58–70, 2023.
[23] J. Tobin, R. Fong, A. Ray, J. Schneider, W. Zaremba, and P. Abbeel, “Domain randomization for transferring deep neural networks from simulation to the real world,” in Proc. IEEE/RSJ Int. Conf. Intelligent Robots and Systems (IROS), 2017, pp. 23–30.
[24] M. Mueller, A. Dosovitskiy, B. Ghanem, and V. Koltun, “Driving policy transfer via modularity and abstraction,” in Proc. Conf. Robot Learning (CoRL), 2018, pp. 1–15.
[25] M. Argus, L. Hermann, J. Long, and T. Brox, “FlowControl: Optical flow based visual servoing,” in Proc. IEEE/RSJ Int. Conf. Intelligent Robots and Systems (IROS), 2020, pp. 7534–7541.
[26] L. P. Kaelbling, M. L. Littman, and A. R. Cassandra, “Planning and acting in partially observable stochastic domains,” Artificial Intelligence, vol. 101, no. 1–2, pp. 99–134, 1998.
[27] R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed. Cambridge, MA: MIT Press, 2018.
[28] M. Ataei and H. Salehipour, “XLB: A differentiable massively parallel lattice Boltzmann library in Python,” Computer Physics Communications, vol. 300, p. 109187, 2024.
[29] F. Bösch, S. S. Chikatamarla, and I. V. Karlin, “Entropic multirelaxation lattice Boltzmann models for turbulent flows,” Physical Review E, vol. 92, no. 4, p. 043309, 2015.
[30] S.-J. Lee and J.-Y. Lee, “PIV measurements of the wake behind a rotationally oscillating circular cylinder,” Journal of Fluids and Structures, vol. 24, no. 1, pp. 2–17, 2008.
[31] C. E. Willert, “Event-based imaging velocimetry using pulsed illumination,” Experiments in Fluids, vol. 64, no. 5, p. 98, 2023.