Community:Science/Robotics/SimCreator

提供: wiki
移動先: 案内検索

SimCreator

This is a wiki for the SimCreator robotics panel. You can temporary download the zip containing the script, manual and test library here(7z). You can view the script here and here.


About

The SimCreator Script was written by Peter Roelants at the KULeuven Department of Mechanical Engineering under supervision of Prof. Herman Bruyninckx and the help of Izaak van Crombrugge. It uses the GPL Licence. The script is written for Blender 2.5, it was last tested on Build 2.53.0 r'30594'.


Introduction

This script is not complete, it is written to test out the panel scripting possibilities in Blender 2.5.

This script gives you the possiblity to create a simulation. The simulation elements are in the provided SimCreator library.

A simulation consists of an environment and actors like robots, sensors and tools. When you start a simulation you first need to create an environment and then you have the option to add different actors.

Each environment or actor can have multiple anchor points (AnchorPoints), these points represent locations were new actors can be added to the simulation. Each actor has 1 AnchorConnection which is a place where the actor will be connected to an anchor point in the current simulation.

Because this script is incomplete I tried to write my code so it can be extended. The simulation data, the simCreator library, the environment and actors all representend in different objects that can be extended as you like. I tried to disconnect these objects from their Blender objects as much as possible.

Image

SimCreatorPanel.png

Usage

  • Valid Directory:
    • The code will need to have an URL that points to a library of .blend files. If the hardcoded URL doesn't point to such a library, the user has to select one.
    • The new directory will need to have the following subdirectories:
      • robots
      • sensors
      • scenes
  • Create new scene:
    • Will let you choose a Scene from the scenes directory and load it
  • Add a new robot
    • Will let you choose a new Robot and add it to an anchorpoint of the loaded scene
  • Add a new sensor
    • Will let you choose a new Sensor and add it to an anchorpoint of a loaded robot
  • Remove a sensor:
    • Will let you remove a Sensor
  • Remove a robot:
    • Will let you remove a Robot
  • Test Print:
    • makes a string of the configuration and prints it to the console

TODO

  • Export/Import simulation
  • Export/Import robot with specific sensors or tools
  • Add new AnchorPoints to simulation (Izaak van Crombrugge is working on this)
  • Add view control and options (Izaak van Crombrugge is working on this)
  • Add option to import robot control scripts
  • ...