November 16, 2026

Plain text communication with robots

Text written in English can't be executed as computer program. It doesn't provide any sense for a computer and can only be stored in string variables or in databases. From a programming perspective, plain text is a boring dataformat which can be ignored.

At the same time, plain text is highly important for human communication. Typical tasks for a robot like "move to shelf #B, grasp the red_box" are formulated in plain text which contains of verbs, adjectives and nouns. In the example the terms "shelf #B" and "box" are both nouns, they are referencing to the reality.

There is a need to translate English sentences into machine instruction because a human submits commands to a robot. Grounded language in robotics means usually to perform the translation from natural language to computer language.

Technically the gap gets closed with a DSL parser, domain specific language parser. Such a computer software takes plain text as input like "move to shelf #B" and converts the statement into computer code. In most cases this is realized with an intermediate step in which a datastructure is generated first, e.g. in the JSON syntax. In the next step the datastructure is converted into program calls inside the computer program.

Nearly all text adventure have a built in DSL parser, its sometimes called only "a parser". The parser takes the input from the human player like "go north" and transforms the statement into internal computer call. In the example the command gets converted into "move(0)" because 0 = north.

The working thesis is that a DSL parser is the core element for processing grounded language. Its the interface between natural language and computer code. A DSL parser doesn't decide something and it doesn't solve problems, but the parser converts input into output. It ensures, that the human operator can submit natural language to a robot for task execution.

The question left open is why such a translation pipeline is needed. Wouldn't it be more efficient if the robot decides by itself what to do and doesn't listen to a human operator? Such a system is called autonomous system or closed system and were common until the year 2010 in robotics history. Such a system doesn't need a natural language parser but operates by its own principle. The disadvantage is, that a closed system needs to provide all the knowledge by itself. Such a requirement is too complicated to realize. A warehouse robot which doesn't listen to an human operator, needs to know all the details of the task: It would require a large ontology and lots of rules from an expert system. This would create a very huge software project with 100k lines of code and more. Realizing such a system is impossible.

Smaller minimal robot system are realized as open systems which are teleoperated. These systems have only few information about the task and need input from the environment to solve a task. They need a command to move to the next shelf and they need another command to grasp a box from the shelf. Open system doesn't need an onboard ontology with a complete task description because the knowledge is located outside of the robot in the human operator. The human operator has the overview over the situation and knows what task comes next and what to do during an error. Especially for complex tasks, teleoperated robots are working more robust.

No comments:

Post a Comment