Learning Viewpoint Estimation for Coverage Path Planning
Inspecting a 3D part means deciding where to put the sensor. Choose too few viewpoints and parts of the surface go unmeasured; choose too many and every scan costs robot time. The classical answer is a search: score candidate views, pick the best one, repeat. That works, but it is expensive, and the tuning that makes it work on one part rarely carries over to the next.
My MS thesis at CMU asked whether a learned policy could do this instead. I trained a Proximal Policy Optimization (PPO) agent to propose viewpoints for complete surface coverage, with the goal of a planner that is fast at inference time and generalizes across part geometries without per-part tuning.
Key result. Across parts from the ABC dataset, the policy reached nearly 89% average surface coverage, matching or beating a greedy Next Best View (NBV) baseline on coverage while needing significantly less computation time.
Problem
Given a mesh of the part, find a small set of sensor poses that together see as much of its surface as possible. Deterministic planners solve this with search, which scales poorly with geometric complexity and is usually built around a specific part family and inspection setup. A learned policy trades that per-query search for a one-time training cost: it learns from experience what makes a view informative, and balances exploring new regions against refining what it has already seen.
Formulation & Environment
I trained and evaluated on the ABC dataset, a collection of one million CAD models. Every mesh was uniformly resampled and normalized to a fixed number of faces, so the observation and action spaces stay the same size from one part to the next.

- Action space. A viewpoint is a point in a three-dimensional box in spherical coordinates around the object, which captures the geometry of "looking at a part from somewhere around it" more naturally than Cartesian coordinates.
- Observation space. A binary vector over the mesh faces: entry $i$ is 1 if face $i$ has been seen and 0 otherwise.
- Reward. A composite that rewards newly covered area, penalizes using more viewpoints than necessary, and encourages views to spread around the object rather than cluster.
The observation model is the agent's interface to the world. It takes a sensor pose, casts rays from that pose onto the mesh to find which faces are visible, and returns the binary visibility vector for that view.

Training & Results
I trained the policy with PPO, chosen for its stability and sample efficiency. PPO limits how far each update can move the policy: its clipped surrogate objective uses a hyperparameter $\epsilon$ to bound the ratio between the new and old policies, so a single bad batch cannot throw training off course. Rewarding exploration of the environment cut training time significantly.
I benchmarked the agent against a greedy implementation of Next Best View, a standard and strong baseline for viewpoint selection:
- Average coverage was nearly 89%, with the number of viewpoints adapting to the complexity of the part's topology.
- The policy gave better or comparable coverage than greedy NBV, often with fewer viewpoints.
- It was significantly faster than NBV, even with thresholds added to NBV to stop it early.
- Viewpoints spread evenly around each part instead of concentrating in one region.

Limitations & Open Questions
The policy does not always reach full coverage. What it misses is predictable: occluded holes, deep pockets and tight corners, where only a narrow cone of viewpoints can see the surface at all.

The formulation also assumes a static, fully known part, and folds every goal into one scalar reward. The questions I would pursue next follow from that:
- Hybrid planners that use search or synthesis to propose candidate views and a learned policy to choose among them.
- Transfer or meta-learning to cut the training data needed for new part families.
- Multi-objective formulations that weigh coverage against measurement quality and robot motion cost.
- Partially observable and dynamic settings, where the part model is uncertain or the part moves.
To benchmark planners like this against arbitrary meshes in simulation, see Viewpoint Simulation for Coverage Planning.