I have recently become a Google Glass explorer. Naturally, as a Clojure developer, I have started looking into developing Glassware using Clojure.
Developing for Glass
There are two different APIs for writing Glassware:
The Mirror API, which allows you to write applications for Glass via a RESTful API. As a result, this means you can easily get started developing for Glass using your existing development skillset.
The Glass Development Kit (GDK) allows you to write applications that run on Glass itself. Glass runs a version of Android, and the GDK is a library that works with the existing Android development kit and tools. As a result, writing Glassware with Clojure and GDK is likely to run into the same caveats that come with Clojure/Android development.
I have started working on an idiomatic Clojure library that wraps the Mirror API, and I am working on using it in a Compojure-based web app that replicates the features of the standard Mirror Demo app published by Google. I haven't quite gotten far enough to publish anything quite yet.
Looking for more Clojure Glass Developers
I have been given a chance to hand out a few invitations for more Glass
explorers, and I would love to hand them out to Clojure developers. If you'd
like to get a chance to win an invitation, please leave a comment here letting
me know what kinds of cool things you'd like to do with Glass. Be sure to
include some sort of way for me to contact you. If you prefer to not post
publicly, just send an e-mail to
<clojure-glass-invite at deepbluelambda.org>.
The deadline for entries is 2013-12-21 06:00 UTC.
The fine print
Unfortunately, Google imposes a few requirements to be able to get an application. You must:
- Be US residents,
- Be at least 18 years old,
- Provide a US shipping address or pick up their Glass at one of our locations in New York, San Francisco or Los Angeles, and
- Be willing to spend $1500 for the device.
No trackbacks, yet.
Trackbacks are closed for this story.
On Thursday, 19 Dec 2013 08:06, Ryan Medlin wrote the following:
are you just going to mimic the existing Java example?
firstname.lastname@example.org hit me up please id like to see what your up to..
On Thursday, 19 Dec 2013 08:08, Ryan Medlin wrote the following:
I already have a glass too..
On Thursday, 19 Dec 2013 08:15, Daniel Solano Gómez wrote the following:
For the time being, I am mimicking the UI and functionality of the Java/Python/etc. example. However, I am trying to do write it in a Clojure-idiomatic way. For example, I am using compojure for the app, and a friend workflow for authorising the app/user. For the Mirror library, I am considering making the API mimic Clojure's (transient?) data structures (a vector timeline with map cards). Thus, it should be possible to use functions like assoc! to update the data structures and make the RPC calls. I'll definitely post about it once I have some minimal functionality in place.
On Thursday, 19 Dec 2013 10:51, Paul Gearon wrote the following:
I've been curious about how much access the API provides to the sensors on the Glass. In particular, real-time access to the gyroscope and orientation. I'm also wondering if there are any utilities for image processing of the current scene.
I have a robot built out of a simple kit (running an Arduino, but I'm thinking of updating him to a Raspberry Pi). I have basic control of him, and he has some small amount of autonomy courtesy of the sensors I have given him (ultrasonics, and touch switches). I can send remote movement requests to him, but I would like to move onto using more natural interfaces for this (for instance, I have recently started using a Leap Motion controller). I've been hoping that Google Glass would allow me to do interesting things, like directing the robot to move to where I am looking, respond to voice commands, and so on.
Doing this kind of thing from a repl is fun and interesting, but when you hide the technology by connecting the sensors directly to robot movement, it starts to look like magic. :)
On Thursday, 19 Dec 2013 14:25, Daniel Solano Gómez wrote the following:
Using the GDK, it is in fact possible to get access to all of the device's sensors, namely: accelerometer, gravity, gyroscope, light, linear accelerometer, magnetic field, and rotation vector (orientation). Additionally, it should be possible to do things like voice recognitions or communicate via wifi or bluetooth.
I think the biggest caveat with the current Glass incarnation is that it has limited battery life, and I am guessing that doing this sort of remote control would run the battery fairly quickly. Nonetheless, it would be a pretty cool demonstrations.
Comments are closed for this story.