Detailed Description

The gripper proxy provides an interface to the gripper

Classes

struct  playerc_gripper_t
 Gripper device data. More...
 

Functions

PLAYERC_EXPORT playerc_gripper_tplayerc_gripper_create (playerc_client_t *client, int index)
 Create a gripper device proxy.
 
PLAYERC_EXPORT void playerc_gripper_destroy (playerc_gripper_t *device)
 Destroy a gripper device proxy.
 
PLAYERC_EXPORT int playerc_gripper_subscribe (playerc_gripper_t *device, int access)
 Subscribe to the gripper device.
 
PLAYERC_EXPORT int playerc_gripper_unsubscribe (playerc_gripper_t *device)
 Un-subscribe from the gripper device.
 
PLAYERC_EXPORT int playerc_gripper_open_cmd (playerc_gripper_t *device)
 Command the gripper to open.
 
PLAYERC_EXPORT int playerc_gripper_close_cmd (playerc_gripper_t *device)
 Command the gripper to close.
 
PLAYERC_EXPORT int playerc_gripper_stop_cmd (playerc_gripper_t *device)
 Command the gripper to stop.
 
PLAYERC_EXPORT int playerc_gripper_store_cmd (playerc_gripper_t *device)
 Command the gripper to store.
 
PLAYERC_EXPORT int playerc_gripper_retrieve_cmd (playerc_gripper_t *device)
 Command the gripper to retrieve.
 
PLAYERC_EXPORT void playerc_gripper_printout (playerc_gripper_t *device, const char *prefix)
 Print a human-readable version of the gripper state.
 
PLAYERC_EXPORT int playerc_gripper_get_geom (playerc_gripper_t *device)
 Get the gripper geometry.
 

Function Documentation

◆ playerc_gripper_get_geom()

PLAYERC_EXPORT int playerc_gripper_get_geom ( playerc_gripper_t * device)

Get the gripper geometry.

This writes the result into the proxy rather than returning it to the caller.

◆ playerc_gripper_printout()

PLAYERC_EXPORT void playerc_gripper_printout ( playerc_gripper_t * device,
const char * prefix )

Print a human-readable version of the gripper state.

If set, the string <prefix> is printed before the state string.