![]() |
Beaming Scene Service
2.0
RakNet wrapper for managing data communications between multiple Beaming clients
|
Go to the source code of this file.
Functions | |
int | startclient (char *server_address, int server_port, char *client, char *clienttype, char *config, int viewer, int reliability, int priority, int interval_ms) |
void | check () |
void | createNode (char *id) |
int | addRocketBoxAvatar (char *avatar_id, char *avatar_cfg) |
void | addNode (char *id, char node_type[]) |
void | addChildNode (char *id, char *parent_id, char node_type[]) |
int | deleteRocketBoxAvatar (char *avatar_id) |
Deletes all 123 nodes for the specified RocketBox AVATAR id. | |
void | removeNode (char *id, char node_type[]) |
use removeNode() to remove a specific node | |
int | setAvatarName (char *avatar_id, char *firstname, char *lastname) |
sets the firstname and lastname for the avatar created with addRocketBoxAvatar | |
int | updateNodes (char *id, float x, float y, float z, float rx, float ry, float rz, float w) |
int | updateRocketBoxAvatar (char *avatar_id, char *node_id, float x, float y, float z, float rx, float ry, float rz, float w) |
int | updateAvatarNodes (char *id, float x, float y, float z, float rx, float ry, float rz, float w) |
int | updateGenericNodes (char *id, void *pdata, int psize) |
updateGenericNodes updates a shared generic data and its size | |
int | updateFacialNodes (char *id, bool blink, float smile, float frown, float o, float e, float p) |
updateFacialNodes(node_id, bool, 5 floats) updates the data for the FACIAL nodes that you created. | |
int | updateEmotionNodes (char *id, double valence, double arousal, double misc) |
updateEmotionNodes(node_id, 3 doubles) updates the data for the EMOTION nodes that you created. | |
int | updateTactileNodes (char *id, double duration, float intensity, float temperature) |
updateTactileNodes(node_id, 1 float, 2 doubles) updates the data for the TACTILE nodes that you created. | |
int | updateRobotNodes (char *id, int type, int details, float freespace, float x, float y, float z, float rx, float ry, float rz, float w, float time_remain, int contact_type) |
updateRobotNodes(node_id, 3 integers and 9 floats) updates the data for the ROBOT nodes that you created. | |
int | updateAudioNodes (char *id, char *host, int port, char *file_url, char *config) |
updateAudioNodes(node_id, 3 strings and 1 integer) updates the data for the AUDIO nodes that you created. | |
int | updateVideoNodes (char *id, char *host, int port, char *file_url, int frame_width, int frame_height, double bandwidth, float *camera_calibration1, float *camera_calibration2) |
updateVideoNodes(node_id, 2 strings, 3 integers and 1 double and 2 matrices) updates the data for the VIDEO nodes that you created. 3x3 camera_calibration1 matrix = float[9]. 4x4 camera_calibration2 matrix = float[16] | |
int | updateObjectNodes (char *id, char *host, int port, char *file_url, float x, float y, float z, float rx, float ry, float rz, float w) |
updateObjectNodes(node_id, 2 strings, 1 integer and 7 floats) updates the data for the OBJECT nodes that you created. | |
int | updatePointCloudNodes (char *id, char *host, int port, char *file_url, int size, double bandwidth, bool RGB_flag, int quality) |
updatePointCloudNodes(node_id, 2 strings, 3 integers, 1 double and 1 boolean) updates the data for the POINTCLOUD nodes that you created. | |
int | getPeersInfo (char *peers_info) |
int | getMyGUID (char *mGUID) |
returns the GUID of your client | |
void | getIPinfo (char strid[], char *ipinfo) |
returns the ip address and port of the specified GUID | |
int | getPeersID (char *peers_info) |
int | getNodesInfo (char peer_guid[], char *nodes_info) |
void | getAvatarName (char strid[], char avatar_id[], char *firstname, char *lastname) |
gets the firstname and lastname for the specified avatar | |
int | getAvatarData (char strid[], char avatar_id[], char *node_ids, float *fa) |
int | getFacialData (char strid[], char *node_ids, bool *blink, float *smile, float *frown, float *o, float *e, float *p) |
getFacialData(guid, node_id, bool, 5 floats) Gets the FACIAL data for the specified client/peer. | |
int | getEmotionData (char strid[], char *node_ids, double *valence, double *arousal, double *misc) |
getEmotionData(guid, node_id, 3 doubles) Gets the EMOTION data for the specified client/peer. | |
int | getTactileData (char strid[], char *node_ids, double *duration, float *intensity, float *temperature) |
getTactileData(guid, node_id, 1 float, 2 doubles) Gets the TACTILE data for the specified client/peer. | |
int | getRobotData (char strid[], char *node_ids, int *type, int *details, float *freespace, float *fa, float *time_remain, int *contact_type) |
int | getAudioData (char strid[], char *node_ids, char *host, int *port, char *file_url, char *config) |
getAudioData(guid, node_id, 3 strings and 1 integer) Gets the AUDIO data for the specified client/peer. | |
int | getVideoData (char strid[], char *node_ids, char *host, int *port, char *file_url, int *frame_width, int *frame_height, double *bandwidth, float *camera_calibration1, float *camera_calibration2) |
getVideoData(guid, node_id, 2 strings, 3 integers 1 double and 2 matrices) Gets the VIDEO data for the specified client/peer. | |
int | getObjectData (char strid[], char *node_ids, char *host, int *port, char *file_url, float *fa) |
getObjectData(guid, node_id, 2 strings, 1 integer and 7 floats) Gets the OBJECT data for the specified client/peer. | |
int | getPointCloudData (char strid[], char *node_ids, char *host, int *port, char *file_url, int *size, double *bandwidth, bool *RGB_flag, int *quality) |
getPointCloudData(guid, node_id, 2 strings, 2 integers, 1 double and 1 boolean) Gets the POINTCLOUD data for the specified client/peer. | |
bool | getAvatarSpecificData (char strid[], char avatar_id[], char node_id[], float *fa) |
bool | getAvatarSpecificGlobalData (char strid[], char avatar_id[], char node_id[], float *fa) |
bool | getFacialSpecificData (char strid[], char node_id[], bool *blink, float *smile, float *frown, float *o, float *e, float *p) |
Returns FACIAL data of specified nodes for the specified client peer. | |
bool | getEmotionSpecificData (char strid[], char node_id[], double *valence, double *arousal, double *misc) |
Returns EMOTION data of specified nodes for the specified client peer. | |
bool | getTactileSpecificData (char strid[], char node_id[], double *duration, float *intensity, float *temperature) |
Returns TACTILE data of specified nodes for the specified client peer. | |
bool | getRobotSpecificData (char strid[], char node_id[], int *type, int *details, float *freespace, float *fa, float *time_remain, int *contact_type) |
Returns ROBOT data of specified nodes for the specified client peer. | |
bool | getAudioSpecificData (char strid[], char node_id[], char *host, int *port, char *file_url, char *config) |
Returns AUDIO data of specified nodes for the specified client peer. | |
bool | getVideoSpecificData (char strid[], char node_id[], char *host, int *port, char *file_url, int *frame_width, int *frame_height, double *bandwidth, float *camera_calibration1, float *camera_calibration2) |
Returns VIDEO data of specified nodes for the specified client peer. | |
bool | getObjectSpecificData (char strid[], char node_id[], char *host, int *port, char *file_url, float *fa) |
Returns OBJECT data of specified nodes for the specified client peer. | |
bool | getPointCloudSpecificData (char strid[], char node_id[], char *host, int *port, char *file_url, int *size, double *bandwidth, bool *RGB_flag, int *quality) |
Returns POINTCLOUD data of specified nodes for the specified client peer. | |
bool | getGenericData (char strid[], char generic_id[], void *pdata, int *psize) |
getGenericData returns a pointer to a shared generic data and its size | |
int | checkStatus (char *idstr, char *mytype, char *name, char *myconfig) |
int | fetch (char strid[], float *fa) |
int | fetch2 (char strid[], char *fa) |
void | removeAllNodes () |
use removeAllNodes() and stop() on exit | |
void | stop () |
use removeAllNodes() and stop() on exit | |
void | exitlibrary () |
use exitlibrary() on exit | |
Variables | |
char | ch |
SocketDescriptor | sd |
char | ip [128] |
Packet * | packet |
bool | isconnected = false |
bool | connection_lost = false |
std::map< std::string, BeamingDataType > | node_type_map |
std::map< std::string, BeamingAvatarJointReplica * > | AvatarNodeMap |
std::map< std::string, BeamingEmotionReplica * > | EmotionNodeMap |
std::map< std::string, BeamingFacialReplica * > | FacialNodeMap |
std::map< std::string, BeamingTactileReplica * > | TactileNodeMap |
std::map< std::string, BeamingRobotReplica * > | RobotNodeMap |
std::map< std::string, BeamingVideoReplica * > | VideoNodeMap |
std::map< std::string, BeamingObjectReplica * > | ObjectNodeMap |
std::map< std::string, BeamingAudioReplica * > | AudioNodeMap |
std::map< std::string, BeamingPointCloudReplica * > | PointCloudNodeMap |
std::map< std::string, BeamingGenericReplica * > | GenericNodeMap |
std::string | myid |
std::string | my_config |
std::string | client_type |
char | client_name [128] |
bool | viewing_only = false |
NetworkIDManager | networkIdManager |
ReplicaManager3 requires NetworkIDManager to lookup pointers from numbers. | |
RakPeerInterface * | rakPeer |
Each application has one instance of RakPeerInterface. | |
ReplicaManager3Beaming | replicaManager |
The system that performs most of our functionality for this client. |
void addChildNode | ( | char * | id, |
char * | parent_id, | ||
char | node_type[] | ||
) |
Adds a Node and also sets the parents addNode("LeftEye","Head","AVATAR") adds a left eye node of type AVATAR and attaches it to the head (parent)
Definition at line 410 of file client.cpp.
void addNode | ( | char * | id, |
char | node_type[] | ||
) |
Adds a Node addNode("Head","AVATAR") adds a left eye node of type AVATAR
Definition at line 316 of file client.cpp.
int addRocketBoxAvatar | ( | char * | avatar_id, |
char * | avatar_cfg | ||
) |
Adds a RocketBox AVATAR skeleton (default node ids of 0 to 122 and a Rocketbox cfg file) addRocketBoxAvatar adds 123 AVATAR nodes/joints using the RocketBox hierarchy
Definition at line 174 of file client.cpp.
void check | ( | ) |
Put check() function in a continuous loop somewhere in your code (OnTimer or OnFrame loop). The server regularly pings all clients to ensure they are still live. check also checks for new connections to the server and receives incoming packets.
Definition at line 112 of file client.cpp.
int checkStatus | ( | char * | idstr, |
char * | mytype, | ||
char * | name, | ||
char * | myconfig | ||
) |
checkStatus and fetch works together checkStatus checks if there's a new client and returns the details of the new clients the first parameter is the id of the new client which you should store in your code NOTE: this functions informs you of new clients which is then deleted from buffer once accessed, hence housekeeping is required
Definition at line 1825 of file client.cpp.
void createNode | ( | char * | id | ) |
createNode for each data you want to send e.g. for an avatar, you would create node for:
Definition at line 163 of file client.cpp.
int deleteRocketBoxAvatar | ( | char * | avatar_id | ) |
Deletes all 123 nodes for the specified RocketBox AVATAR id.
Definition at line 425 of file client.cpp.
void exitlibrary | ( | ) |
use exitlibrary() on exit
Definition at line 1974 of file client.cpp.
int fetch | ( | char | strid[], |
float * | fa | ||
) |
Fetches the node-ids, current position and orientation data for all connected clients Assumes node-id is a number
Definition at line 1847 of file client.cpp.
int fetch2 | ( | char | strid[], |
char * | fa | ||
) |
Fetches the node-ids, current position and orientation data for all connected clients Assumes node-id is a number
Definition at line 1897 of file client.cpp.
int getAudioData | ( | char | strid[], |
char * | node_ids, | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
char * | config | ||
) |
getAudioData(guid, node_id, 3 strings and 1 integer) Gets the AUDIO data for the specified client/peer.
Definition at line 1257 of file client.cpp.
bool getAudioSpecificData | ( | char | strid[], |
char | node_id[], | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
char * | config | ||
) |
Returns AUDIO data of specified nodes for the specified client peer.
Definition at line 1653 of file client.cpp.
int getAvatarData | ( | char | strid[], |
char | avatar_id[], | ||
char * | node_ids, | ||
float * | fa | ||
) |
getAvatarData(guid, avatar_id, node_id, 7 floats) Gets AVATAR data for the specified avatar added by client/peer (strid). Similar to deprecated fetch function but it also gets the node-ids separately as string instead String node_ids contain the following info: {AVATARJOINTID1,AVATARJOINTID2,AVATARJOINTID3,...} Float fa returns data for 123 nodes (i.e. 123*7 floats) Call getPeersID to get guid and getNodesInfo to get avatar_id i.e. nodename
Definition at line 1071 of file client.cpp.
void getAvatarName | ( | char | strid[], |
char | avatar_id[], | ||
char * | firstname, | ||
char * | lastname | ||
) |
gets the firstname and lastname for the specified avatar
Definition at line 1041 of file client.cpp.
bool getAvatarSpecificData | ( | char | strid[], |
char | avatar_id[], | ||
char | node_id[], | ||
float * | fa | ||
) |
Returns AVATAR data of specified joint/node for the specified avatar added by client peer (strid) Call getPeersID to get guid and getNodesInfo to get avatar_id i.e. nodename
Definition at line 1427 of file client.cpp.
bool getAvatarSpecificGlobalData | ( | char | strid[], |
char | avatar_id[], | ||
char | node_id[], | ||
float * | fa | ||
) |
Returns AVATAR data of specified joint/node for the specified avatar added by client peer (strid) in WORLD CO-ORDINATES Call getPeersID to get guid and getNodesInfo to get avatar_id i.e. nodename
Definition at line 1461 of file client.cpp.
int getEmotionData | ( | char | strid[], |
char * | node_ids, | ||
double * | valence, | ||
double * | arousal, | ||
double * | misc | ||
) |
getEmotionData(guid, node_id, 3 doubles) Gets the EMOTION data for the specified client/peer.
Definition at line 1148 of file client.cpp.
bool getEmotionSpecificData | ( | char | strid[], |
char | node_id[], | ||
double * | valence, | ||
double * | arousal, | ||
double * | misc | ||
) |
Returns EMOTION data of specified nodes for the specified client peer.
Definition at line 1556 of file client.cpp.
int getFacialData | ( | char | strid[], |
char * | node_ids, | ||
bool * | blink, | ||
float * | smile, | ||
float * | frown, | ||
float * | o, | ||
float * | e, | ||
float * | p | ||
) |
getFacialData(guid, node_id, bool, 5 floats) Gets the FACIAL data for the specified client/peer.
Definition at line 1112 of file client.cpp.
bool getFacialSpecificData | ( | char | strid[], |
char | node_id[], | ||
bool * | blink, | ||
float * | smile, | ||
float * | frown, | ||
float * | o, | ||
float * | e, | ||
float * | p | ||
) |
Returns FACIAL data of specified nodes for the specified client peer.
Definition at line 1523 of file client.cpp.
bool getGenericData | ( | char | strid[], |
char | generic_id[], | ||
void * | pdata, | ||
int * | psize | ||
) |
getGenericData returns a pointer to a shared generic data and its size
Definition at line 1789 of file client.cpp.
void getIPinfo | ( | char | strid[], |
char * | ipinfo | ||
) |
returns the ip address and port of the specified GUID
Definition at line 960 of file client.cpp.
int getMyGUID | ( | char * | mGUID | ) |
returns the GUID of your client
Definition at line 949 of file client.cpp.
int getNodesInfo | ( | char | peer_guid[], |
char * | nodes_info | ||
) |
returns the number of nodes that was created by the specified guid: {NODENAME1,NODEID1,NODETYPE1,NODECFG1;NODENAME2,NODEID2,NODETYPE2,NODECFG2;...} e.g {"avatar","0","AVATAR";"clientname","object1","OBJECT";...} where TYPES: enum BeamingDataTypes NOTE: In the case of AVATAR data type, NODENAME - "avatar" is the avatar_id that was defined in addRocketBoxAvatar while NODEID is always "0" (root) For all other data types, NODENAME - clientname is defined by clients in startclient
Definition at line 1012 of file client.cpp.
int getObjectData | ( | char | strid[], |
char * | node_ids, | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
float * | fa | ||
) |
getObjectData(guid, node_id, 2 strings, 1 integer and 7 floats) Gets the OBJECT data for the specified client/peer.
Definition at line 1341 of file client.cpp.
bool getObjectSpecificData | ( | char | strid[], |
char | node_id[], | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
float * | fa | ||
) |
Returns OBJECT data of specified nodes for the specified client peer.
Definition at line 1719 of file client.cpp.
int getPeersID | ( | char * | peers_info | ) |
returns how many peers are actually connected with just the ID info: {GUID1;GUID2;...} e.g {"0"; "1";"2";...}
Definition at line 995 of file client.cpp.
int getPeersInfo | ( | char * | peers_info | ) |
returns how many peers are actually connected and the following infos: {GUID1,,CLIENTNAME1CLIENTTYPE1,CLIENTCONFIG1;GUID2,CLIENTNAME2,CLIENTTYPE2,CLIENTCONFIG2;...} e.g {"0","Luigi","VISITOR","m01.cfg";"1","Paolo","VISITOR","m02.cfg";"2","Eduardo","SPECTATOR","m03.cfg";} where TYPES: enum BeamingDataTypes.
Definition at line 932 of file client.cpp.
int getPointCloudData | ( | char | strid[], |
char * | node_ids, | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
int * | size, | ||
double * | bandwidth, | ||
bool * | RGB_flag, | ||
int * | quality | ||
) |
getPointCloudData(guid, node_id, 2 strings, 2 integers, 1 double and 1 boolean) Gets the POINTCLOUD data for the specified client/peer.
Definition at line 1386 of file client.cpp.
bool getPointCloudSpecificData | ( | char | strid[], |
char | node_id[], | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
int * | size, | ||
double * | bandwidth, | ||
bool * | RGB_flag, | ||
int * | quality | ||
) |
Returns POINTCLOUD data of specified nodes for the specified client peer.
Definition at line 1755 of file client.cpp.
int getRobotData | ( | char | strid[], |
char * | node_ids, | ||
int * | type, | ||
int * | details, | ||
float * | freespace, | ||
float * | fa, | ||
float * | time_remain, | ||
int * | contact_type | ||
) |
Definition at line 1214 of file client.cpp.
bool getRobotSpecificData | ( | char | strid[], |
char | node_id[], | ||
int * | type, | ||
int * | details, | ||
float * | freespace, | ||
float * | fa, | ||
float * | time_remain, | ||
int * | contact_type | ||
) |
Returns ROBOT data of specified nodes for the specified client peer.
Definition at line 1613 of file client.cpp.
int getTactileData | ( | char | strid[], |
char * | node_ids, | ||
double * | duration, | ||
float * | intensity, | ||
float * | temperature | ||
) |
getTactileData(guid, node_id, 1 float, 2 doubles) Gets the TACTILE data for the specified client/peer.
Definition at line 1181 of file client.cpp.
bool getTactileSpecificData | ( | char | strid[], |
char | node_id[], | ||
double * | duration, | ||
float * | intensity, | ||
float * | temperature | ||
) |
Returns TACTILE data of specified nodes for the specified client peer.
Definition at line 1584 of file client.cpp.
int getVideoData | ( | char | strid[], |
char * | node_ids, | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
int * | frame_width, | ||
int * | frame_height, | ||
double * | bandwidth, | ||
float * | camera_calibration1, | ||
float * | camera_calibration2 | ||
) |
getVideoData(guid, node_id, 2 strings, 3 integers 1 double and 2 matrices) Gets the VIDEO data for the specified client/peer.
Definition at line 1297 of file client.cpp.
bool getVideoSpecificData | ( | char | strid[], |
char | node_id[], | ||
char * | host, | ||
int * | port, | ||
char * | file_url, | ||
int * | frame_width, | ||
int * | frame_height, | ||
double * | bandwidth, | ||
float * | camera_calibration1, | ||
float * | camera_calibration2 | ||
) |
Returns VIDEO data of specified nodes for the specified client peer.
Definition at line 1683 of file client.cpp.
void removeAllNodes | ( | ) |
use removeAllNodes() and stop() on exit
Definition at line 1932 of file client.cpp.
void removeNode | ( | char * | id, |
char | node_type[] | ||
) |
use removeNode() to remove a specific node
Definition at line 449 of file client.cpp.
int setAvatarName | ( | char * | avatar_id, |
char * | firstname, | ||
char * | lastname | ||
) |
sets the firstname and lastname for the avatar created with addRocketBoxAvatar
Definition at line 586 of file client.cpp.
int startclient | ( | char * | server_address, |
int | server_port, | ||
char * | client, | ||
char * | clienttype, | ||
char * | config, | ||
int | viewer, | ||
int | reliability = 2 , |
||
int | priority = 1 , |
||
int | interval_ms = 30 |
||
) |
Call the start function to initialise a client connection
Definition at line 52 of file client.cpp.
void stop | ( | ) |
use removeAllNodes() and stop() on exit
Definition at line 1962 of file client.cpp.
int updateAudioNodes | ( | char * | id, |
char * | host, | ||
int | port, | ||
char * | file_url, | ||
char * | config | ||
) |
updateAudioNodes(node_id, 3 strings and 1 integer) updates the data for the AUDIO nodes that you created.
Definition at line 810 of file client.cpp.
int updateAvatarNodes | ( | char * | id, |
float | x, | ||
float | y, | ||
float | z, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | w | ||
) |
updateAvatarNodes(node_id, 7 floats) updates the data for the AVATAR nodes that you created. updateAvatarNodes expects three XYZ postions and four XYZW quaternion orientations as floats.
Definition at line 633 of file client.cpp.
int updateEmotionNodes | ( | char * | id, |
double | valence, | ||
double | arousal, | ||
double | misc | ||
) |
updateEmotionNodes(node_id, 3 doubles) updates the data for the EMOTION nodes that you created.
Definition at line 725 of file client.cpp.
int updateFacialNodes | ( | char * | id, |
bool | blink, | ||
float | smile, | ||
float | frown, | ||
float | o, | ||
float | e, | ||
float | p | ||
) |
updateFacialNodes(node_id, bool, 5 floats) updates the data for the FACIAL nodes that you created.
Definition at line 696 of file client.cpp.
int updateGenericNodes | ( | char * | id, |
void * | pdata, | ||
int | psize | ||
) |
updateGenericNodes updates a shared generic data and its size
Definition at line 664 of file client.cpp.
int updateNodes | ( | char * | id, |
float | x, | ||
float | y, | ||
float | z, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | w | ||
) |
Simply calls updateAvatarNodes updateNodes(node_id, 7 floats) updates the data for the AVATAR nodes that you created. updateNodes expects three XYZ postions and four XYZW quaternion orientations as floats.
Definition at line 609 of file client.cpp.
int updateObjectNodes | ( | char * | id, |
char * | host, | ||
int | port, | ||
char * | file_url, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | w | ||
) |
updateObjectNodes(node_id, 2 strings, 1 integer and 7 floats) updates the data for the OBJECT nodes that you created.
Definition at line 870 of file client.cpp.
int updatePointCloudNodes | ( | char * | id, |
char * | host, | ||
int | port, | ||
char * | file_url, | ||
int | size, | ||
double | bandwidth, | ||
bool | RGB_flag, | ||
int | quality | ||
) |
updatePointCloudNodes(node_id, 2 strings, 3 integers, 1 double and 1 boolean) updates the data for the POINTCLOUD nodes that you created.
Definition at line 903 of file client.cpp.
int updateRobotNodes | ( | char * | id, |
int | type, | ||
int | details, | ||
float | freespace, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | w, | ||
float | time_remain, | ||
int | contact_type | ||
) |
updateRobotNodes(node_id, 3 integers and 9 floats) updates the data for the ROBOT nodes that you created.
Definition at line 775 of file client.cpp.
int updateRocketBoxAvatar | ( | char * | avatar_id, |
char * | node_id, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | rx, | ||
float | ry, | ||
float | rz, | ||
float | w | ||
) |
updateRocketBoxAvatar(avatar_id, node_id, 7 floats) updates the data for the Rocketbox AVATAR nodes that you created. updateRocketBoxAvatar expects three XYZ postions and four XYZW quaternion orientations as floats. you should specify the avatar_id you added and respective node_id, which can be from 0 to 123. see sample avatar config file.
Definition at line 621 of file client.cpp.
int updateTactileNodes | ( | char * | id, |
double | duration, | ||
float | intensity, | ||
float | temperature | ||
) |
updateTactileNodes(node_id, 1 float, 2 doubles) updates the data for the TACTILE nodes that you created.
Definition at line 750 of file client.cpp.
int updateVideoNodes | ( | char * | id, |
char * | host, | ||
int | port, | ||
char * | file_url, | ||
int | frame_width, | ||
int | frame_height, | ||
double | bandwidth, | ||
float * | camera_calibration1, | ||
float * | camera_calibration2 | ||
) |
updateVideoNodes(node_id, 2 strings, 3 integers and 1 double and 2 matrices) updates the data for the VIDEO nodes that you created. 3x3 camera_calibration1 matrix = float[9]. 4x4 camera_calibration2 matrix = float[16]
Definition at line 836 of file client.cpp.
std::map<std::string, BeamingAudioReplica*> AudioNodeMap |
Definition at line 34 of file client.cpp.
std::map<std::string, BeamingAvatarJointReplica*> AvatarNodeMap |
Definition at line 27 of file client.cpp.
char ch |
Definition at line 17 of file client.cpp.
char client_name[128] |
Definition at line 38 of file client.cpp.
std::string client_type |
Definition at line 37 of file client.cpp.
bool connection_lost = false |
Definition at line 25 of file client.cpp.
std::map<std::string, BeamingEmotionReplica*> EmotionNodeMap |
Definition at line 28 of file client.cpp.
std::map<std::string, BeamingFacialReplica*> FacialNodeMap |
Definition at line 29 of file client.cpp.
std::map<std::string, BeamingGenericReplica*> GenericNodeMap |
Definition at line 36 of file client.cpp.
char ip[128] |
Definition at line 21 of file client.cpp.
bool isconnected = false |
Definition at line 24 of file client.cpp.
std::string my_config |
Definition at line 37 of file client.cpp.
std::string myid |
Definition at line 37 of file client.cpp.
NetworkIDManager networkIdManager |
ReplicaManager3 requires NetworkIDManager to lookup pointers from numbers.
Definition at line 42 of file client.cpp.
std::map<std::string, BeamingDataType> node_type_map |
Definition at line 26 of file client.cpp.
std::map<std::string, BeamingObjectReplica*> ObjectNodeMap |
Definition at line 33 of file client.cpp.
Packet* packet |
Definition at line 23 of file client.cpp.
std::map<std::string, BeamingPointCloudReplica*> PointCloudNodeMap |
Definition at line 35 of file client.cpp.
RakPeerInterface* rakPeer |
Each application has one instance of RakPeerInterface.
Definition at line 44 of file client.cpp.
The system that performs most of our functionality for this client.
Definition at line 46 of file client.cpp.
std::map<std::string, BeamingRobotReplica*> RobotNodeMap |
Definition at line 31 of file client.cpp.
SocketDescriptor sd |
Definition at line 20 of file client.cpp.
std::map<std::string, BeamingTactileReplica*> TactileNodeMap |
Definition at line 30 of file client.cpp.
std::map<std::string, BeamingVideoReplica*> VideoNodeMap |
Definition at line 32 of file client.cpp.
bool viewing_only = false |
Definition at line 39 of file client.cpp.