Search code examples
pythonnao-robotpepper

How can I list all hidden methods for ALTabletService and the other services?


I discovered that there is ALTabletService methods that is not listed on the official Aldebaran ALTabletService API. For example if you initialize: tabletService = self.session().service("ALTabletService") then you can call:

  • tabletService._installApk("path_to_apk")
  • tabletService._uninstallApps()
  • tabletService._stopApk("package_name")
  • tabletService._openSettings()

How can I the list of all "private" methods the AL serices?

I guess I can find the binaries and then I can try to decompile the files, but I suppose there is an easier way to do that.


Solution

  • The easiest is to SSH onto a robot and use qicli - see the doc here.

    For example, try qicli info ALTabletService --show-doc --hidden.

    Note that usually methods are hidden for good reasons, so you should not write code that depends on them; they may disappear in future versions.