Skip to main content

Robotics 4 .NET

Go Search
Home
Documents and Lists
Create
Site Settings
Help
  
Robotics 4 .NET > Software > VisualStorms  

Web Part Page Title Bar image
VisualStorms and SharpStorms

 Announcements

Alex Thissen on VisualStorms 
by Antonio Cisternino
 10/10/2004 10:33 AM
 

Introduction

Visual Storms is an add-in for VisualStudio.NET that allows you to write managed programs in whatever language you like and run them on the popular Lego Mindstorms: the programmable Lego Brick. The SharpStorms compiler transforms MSIL in .NET assemblies into the bytecode consumed by the standard Lego VM running on the brick.

Does this means that you can run .NET applications on the brick? Of course not: you should inherit from given classes, make use of custom attributes, and so on. Anyway you can use a real world programming environment to program the brick, and this can be useful to beginners.

Notes

The compiler can be used also without VS.NET.

Because the compiler maps IL to bytecode, sometimes the compiler outputs IL sequences we don't handle correctly. We are helping people in fixing these problems, though is someone is willing to help, help will be really appreciated!

Why is in Robotics4.NET?

VisualStorms is a project not directly related to Robotics4.NET. Nevertheless it has been our start with .NET and robots. Moreover, within the package you'll find all the machinery required to generate bytecode for mindstorms, and this can be useful to target Lego Mindstorms platform. Perhaps in the future we will target Mindstorms with Robotics4.NET.

Example

The following example shows a line walker (assuming a suitable architecture). You can see how custom attributes are used to indicate how tasks are distributed in the final code. The class inherits from a class representing the capabilities of the brick (Scout, RCX2, ...). You can use only integer variables (due to limitations of the architecture).
Show

 Issues

There are no items to show in this view of the "VisualStormsIssues" list.

 Links

  Browsable CVS
  Source code (automatic ZIP archive)
  Binary distribution
  CLI + METADATA > EXECUTABLE

 Events

Sort by Attachments
Title
Location
Start Time
End Time
All Day Event
There are no items to show in this view of the "VisualStormsEvents" list.
 Previous Previous

 Tasks

There are no items to show in this view of the "VisualStormsTasks" list.