Functions and Javascript libraries

Posted 5 months by Clement Portales

Post a topic
Un Solved
C
Clement Portales Admin

Dear NAO programmers, 


If you are looking to understand which functions are contained in which libraries, here are a few pointers : 


Softbank Robotics' Developer Center has a section for NAO. In this section, the  Java doc page has a link to here with full doc.


The javascript doc page is less direct about the inner details. It introduces how to setup the javascript and methods at the surface level, and then for all the robot API that allows you to access, it tells you to use the service object to reference the same style API as would be used in Python/C++ and provides this link for that.  


 In summary :

  1. The NAOqi API is usable through C++/Python/JavaScript/Java, each of those language will have some different tooling at the top level to access the API.
  2. From there, the normal NAOqi API reference is always the place to go, for the actual functions of robot functionalities: https://developer.softbankrobotics.com/nao6/naoqi-developer-guide/naoqi-apis


For javascript specifically, it is also possible to use a small utility library that takes care of most of the boilerplate to make it easier to directly call any NAOqi service: https://github.com/pepperhacking/studiotoolkit/blob/master/doc/js_robotutils.md 


Hope this is helpful !

0 Votes


0 Comments

Login or Sign up to post a comment