Is there a Java SDK for Lego Mindstorms? Can I compile Scala code to JAR and run it in Lego Mindstorms?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Likely no, but difficult to say. Mindstorm JVMs aren’t complete JVMs, though they’re not bad.
That said:
Even assuming all the classes you needed were available, Scala “lets” you use large quantities of memory before you realize what’s happening. It’s not certain–you can control what parts of Scala you use. Restricting yourself eliminates some of Scala’s advantages, though.
My approach would be to run a server (or client) on the bot and use Scala on a real machine to control the bot over wireless. Obviously this has its own set of disadvantages.