UE4 blueprints compatibility with EV3 lego bots
Is the ue4 blueprint system compatible with lego EV3 bricks, so i can programme them? If so, how?
asked Jun 12 '18 at 08:11 AM in Blueprint Scripting
It might be possible, but I highly doubt it would be without very significant work (I would be very happy if someone can tell me otherwise though).
You'd need to create a plugin which is capable of interfacing with the EV3, and you'd also need to find a way of stripping out most of UE4 when it compiles, which undoubted would be too large & slow for the EV3.
If you're intersted in learning to program using the EV3, maybe this would be useful: http://www.legoengineering.com/alternative-programming-languages/
answered Jun 12 '18 at 09:14 AM
I've been playing around with this - the EV3 will respond to direct commands in a "byte stream" format (think "assembler for EV3"). So I think it is possible (using C++ in UE4) to:
1) Connect to an EV3 (likely by WiFi or Bluetooth)
2) Write some C++ functions (married up with the appropriate EV3 source libraries - I think you need to #include c_com.h which, in turn, includes a number of other EV3 libraries - these have been posted to git repositories on the web) that will send the EV3 direct commands one-by-one (doing all of the logic and looping on the UE4 system rather than on the EV3 - only the actions and sensor readings would go back and forth over the wireless connection)
3) Expose these functions to blueprints so that they could be built into the scripts
I think the foregoing would be relatively straightforward.
What would be a more difficult undertaking would be to have the UE4 C++ code develop a series of commands and then batch-download them as a program and cause the UE4 to execute that program on the device on its own - though there appears to be sufficient documentation and source code available to figure out how to do this.
answered Nov 21 '18 at 04:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here