anybody knows how to take command from wireless media like xbee modules and according to that command modeling is done without human intervention. I have one xbee module on a micro-controller which sends information about objects detected to another xbee module connected to PC. how blender can perform modeling (like placing detected object on the map created in blender ) using the information received by xbee module. I just want to know the way in which i can take input for my python script from the xbee. Do anybody know how to do it?
Asked
Active
Viewed 308 times
0
-
I guess you need to import the according python module that is the python binding to the xbee module. – Monster Jan 23 '17 at 09:12
1 Answers
0
First you will need a python module that will talk to your xbee. The XBee module doesn't mention what python versions it works with, but it uses pyserial which does support python3.5. If that doesn't work, searching pypi for xbee shows a few other possibilities.
There are a few ways to install third party modules or you can make blender use the system python. You can also add a path to sys.path so that blenders python can search for it.
Once you are able to import the module within blender create a script that responds to the input. You may want to look at using the subprocess module to read the input without locking blenders UI.