Creating LMS-Projects

LMS-Projects require a scene and one or more robots. Those get linked in a project file. Tutorials are available to support the creation of scenes and robots.

Please note:

The XML files in the tutorials are correct concerning structure and content. However, the XML parser that is used by the LMS cannot handle the wordwrap within the tags. Therefore, the wordwraps need to be removed.

Furthermore note, that the tag names are case sensitive. Pay attention on upper and lower cases.

Tutorial: Creating LMS scenes

Tutorial: Creating virtual RCX robots

After creating an floor and one or more robots, you can integrate those objects into a project file. In the following example, we create a file named "myProject.xml" in the directory %lms-home%/scenario/myScenario. Generally, this project file has the following struture:

<?xml version="1.0" encoding="UTF-8"?>     Definition of the XML file. Identical for all files.

<Project ...> begin tag of the project

<Scene>...</Scene> the scene

<RCX>...</RCX> the robots
<RCX>...</RCX>

</Project>

The XML Tag

The XML tag defines the XML file. It is identical for all scenes.

<?xml version="1.0" encoding="UTF-8"?>

The Project Tag

At this entry the definition of a project begins. In order to define the correct structure of the XML file, a xsd file (xsd=XML Scheme Definition) gets intgrated. This works as follows:

<Project
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Project.xsd">

The xsd file is located in the directory %lms-home%/config/Project. If you store your scene file into this directory, you can copy the project tag like it is given above. If your scene file is located in another directory, you can either copy the file �Project.xsd� into this directory or create a relative path starting at the project file and pointing to the scheme definition. The latter case looks as follows:

<Project
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../config/Project/Project.xsd">

The project tag is closed at the end of the file:

</Project>

Scenes and Robots

Using the tags <Scene> and <RCX> the scene and one or more robots are integrated into the project. The file of the scene or the robot (including the path, which is relative to the LMS root directory) is written between the tags. Here, you can see how this works:

<?xml version="1.0" encoding="UTF-8"?> 
<Project
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Project.xsd">


<Scene>Scenario/myScenario/myScene.xml</Scene>

<RCX>Scenario/myScenario/myRobot.xml</RCX>

</Project>

Imprint | Webmaster | Recent changes: 04.10.2007