Wall Painting Example
This example demonstrates the integration of BPJ scenarios with LSCs. An explanation of the original example and the behavioral threads can be found here. To this example we have added a set of LSCs to control the color supply. The auto generated system model GUI is used to simulate a color that ran out and was manually refilled. For each color used for the wall painting (black, red, blue, green) we have added two LSCs.
- One LSC monitors the use of a color, and after being used twice (simulating that each color can is sufficient for painting two segments), it announces that the color has run out:
- Another LSC blocks the use of the color after it runs out. Note that the instruction to block the color applies to all participating LSCs, but also to all participating b-threads. The prohibition to use the color is dismissed as soon as the refill event occurs.
Download the Wall Painting Example
- Download and install PlayGo.
- Extract the downloaded Wall Painting zip. The zip contains 2 projects; one is the LSC project and the other is a simulator project.
- Import the downloaded projects to your workspace:
- From the File menu choose Import-->General-->Existing Projects into Workspace.
- Click the 'Next' button.
- When prompted, select the directory to which you extracted the two projects from the downloaded zip file.
- Click finish.
- The wall painting example is now part of your workspace. To run it:
- Run MainPanel from the HeliSim project, under the ServerSide package.
- Add the following VM argument to the 'PlayApp' run configuration: -Drunmode=netWorkingMode.
- Select the BDrone project and play it out.
A demo of the example:
Download the ROV framework
- The Remotely Operated Vehicle Tool framework (abbreviated ROV Tool or RT) was designed with the following goals in mind:
- Enable remote piloting command execution on the Parrot AR.Drone 1.0 quadrotor, using ARDrone Java interface.
- Provide an external drone piloting API designed for BP programs, using LSC or BPJ.
- Abstract the drone spatial position estimation mechanism.
- Click here to download the ROV framework.
- The downloaded zip file includes a documentation of the framework in the il.ac.wis.cs.rovtool project, under the directory doc.