Skip to end of metadata
Go to start of metadata

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

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

 ReetiPosition _position : an instance of ReetiPosition containing the 15 positions

float  _speed : movement speed (from 10 to 300)

ServicesCallback _callback : a callback of the ServicesCallback type

 void

set the position of the 15 actuators of the Reeti

 

setPoseAsync

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

float _speed : movement speed (from 10 to 300)

ServicesCallback _callback : a callback function of ServicesCallback type

void

set the position of the 15 actuators of the Reeti

 

takePictureAsync

Camera _cam: the camera to use , RIGHTCAM or LEFTCAM

String _filename : the output filename

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

Camera _cam : the camera to use , RIGHTCAM or LEFTCAM

String _filename : the output filename

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

Camera _cam : the camera to use , RIGHTCAM or LEFTCAM

ServicesCallback _callback : a callback function of ServicesCallback type

void stop the recording of the vidéo
sayAsync

String _speech : the text to say

ServicesCallback _callback : a callback function of ServicesCallback type

 
void  make the reeti talk
sayWithSynchroAsync

String _speech : the text to say

ServicesCallback _callback : a callback function of ServicesCallback type

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

String _sequence : the sequence file to play

ServicesCallback _callback : a callback function of ServicesCallback type

voidmake the reeti play the chosen sequence
playPoseAsync

String _pose : the pose file to play

ServicesCallback _callback : a callback function of ServicesCallback type

voidmake the reeti play the chosen pose
isConnectedvoid

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.

  • No labels