Control software for robots and automated devices is becoming increasingly complex. Existing approaches, such as behavior trees and finite state automata, often introduce additional languages and tooling, which increases development complexity. The React library is based on a widely adopted declarative model familiar to a large portion of developers, but was originally designed for web user interfaces.
In this work, we developed Hertz, a custom React renderer that maps a React component tree onto physical peripheral devices instead of screen elements. We evaluated the framework from two perspectives: a comparison of developer ergonomics between Hertz and Go implementations, and latency measurements on physical hardware.
The results show that the approach is feasible. For simple tasks, Hertz offers no advantage over a direct implementation, but for more complex systems it enables a more local and modular organization of responsibilities. Hertz latency for basic input following is comparable to the Go reference implementation, and the depth of the React component tree has no measurable effect on response time. The practical benefit of using the framework remains dependent on the complexity of the system.
|