URBI

Last updated
Urbi
Original author(s) Jean-Christophe Baillie
Developer(s) Gostai, Aldebaran Robotics
Initial release2003;21 years ago (2003)
Stable release
2.7.4 / November 17, 2011;12 years ago (2011-11-17)
Repository
Written in urbiscript, C++
Operating system Windows NT, macOS, Linux
Type Robotics suite, operating system, library
License BSD [1]

Urbi is an open-source cross-platform software computing platform written in C++ used to develop applications for robotics and complex systems. [2] Urbi is based on the UObject distributed C++ component architecture. It also includes the urbiscript orchestration language which is a parallel and event-driven script language. UObject components can be plugged into urbiscript and appear as native objects that can be scripted to specify their interactions and data exchanges. UObjects can be linked to the urbiscript interpreter, or executed as autonomous processes in "remote" mode.

Contents

The urbiscript language

The urbiscript language was created in 2003 by Jean-Christophe Baillie in the Cognitive Robotics Lab of ENSTA, Paris. It has been actively and further developed in the industry through the Gostai company founded in 2006. It is now an open source project, with a BSD license, available on GitHub. [3]

The urbiscript language can be best described as an orchestration script language: like Lua in video games, urbiscript can be used to glue together C++ components into a functional behavior, the CPU-intensive algorithmic part being left to C++ and the behavior scripting part being left to the script language which is more flexible, easy to maintain and allows dynamic interaction during program execution. As an orchestration language, urbiscript also brings some useful abstractions to a program by having parallelism and event-based programming as part of the language semantics. The scripting of parallel behaviors and reactions to events are core requirements of most robotic and complex AI applications, therefore urbiscript (and the whole Urbi platform) is well suited to such applications.

Language attributes

Functions

Examples

The example below shows how to write a ball tracking action/perception loop in urbiscript: headYaw/headPitch are two motor objects, and ball is the ball detection object (x and y range from -1/2 to 1/2):

whenever(ball.visible){headYaw.val+=camera.xfov*ball.x&headPitch.val+=camera.yfov*ball.y};

whenever is used to trigger a piece of code in loops as long as the associated condition is true. The & sign is used to specify that both commands should start at the same time, thus running in parallel.

Other notable event-driven constructs include at, which triggers the associated code once when the event is triggered:

at(speech.hear?("hello")){voice.say("How are you?")&robot.standup();}

Every command or group of commands is taggable, which provides a way to stop it later if needed:

myTag:while(true)echo("This is a never ending loop"),at(button.pressed)myTag.stop;

Note in the example above the comma at the end of the command. It will put the preceding command in the background, allowing the flow execution to carry on, in particular the next 'at' command to be executed.

UObject component architecture

The UObject component architecture allows developers to interface any Java/C++ object within Urbi, making selected methods and attributes visible in urbiscript, while in fact being compiled code. Special notifiers can be set on any of the object's attributes to notify the C++ side of any change on these attributes on the urbiscript/Urbi side.

UObject uses C++ templates to transparently map any requested method to an interface machinery that takes care of the type checking.

A UObject can be used in plugged mode if it is directly linked to Urbi at compile time or with dynamic loading. In that case, the C++ object shares the Urbi memory directly, resulting in efficient integration. This is typically used for time critical components like motor or sensor drivers. The same UObject can also be used without modifications as a remote component. In that case, it will become an autonomous program to be executed with the IP address of the Urbi server as a parameter. In both cases, the object will transparently appear in urbiscript as a native urbiscript object.

Ecosystem

Robotics simulators compatible with Urbi

Urbi-fied robots

Released:

Announced:

See also

Related Research Articles

<span class="mw-page-title-main">JavaScript</span> High-level programming language

JavaScript, often abbreviated as JS, is a programming language and core technology of the World Wide Web, alongside HTML and CSS. As of 2023, 98.7% of websites use JavaScript on the client side for webpage behavior, often incorporating third-party libraries. All major web browsers have a dedicated JavaScript engine to execute the code on users' devices.

Programming languages can be grouped by the number and types of paradigms supported.

<span class="mw-page-title-main">Adobe ColdFusion</span> Rapid Web app development platform

Adobe ColdFusion is a commercial rapid web-application development computing platform created by J. J. Allaire in 1995. ColdFusion was originally designed to make it easier to connect simple HTML pages to a database. By version 2 (1996) it had become a full platform that included an IDE in addition to a full scripting language.

<span class="mw-page-title-main">Visual programming language</span> Programming language written graphically by a user

In computing, a visual programming language or block coding is a programming language that lets users create programs by manipulating program elements graphically rather than by specifying them textually. A VPL allows programming with visual expressions, spatial arrangements of text and graphic symbols, used either as elements of syntax or secondary notation. For example, many VPLs are based on the idea of "boxes and arrows", where boxes or other screen objects are treated as entities, connected by arrows, lines or arcs which represent relations.

In computer programming, dataflow programming is a programming paradigm that models a program as a directed graph of the data flowing between operations, thus implementing dataflow principles and architecture. Dataflow programming languages share some features of functional languages, and were generally developed in order to bring some functional concepts to a language more suitable for numeric processing. Some authors use the term datastream instead of dataflow to avoid confusion with dataflow computing or dataflow architecture, based on an indeterministic machine paradigm. Dataflow programming was pioneered by Jack Dennis and his graduate students at MIT in the 1960s.

Robot software is the set of coded commands or instructions that tell a mechanical device and electronic system, known together as a robot, what tasks to perform. Robot software is used to perform autonomous tasks. Many software systems and frameworks have been proposed to make programming robots easier.

<span class="mw-page-title-main">Lego Mindstorms NXT</span> Programmable robotics kit

Lego Mindstorms NXT is a programmable robotics kit released by Lego on August 2, 2006. It replaced the Robotics Invention System, the first-generation Lego Mindstorms kit. The base kit ships in two versions: the retail version and the education base set. It comes with the NXT-G programming software or the optional LabVIEW for Lego Mindstorms. A variety of unofficial languages exist, such as NXC, NBC, leJOS NXJ, and RobotC. A second-generation set, Lego Mindstorms NXT 2.0, was released on August 1, 2009, with a color sensor and other upgrades. The third-generation EV3 was released in September 2013.

TypeScript is a free and open-source high-level programming language developed by Microsoft that adds static typing with optional type annotations to JavaScript. It is designed for the development of large applications and transpiles to JavaScript. Because TypeScript is a superset of JavaScript, all JavaScript programs are syntactically valid TypeScript, but they can fail to type-check for safety reasons.

<span class="mw-page-title-main">PureMVC</span>

PureMVC is a software framework for creating applications based on the well-established model–view–controller (MVC) design pattern. It was originally implemented in the ActionScript 3 language for use with Adobe Flex, Flash, and AIR, and it has since been ported to nearly all major web development platforms. It is free and open-source software released under a BSD 3-clause license.

Domain-driven design (DDD) is a major software design approach, focusing on modeling software to match a domain according to input from that domain's experts.

In computer science, marshalling or marshaling is the process of transforming the memory representation of an object into a data format suitable for storage or transmission, especially between different runtimes. It is typically used when data must be moved between different parts of a computer program or from one program to another.

<span class="mw-page-title-main">Clojure</span> Dialect of the Lisp programming language on the Java platform

Clojure is a dynamic and functional dialect of the Lisp programming language on the Java platform.

Robotics middleware is middleware to be used in complex robot control software systems.

ZK is an open-source Ajax Web application framework, written in Java, that enables creation of graphical user interfaces for Web applications with little required programming knowledge.

<span class="mw-page-title-main">Vaadin</span>

Vaadin is an open-source web application development platform for Java. Vaadin includes a set of Web Components, a Java web framework, and a set of tools that enable developers to implement modern web graphical user interfaces (GUI) using the Java programming language only, TypeScript only, or a combination of both.

<span class="mw-page-title-main">Node.js</span> JavaScript runtime environment

Node.js is a cross-platform, open-source JavaScript runtime environment that can run on Windows, Linux, Unix, macOS, and more. Node.js runs on the V8 JavaScript engine, and executes JavaScript code outside a web browser.

Cucumber is a software tool that supports behavior-driven development (BDD). Central to the Cucumber BDD approach is its ordinary language parser called Gherkin. It allows expected software behaviors to be specified in a logical language that customers can understand. As such, Cucumber allows the execution of feature documentation written in business-facing text. It is often used for testing other software. It runs automated acceptance tests written in a behavior-driven development (BDD) style.

urbiscript is a programming language for robotics. It features syntactic support for concurrency and event-based programming. It is a prototype-based object-oriented scripting language. It is dynamic: name resolution is performed during the program execution ; slots can be added/removed at runtime, and even prototypes (superclasses) of an object can be changed at runtime.

Jean-Christophe Baillie is a French scientist and entrepreneur. He founded the ENSTA ParisTech Robotics Lab where he worked on developmental robotics and computational evolutionary linguistics. While at ENSTA, he designed the urbiscript programming language to control robots, which became the base technology of Gostai, a robotics startup he created in 2006, which was acquired by Aldebaran Robotics in 2012.

References

  1. "Urbi, the open source operating system for robots" . Retrieved 2012-10-27.
  2. Baillie, Jean-Christophe. "Urbi: a new parallel & event-driven script language for robotics, games and more". YouTube. Archived from the original on 2021-12-21. Retrieved 6 Oct 2011.
  3. "Urbi". GitHub .
  4. Baillie, Jean-Christophe; Demaille, Akim; Nottale, Matthieu; Hocquet, Quentin; Tardieu, Samuel (2008). "The Urbi Universal Platform for Robotics" (PDF). Retrieved 6 October 2011.
  5. Baillie, Jean-Christophe; Demaille, Akim; Nottale, Matthieu; Hocquet, Quentin (2010). "Tag: Job Control in urbiscript" (PDF). Retrieved 6 October 2011.