all work

Hyundai Motor Group Innovation Center Singapore · Apr – Jun 2026 · Digital Twin & Simulation Engineering Intern

Action Graph Code Generator

The robots in Hyundai's Singapore factory run on programs written in Kawasaki AS, a low-level language, in files that run to tens of thousands of lines. The simulation software, NVIDIA Isaac Sim, works more like a flow chart: you connect blocks for things like moving the arm or picking up a part with the suction cup. To simulate a robot, an engineer had to read through its source code and rebuild it by hand as one of these flow charts, called an action graph. That took about a week per subprogram, and a single cell of the factory has more than forty. In the last three months of my internship I built a tool to speed that up.

1 wk to ~4 h
per subprogram, including an engineer checking it (estimate)
7
approaches compared before picking one
4
undocumented Isaac Sim behaviours worked around
Python · LLM agents · NVIDIA Isaac Sim · OmniGraph · USD · Kawasaki AS

01Picking an approach

The brief was one sentence: automate making action graphs from robot programs. There was no spec and nothing like it in the team yet, so I started by writing down how engineers did it by hand, step by step, and where the time went. I agreed the scope with the team lead before building anything.

Then I compared seven approaches and built small versions of a few: a hand-written parser, a local LLM, Copilot-style assistants, a custom pipeline calling an LLM API, and an AI agent working from documentation. A parser that converts the code with fixed rules was the most predictable, but Kawasaki AS has far too many edge cases to write all the rules in advance. An AI agent handled that variety much better.

02How it works

Isaac Sim can run Python, so the agent writes a Python script for each subprogram, and the script builds the action graph. The script itself is ordinary code. It builds the same graph every time it runs, and an engineer can read it, diff it and review it like anything else. The AI is in the writing of the script, and that's the part that needs checking.

So most of my time went into what the agent works from, to get that Python as good as possible: dozens of markdown files of translation rules (this kind of AS code becomes this graph structure), a catalogue of the primitive and compound nodes the team had built, style guides, a folder of example scripts I'd verified by hand, like a bumper pick, and prompts for starting a new agent session in the repository.

All of it lives as plain files in the team's git repository, so the team can keep adding rules and examples after I left, and it isn't tied to one AI model. I used Claude Code inside VS Code, since the team already works in VS Code and it gave the best results. The company's internal assistant was available but weaker at this. A company model, or an open-weight model hosted on their GPU cluster, could work from the same files.

03Getting Python to do what the interface does

The hardest part was doing everything in Python at all. Isaac Sim expects you to build action graphs by clicking around in its interface. There are Python APIs for the same things, but a lot of it isn't documented, and the machines had no internet, so I worked it out by reading the installed extension source.

To know the generated graphs were right, I first built the pick sequence for the windshield wiper by hand and had the senior developer check it: the node structure, joint correction values, and how the branches split and join again. Then I compared the generated versions against it, diffing the USD files, until they matched.

That diffing turned up four behaviours that don't match the documentation. og.Attribute.set() only changes the value at runtime and doesn't save it to the USD file. Relationship-type attributes need CreateRelationship().SetTargets() instead of the documented setter. Make Array inputs reset to zero unless the calls happen in a particular order. And og.Controller.connect() doesn't work for connections between compound graphs, so those have to be written by hand. I put the workarounds into a shared helper module, codegen_utils.py, so nobody has to find them again.

The setup slowed things down too. The computer I wrote code on couldn't run Isaac Sim, so every script went over SFTP to an offline GPU machine for testing. And the scene wasn't fully set up yet, so moves could land slightly off from the real factory even with the right coordinates, which meant I couldn't properly compare the simulation against videos of the real robots. A separate project was fixing that.

04Where it ended up

It works on the pick sequences I tested it on: you ask it for a subprogram and it writes a script that builds the graph, and those were tested properly. It hadn't been tried on other cells or on vision nodes yet, and there wasn't time to test how much it changes the engineers' day-to-day work. An engineer still checks and fixes every generated graph, which is where the estimate of about four hours per subprogram comes from, against about a week by hand.

The team was impressed by how much work it could save. I filed the internal AI use-case submission for it, and presented the idea to the VP as slides rather than a live demo. She agreed we should be using AI to speed up engineering work like this. The documentation doubles as the handover, and I drafted an acceptance test for it: an engineer who has never seen the project builds a compound node using only the docs.