@Override
        public void sensorPacketReceived() {
            if (shuttingDown) {
                return;
            }
            int[] sensorData = roomba.getSensorData();
            qmemory.setString("bump[0].location", "right");
            qmemory.setInteger("bump[0].value", ((sensorData[0] & BumpRight) > 0) ? 1 : 0);
            qmemory.setString("bump[1].location", "left");
            qmemory.setInteger("bump[1].value", ((sensorData[0] & BumpLeft) > 0) ? 1 : 0);
            qmemory.setString("wheel-drop[0].location", "right");
            qmemory.setInteger("wheel-drop[0].value", ((sensorData[0] & WheelDropRight) > 0) ? 1 : 0);
            qmemory.setString("wheel-drop[1].location", "left");
            qmemory.setInteger("wheel-drop[1].value", ((sensorData[0] & WheelDropLeft) > 0) ? 1 : 0);
            qmemory.setString("cliff[0].location", "left");
            qmemory.setInteger("cliff[0].value", sensorData[1]);
            qmemory.setString("cliff[1].location", "front-left");
            qmemory.setInteger("cliff[1].value", sensorData[2]);
            qmemory.setString("cliff[2].location", "front-right");
            qmemory.setInteger("cliff[2].value", sensorData[3]);
            qmemory.setString("cliff[3].location", "right");
            qmemory.setInteger("cliff[3].value", sensorData[4]);
            qmemory.setInteger("stasis.value", sensorData[5]);
//            System.out.println("Received a sensor packet");
        }