Abstract
Chinese calligraphy is a unique art form with great artistic value but difficult to master. In this paper, we formulate the calligraphy writing problem as a trajectory optimization problem, and propose an improved virtual brush model for simulating the real writing process. Our approach is inspired by pseudospectral optimal control in that we parameterize the actuator trajectory for each stroke as a Chebyshev polynomial. The proposed dynamic virtual brush model plays a key role in formulating the objective function to be optimized. Our approach shows excellent performance in drawing aesthetically pleasing characters, and does so much more efficiently than previous work, opening up the possibility to achieve real-time closed-loop control.
Introduction
Writing Chinese calligraphy presents a significant "Sim2Real" challenge for robotics. A calligraphy brush is a highly deformable, non-linear actuator whose footprint on paper changes dynamically based on pressure (height), velocity, and the previous state of the bristles.
Existing approaches generally fall into two camps: learning-based methods that require massive datasets and struggle to generalize, or trajectory optimization methods that often rely on oversimplified brush models or computationally expensive heuristic algorithms. Researchers at Georgia Tech have proposed a middle ground: a model complex enough to capture brush dynamics but efficient enough to be optimized quickly using pseudospectral optimal control.
Methodology
The Dynamic Virtual Brush Model
The core innovation of this system is a 7-dimensional brush state model: $\mathcal{X} \doteq (x, y, z, w, d, o, \theta)$. This model accounts for the physical reality that the brush tip often "lags" behind the handle due to friction and hair bending.
Key parameters include:
- Width ($w$) and Drag ($d$): These define the size and shape of the ink footprint.
- Offset ($o$) and Orientation ($\theta$): These model the deformation of the bristles.
The model also incorporates a "snap" behavior, where the brush tip resists movement until friction is overcome, which is critical for capturing the sharp turns and "hooks" characteristic of traditional calligraphy.
Pseudospectral Optimal Control (PSOC)
To make the optimization tractable, the researchers use PSOC to parameterize the $x, y, z$ coordinates of each stroke as Chebyshev polynomials. Instead of optimizing every discrete point in a trajectory, the system only needs to find a small set of coefficients. By using Chebyshev-Gauss-Lobatto (CGL) points for interpolation, the system achieves smooth, continuous curves that mimic human brushwork.
Optimization Pipeline
The system extracts stroke skeletons from the MakeMeHanzi SVG database to initialize trajectories. It then uses the Levenberg-Marquardt (LM) algorithm to minimize the pixel-wise difference between the simulated brush output and the reference SVG image.
Implementation and Results
The system was tested on a Franka Emika Panda robot. To combat the unpredictable state of a messy brush, the authors implemented a "mechanical reset" routine—a handcrafted "dip ink" sequence that physically flattens and resets the bristles to a known state between strokes.
Performance
The optimization achieves high fidelity in simulation and significantly outperforms simpler models in real-world tests, especially in preserving the complex shapes of strokes. Qualitative results show the robot successfully producing characters like 'wo' (me), 'kong' (empty), and 'si' (think) that are visually pleasing and faithful to traditional styles.
Discussion and Future Work
By using polynomial parameterization rather than raw waypoints, the optimizer converges much faster than previous heuristic methods. This efficiency opens the door for future closed-loop systems that use visual feedback during the stroke to adjust for the brush's unpredictable deformations. Current limitations include the lack of "dry brush" effects and varying ink saturation, which remain areas for future research into master-level robotic calligraphy.
Summary updated