Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FunctionsParametersReturn ValueDescription
subscribeToPosition

PositionCallback _callback : a callback function of PositionCallback type

voidregister a callback in order to get the current position of the Reeti
subscribeToLedColorLedColorCallback _callback : a callback function of LedColorCallback typevoidregister a callback in order to get the current led Color of the Reeti
subscribeToIsSpeakingSpeakingCallback _callback : a callback function of SpeakingCallback typevoidregister a callback in order to allow to know if the Reeti is currently speaking
subscribeToBookmarkBookmarkCallback _callback : a callback function of BookmarkCallback typevoidregister a callback in order to allow to know when a bookmark is reached while the Reeti is talking
subscribeToIsPlayingPlayingCallback _callback : a callback function of PlayingCallback typevoidregister a callback in order to allow to know if the Reeti is currently playing a sequence
unsubscribeToPositionvoidvoidunregister the  position callback
unsubscribeToLedColorvoidvoidunregister the led color callback
unsubscribeToIsSpeakingvoidvoidunregister the callback used to know if the reeti is talking
unsubscribeToBookmarkvoidvoidunregister the callback to know when a bookmark is reached
unsubscribeToIsPlayingvoidvoidunregister the callback used to know if the reeti is playing a sequence
neckRotatfloat _pos : a float between 0 and 100voidset the rotation of the Reeti's neck to the desired value
neckPanfloat _pos : a float between 0 and 100voidset the pan of the Reeti's neck to the desired value
neckTiltfloat _pos : a float between 0 and 100voidset the tilt of the Reeti's neck to the desired value
rightLCfloat _pos : a float between 0 and 100voidset the position of the right lips corner of the Reeti to the desired value
leftLCfloat _pos : a float between 0 and 100voidset the position of the left lips corner of the Reeti to the desired value
topLipfloat _pos : a float between 0 and 100voidset the position of the top lip of the Reeti to the desired value
bottomLipfloat _pos : a float between 0 and 100voidset the position of the bottom lip of the Reeti to the desired value
rightEyePanfloat _pos : a float between 0 and 100voidset the pan of the Reeti's right eye to the desired value
rightEyeTiltfloat _pos : a float between 0 and 100voidset the tilt of the Reeti's right eye to the desired value
leftEyePanfloat _pos : a float between 0 and 100voidset the pan of the Reeti's left eye to the desired value
leftEyeTiltfloat _pos : a float between 0 and 100voidset the tilt of the Reeti's right eye to the desired value
rightEyeLidfloat _pos : a float between 0 and 100voidset the position of the Reeti's right eye lid to the desired value
leftEyeLidfloat _pos : a float between 0 and 100voidset the position of the Reeti's left eye lid to the desired value
rightEarfloat _pos : a float between 0 and 100voidset the position of the Reeti's right ear to the desired value
leftEarfloat _pos : a float between 0 and 100voidset the position of the Reeti's left ear to the desired value
setLedColor

Led _led : the led to set between LEFTLED, RIGHTLED and BOTHLED

String _color : the desired color between red, green, light green, blue, dark blue, turquoise, yellow, violet, white, stop

voidset the color of the desired led
setLedRGB

Led _led : the led to set between LEFTLED, RIGHTLED and BOTHLED

float _r : red intensity (between 0 and 1023)

float _g : green intensity (between 0 and 1023)

float _b : blue intensity (between 0 and 1023)

 

voidset the color of the desired led
setPoseAsync

  @param ReetiPosition _position : an instance of ReetiPosition containing the 15 positions

     * @param float  _speed : movement speed (from 10 to 300)

     * @param ServicesCallback _callback : a callback of the ServicesCallback type

 void

set the position of the 15 actuators of the Reeti

 

setPoseAsync 

float _neckRotat_neckRotat : neck rotation position (from 0 to 100)

     * @param float _neckPan : neck pan position (from 0 to 100)  

  * @param float _neckTilt : neck tilt position (from 0 to 100)

     * @param float _rightLC : right lips corner position (from 0 to 100)  

  * @param float _leftLC : left lips corner position (from 0 to 100)

     * @param float _topLip : top lip position (from 0 to 100)  

  * @param float _bottomLip : bottom lip position (from 0 to 100)

     * @param float _rightEyePan : right eye pan position  (from 0 to 100)

     * @param float _rightEyeTilt : right eye tilt position (from 0 to 100)

     * @param float _leftEyePan : left eye pan position (from 0 to 100)  

  * @param float _leftEyeTilt : left eye tilt position (from 0 to 100)

     * @param float _rightEyeLid : right eye lid position (from 0 to 100)  

  * @param float _leftEyeLid : left eye lid position (from 0 to 100)

     * @param float _rightEar : right ear position (from 0 to 100)  

  * @param float _leftEar : left ear position(from 0 to 100)

     * @param float _speed : movement speed (from 10 to 300)

     * @param ServicesCallback _callback : a callback function of ServicesCallback type

void

set the position of the 15 actuators of the Reeti

 

takePictureAsync 

     * @param Camera _cam: the camera to use , RIGHTCAM or LEFTCAM

     * @param String _filename : the output filename

     * @param ServicesCallback _callback : a callback function of ServicesCallback type

voidtake a picture with one of the reeti's camera and save it under /home/reeti/Pictures
recordVideoAsync 

     * @param Camera _cam : the camera to use , RIGHTCAM or LEFTCAM

     * @param String _filename : the output filename

     * @param ServicesCallback _callback : a callback function of ServicesCallback type

voidrecord a video with one of the reeti's camera and save it under /home/reeti/Videos 
stopRecordAsync 

     * @param _cam : the camera to use , RIGHTCAM or LEFTCAM

     * @param _callback : a callback function of ServicesCallback type

void stop the recording of the vidéo
sayAsync

_speech : the text to say

     * @param _callback : a callback function of ServicesCallback type

 
void  make the reeti talk
sayWithSynchroAsync 

_speech : the text to say

     * @param _callback : a callback function of ServicesCallback type

void make the reeti talk and move its lips
stopSpeechAsync _callback : a callback function of ServicesCallback type voidmake the reeti stop talking 
playSequenceAsync

_sequence : the sequence file to play

     * @param _callback : a callback function of ServicesCallback type

void make the reeti play the chosen sequence
playPoseAsync

_pose : the pose file to play

     * @param _callback : a callback function of ServicesCallback type

void make the reeti play the chosen pose
isConnected   void

returns true if connected

returns false if not

check if the connection is still available

 

See the Samples in order to get more information about using the C++ API.