Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

You can find here a full description of the functions included in the Reeti API.

Constructors
FunctionsParametersReturn ValueDescription
Reetistring _hostname : IP adress of the reeti to connect tononethe constructor used to instantiate a Reeti object
Functions
FunctionsParametersReturn ValueDescription
subscribeToPosition

_callback : a callback function of PositionCallback type

voidregister a callback in order to get the current position of the Reeti
subscribeToLedColor_callback : a callback function of LedColorCallback typevoidregister a callback in order to get the current led Color of the Reeti
subscribeToIsSpeaking_callback : a callback function of SpeakingCallback typevoidregister a callback in order to allow to know if the Reeti is currently speaking
subscribeToBookmark_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
subscribeToIsPlaying_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
neckRotat_pos : a float between 0 and 100voidset the rotation of the Reeti's neck to the desired value
neckPan_pos : a float between 0 and 100voidset the pan of the Reeti's neck to the desired value
neckTilt_pos : a float between 0 and 100voidset the tilt of the Reeti's neck to the desired value
rightLC_pos : a float between 0 and 100voidset the position of the right lips corner of the Reeti to the desired value
leftLC_pos : a float between 0 and 100voidset the position of the left lips corner of the Reeti to the desired value
topLip_pos : a float between 0 and 100voidset the position of the top lip of the Reeti to the desired value
bottomLip_pos : a float between 0 and 100voidset the position of the bottom lip of the Reeti to the desired value
rightEyePan_pos : a float between 0 and 100voidset the pan of the Reeti's right eye to the desired value
rightEyeTilt_pos : a float between 0 and 100voidset the tilt of the Reeti's right eye to the desired value
leftEyePan_pos : a float between 0 and 100voidset the pan of the Reeti's left eye to the desired value
leftEyeTilt_pos : a float between 0 and 100voidset the tilt of the Reeti's right eye to the desired value
rightEyeLid_pos : a float between 0 and 100voidset the position of the Reeti's right eye lid to the desired value
leftEyeLid_pos : a float between 0 and 100voidset the position of the Reeti's left eye lid to the desired value
rightEar_pos : a float between 0 and 100voidset the position of the Reeti's right ear to the desired value
leftEar_pos : a float between 0 and 100voidset the position of the Reeti's left ear to the desired value
setLedColor

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

_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 : the led to set between LEFTLED, RIGHTLED and BOTHLED

_r : red intensity (between 0 and 1023)

_g : green intensity (between 0 and 1023)

_b : blue intensity (between 0 and 1023)

 

voidset the color of the desired led
setPoseAsync 

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

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

     * @param _callback : a callback of the ServicesCallback type

 void

set the position of the 15 actuators of the Reeti

 

setPoseAsync 

_neckRotat_neckRotat : neck rotation position (from 0 to 100)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * @param _callback : a callback function of ServicesCallback type

void

set the position of the 15 actuators of the Reeti

 

takePictureAsync 

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

     * @param _filename : the output filename

     * @param _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 _cam : the camera to use , RIGHTCAM or LEFTCAM

     * @param _filename : the output filename

     * @param _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 void 
playPoseAsync void 
isConnected   
  • No labels