|
Detailed Description
The client object is used by Gazebo clients to establish a connection with a running server. See the Using libgazebo for an overview.
Define Documentation
#define GZ_SEM_KEY 0x135135FA |
|
|
Semaphore key used by Gazebo.
|
#define GZ_CLIENT_ID_USER_FIRST 0x00 |
|
|
Reserved client IDs.
User programs may use numbers in the range GZ_SEM_NUM_USER to GZ_SEM_NUM_USER_LAST, inclusive. All other semaphore numbers are reserved. |
#define GZ_CLIENT_ID_USER_LAST 0x07 |
|
#define GZ_CLIENT_ID_WXGAZEBO 0x08 |
|
#define GZ_CLIENT_ID_PLAYER 0x09 |
|
Typedef Documentation
Function Documentation
int gz_client_query |
( |
gz_client_t * |
self, |
|
|
int |
server_id |
|
) |
|
|
|
Test for the presence of the server. - Returns:
- The return value is 0 if the server is present; +1 if the server is not present; -1 if there is an error.
|
int gz_client_connect |
( |
gz_client_t * |
self, |
|
|
int |
server_id |
|
) |
|
|
|
Connect to the server (non-blocking mode).
|
int gz_client_connect_wait |
( |
gz_client_t * |
self, |
|
|
int |
server_id, |
|
|
int |
client_id |
|
) |
|
|
|
Connect to the server (blocking mode).
- Parameters:
-
| self | Pointer to Itself. |
| server_id | Server ID; each server must have a unique id. |
| client_id | Client ID; in blocking mode, each client must have a unique id. |
|
|
Disconnect from the server.
|
|
Wait for new data to be posted (blocking mode).
- Returns:
- Returns 0 on success, -1 on error.
|
|