SoftBank Robotics documentation What's new in NAOqi 2.8?

ALStore API

NAOqi Core - Overview | API


Namespace : AL

#include <alproxies/alstoreproxy.h>

Method list

As any module, this module inherits methods from ALModule API. It also has the following specific methods:

class ALStoreProxy

Methods

void ALStoreProxy::update()

Deprecated since version 2.4: use the Store instead.

Update applications from the Store. This call will return immediately, but ALStore/Updated() will be raised once update completes.

void ALStoreProxy::stopUpdate()

Deprecated since version 2.4: use the Store instead.

Stop current update. Current download is not immediately aborted.

std::vector<AL::ALValue> ALStoreProxy::status()

Deprecated since version 2.4: use the Store instead.

Get a vector of all applications status.

Events

Event: "ALStore/Updated"
callback(std::string eventName, std::string subscriberIdentifier)

Deprecated since version 2.4: use the Store instead.

Raised when current update completes, even though errors occurred.

Event: "ALStore/SystemImageDownloaded"
callback(std::string eventName, std::string subscriberIdentifier)

Deprecated since version 2.4: use the Store instead.

Raised when a new system image was downloaded and can be flashed upon next reboot.

ALValue PackageInfoStatus

The ALValue PackageInfoStatus is an array of n-pair (key, value).

In order to exchange this object with other modules, the PackageInfoStatus object can be represented as an ALValue with the following structure:

key value type default value
“uuid” string “”
“version” string “”
“onlineVersion” string “”
“status” int 0
“percent” int -1 (not implemented)
“size” int 0 (in ko)
“status” can take 4 values:
  • 0: PackageStatus_None
  • 1: PackageStatus_Updated
  • 2: PackageStatus_Downloading
  • 3: PackageStatus_ToBeUpdate

Empty values will take default value.