The coopobject proxy provides an interface to a networked Cooperating Object (Wireless Sensor Network, Networked Robot, etc.) More...

Detailed Description

The coopobject proxy provides an interface to a networked Cooperating Object (Wireless Sensor Network, Networked Robot, etc.)

Classes

struct  playerc_coopobject_t
 Note: the structure describing the Cooperating Object's data packet is declared in Player. More...
 

Functions

PLAYERC_EXPORT playerc_coopobject_tplayerc_coopobject_create (playerc_client_t *client, int index)
 Create a cooperating object proxy. More...
 
PLAYERC_EXPORT void playerc_coopobject_destroy (playerc_coopobject_t *device)
 Destroy a cooperating object proxy. More...
 
PLAYERC_EXPORT int playerc_coopobject_subscribe (playerc_coopobject_t *device, int access)
 Subscribe to the cooperating object device. More...
 
PLAYERC_EXPORT int playerc_coopobject_unsubscribe (playerc_coopobject_t *device)
 Un-subscribe from the cooperating object device. More...
 
PLAYERC_EXPORT int playerc_coopobject_send_position (playerc_coopobject_t *device, uint16_t node_id, uint16_t source_id, player_pose2d_t pos, uint8_t status)
 Send data to cooperating object. More...
 
PLAYERC_EXPORT int playerc_coopobject_send_data (playerc_coopobject_t *device, int node_id, int source_id, int data_type, int data_size, unsigned char *extradata)
 Send data to cooperating object. More...
 
PLAYERC_EXPORT int playerc_coopobject_send_cmd (playerc_coopobject_t *device, int node_id, int source_id, int cmd, int parameters_size, unsigned char *parameters)
 Send command to cooperating object. More...
 
PLAYERC_EXPORT int playerc_coopobject_send_req (playerc_coopobject_t *device, int node_id, int source_id, int req, int parameters_size, unsigned char *parameters)
 Send request to cooperating object. More...
 

Function Documentation

◆ playerc_coopobject_create()

PLAYERC_EXPORT playerc_coopobject_t* playerc_coopobject_create ( playerc_client_t client,
int  index 
)

Create a cooperating object proxy.

◆ playerc_coopobject_destroy()

PLAYERC_EXPORT void playerc_coopobject_destroy ( playerc_coopobject_t device)

Destroy a cooperating object proxy.

◆ playerc_coopobject_send_cmd()

PLAYERC_EXPORT int playerc_coopobject_send_cmd ( playerc_coopobject_t device,
int  node_id,
int  source_id,
int  cmd,
int  parameters_size,
unsigned char *  parameters 
)

Send command to cooperating object.

◆ playerc_coopobject_send_data()

PLAYERC_EXPORT int playerc_coopobject_send_data ( playerc_coopobject_t device,
int  node_id,
int  source_id,
int  data_type,
int  data_size,
unsigned char *  extradata 
)

Send data to cooperating object.

◆ playerc_coopobject_send_position()

PLAYERC_EXPORT int playerc_coopobject_send_position ( playerc_coopobject_t device,
uint16_t  node_id,
uint16_t  source_id,
player_pose2d_t  pos,
uint8_t  status 
)

Send data to cooperating object.

◆ playerc_coopobject_send_req()

PLAYERC_EXPORT int playerc_coopobject_send_req ( playerc_coopobject_t device,
int  node_id,
int  source_id,
int  req,
int  parameters_size,
unsigned char *  parameters 
)

Send request to cooperating object.

◆ playerc_coopobject_subscribe()

PLAYERC_EXPORT int playerc_coopobject_subscribe ( playerc_coopobject_t device,
int  access 
)

Subscribe to the cooperating object device.

◆ playerc_coopobject_unsubscribe()

PLAYERC_EXPORT int playerc_coopobject_unsubscribe ( playerc_coopobject_t device)

Un-subscribe from the cooperating object device.