Well in theory it should work. I am saying "in theory" because I have not tried MORSE.
What is Ephestos ? Basically its a python application that creates a streamsocket server that listens byte data, then it takes the byte messages it converts them to strings and it executes them using exec() built-in python function. The end. See what I did here , I did not mention Blender at all. Actually Ephestos is implemented as Blender addon. So it gives you both access to Bpy and python libraries. A Blender addon is basically a python application + access to BPY + extra stuff to make it easy to select and enable in the Blender GUI. Now from what I see at first glance MORSE uses BPY and BGE. BGE , the blender game engine is a separate app essentially with its own API. So I need to wrap Ephestos for BGE but it will still be the same thing with added more code to be called by BGE. It should be fairly easy to do and I will do it. I don't know if there are other implementation details about MORSE but I don't think there will be a problem to make it work with Ephestos. Of course Ephestos has still got some big limitations a) does not receive data from Blender b) does not support of multiline python code. I don't know about b) it may work already if you add newlines in your python strings and whitespaces but I will have to test this and of course improve it to make it easier to use. Both of these features will be added since they are high priority goals. On Mon, Jul 21, 2014 at 10:17 AM, Serge Stinckwich < [email protected]> wrote: > On Sun, Jul 20, 2014 at 7:34 PM, kilon alios <[email protected]> > wrote: > > hi guys Ephestos has been moving forward and I am happy to report I can > > finally offer 100% accessibility to Blender Python API , meaning you can > > have access to any blender operator and property. > > > > Additionally Ephestos won't crash anymore in case of python error, > instead > > it will display the error in the Blender GUI , remove the message > containing > > the error and carry on like nothing happened. > > > > Ephestos now offers full access to python globals, meaning you can assign > > global variables in python to shorten your code and for all the known > > benefits of using variables. > > > > With the help of Damien I was successful in creating a parser for pharo > to > > python syntax. Using pharo messages you can now construct automagically > > python strings and pass it to blender . This way you no longer need to > type > > in python syntax to do python stuff. So a big thanks to Damien. Note this > > method of course is slower because of parsing and heavy usage of regex > > string matching. > > > > You can watch a video demo here > > > > https://www.youtube.com/watch?v=yIE1LGjUDDA&feature=youtu.be > > Really great work Kilon. > > I was wondering if you could use such techniques in order to interact > with MORSE, a 3D open-source > robotics simulation engine based on top of Blender (mostly written in > Python): https://www.openrobots.org/wiki/morse > There is some information about how to build scenarios here: > http://www.openrobots.org/morse/doc/latest/user/builder.html > Might interest some people here. > > Regards, > -- > Serge Stinckwich > UCBN & UMI UMMISCO 209 (IRD/UPMC) > Every DSL ends up being Smalltalk > http://www.doesnotunderstand.org/ > >
