Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 The urbiscript language  



1.1  Language attributes  







2 Functions  



2.1  Examples  







3 UObject component architecture  





4 Ecosystem  



4.1  Robotics simulators compatible with Urbi  





4.2  Urbi-fied robots  







5 See also  





6 References  





7 External links  














URBI






Español
Français
Русский
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


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 inurbiscript, C++
Operating systemWindows NT, macOS, Linux
TypeRobotics suite, operating system, library
LicenseBSD[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.

The urbiscript language

[edit]

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

[edit]

Functions

[edit]

Examples

[edit]

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

[edit]

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

[edit]

Robotics simulators compatible with Urbi

[edit]

Urbi-fied robots

[edit]

Released:

Announced:

See also

[edit]

References

[edit]
  1. ^ "Urbi, the open source operating system for robots". Retrieved 2012-10-27.
  • ^ 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.
  • ^ "Urbi". GitHub.
  • ^ Baillie, Jean-Christophe; Demaille, Akim; Nottale, Matthieu; Hocquet, Quentin; Tardieu, Samuel (2008). "The Urbi Universal Platform for Robotics" (PDF). Retrieved 6 October 2011.
  • ^ Baillie, Jean-Christophe; Demaille, Akim; Nottale, Matthieu; Hocquet, Quentin (2010). "Tag: Job Control in urbiscript" (PDF). Retrieved 6 October 2011.
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=URBI&oldid=1232796359"

    Categories: 
    Integrated development environments
    Robotics suites
    2003 software
    2003 in robotics
     



    This page was last edited on 5 July 2024, at 16:56 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki