This is an old revision of the document!


AmbientTalk/Ros

The goal of AmbientTalk/Ros is to integrate a reactive version of AmbientTalk into ROS in a clean way. This such that it can be used as a ROS node for programming the behavior of the robot. Existing sensors and actuators (ROS nodes) are reified as Reactive Programming Behaviors and integrate into AmbientTalk in this way.

This is early work and still quite unstable. For now this page only contains the installation procedure and pointers to useful material.

This is work conducted by Johan Fabry in conjunction with the authors of AmbientTalk, with Andoni Lombide providing the bulk of the implementation. Thanks go to Eric Tanter, Pablo Guerrero, Wolfgang De Meuter and Serge Stinkwich for many productive discussions.

Useful material

Installation procedure

AmbientTalk/ROS is open source, under the MIT license. Here are the required steps to install it.

First get all software installed. We are assuming you are running Ubuntu and ROS Groovy.

  1. Install Eclipse, see http://www.eclipse.org/downloads/
  2. Install the Eclipse ANTLR plugin, see http://antlreclipse.sourceforge.net/
  3. Install the IDEAT AmbientTalk Eclipse plugin, see http://code.google.com/p/ambienttalk/wiki/EclipsePlugin
  4. Install the 1.0 version of ROSBridge, from the terminal do a sudo apt-get install ros-groovy-brown-remotelab
  5. Obtain the latest version of AmbientTalk/ROS (contact Johan for a relatively stable version) and import all five projects it contains into your eclipse workspace.

Now configure your Eclipse:

  1. Ensure the parserReactive project has the ANTLR nature (It there are no horns, right click → “Toggle ANTLR nature”)
  2. Set the Java Build Path required projects for the atlibReactiveRFID project to: interpreterReactive and org.json
  3. Set the Java Build Path required projects for the iatReactive project to: atlibReactiveRFID, interpreterReactive, parserReactive
  4. Set the Java Build Path required projects for the parserReactive project to: interpreterReactive
  5. Set the Java Build Path required libraries for the interpreterReactive project to include all of the jars that are present in interpreterReactive/lib and interpreterReactive/lib/jgl (use the Add JAR button)

It is recommended to create an Eclipse run configuration that runs the interpreter and immediately evaluates an .at file (if it is an .at file the AmbientTalk Eclipse plugin can apply syntax coloring etc.).

  1. Run the iatReactive project as a Java application.
  2. Quit the application
  3. Edit the IAT run configuration
  4. Change the program arguments to point to the file in which you are saving your AmbientTalk program that you want to run (you can add several run configurations for several programs).