This post is co-authored by my son Thomas as a joint project to get a X-Wing into Minecraft. The goal was get Python to build and move the X-Wing.
It builds on ideas from the book Adventures in Minecraft (see link at the bottom) on using Python and Minecraft using a Raspberry Pi.
1. Static X-Wing
To start with we just placed the X-Wing above the player by placing blocks in the shape (roughly) of the X-Wing.
Find the position of the player;To avoid building on top the player the starting position of the X-Wing is set by:add 5 to the x position of the player;add 10 to the y position of the player(The bit I have to keep reminding myself is the y-axis is vertical.);add 5 to the z position of the player;Using these values build using, Wool blocks, the X-Wing - 0 for white, and 14 for red blocks.It is admittedly quite a simple code (see below) and the finished X-Wing can be seen in figure 1. from mcpi.minecraft import Minecraft from mcpi import block
Previously I have shown the Sphero BB-8 rolling around the room under its own control, under the control of Sphero's own software - which has some fantastic features, I especially like the Augmented Reality message replicating the holographic projection in the film. At the time of writing (27th December 2015) this was number one best selling robot toy and 14th best toy overall in Amazon.co.uk toy list that day. The video below is the Sphero BB-8 Droid
on patrol one of the options in the App.
But what is you want to take it a little further? What if you bought it and now want to program it?
One of the features of this device is it is programmable; and there is more than one option, two are presented in this post.
First option, by one of my favourite apps - TickleApp which has been discussed in previous posts. This app allows control of a quite an impressive range of devices using the same interface. Examples, some of which have been discussed previously (e.g Parrot Minidrone or Dash…
I managed to do something I have want to do for a long time this week, thanks to the recent purchase of NAO robots by the University of Northampton, I have managed to include a physical example of Social Robots into my teaching. The aim of the session was to teach about social AI, revolving around the using social cues, to a certain extent, using natural language through chatbots, for us to communicate with machines. The robots were used as an example of a social robot, the way we want to play with or work with them, without having to going through a steep learning curve on how to use them. Students were encouraged to consider why this was and that anthropomorphisation plays a part (NAO basically has some of the characteristics of a small child). The fact that it responds to voice commands, its looks, has a childlike voice, that it always moving (even slightly when standing) and the way it moves; were spotted by the group as ways it attracts us to it - it is really hard not to talk t…