simulation
[Device proxies]
Detailed Description
The simulation proxy is used to interact with objects in a simulation.
- Todo:
- write playerc_proxy_simulation description
Classes | |
struct | playerc_simulation_t |
Functions | |
playerc_simulation_t * | playerc_simulation_create (playerc_client_t *client, int index) |
void | playerc_simulation_destroy (playerc_simulation_t *device) |
int | playerc_simulation_subscribe (playerc_simulation_t *device, int access) |
int | playerc_simulation_unsubscribe (playerc_simulation_t *device) |
int | playerc_simulation_set_pose2d (playerc_simulation_t *device, char *name, double gx, double gy, double ga) |
int | playerc_simulation_get_pose2d (playerc_simulation_t *device, char *identifier, double *x, double *y, double *a) |
int | playerc_simulation_set_property_int (playerc_simulation_t *device, char *name, char *property, int value) |
int | playerc_simulation_set_property_double (playerc_simulation_t *device, char *name, char *property, double value) |
int | playerc_simulation_set_property_string (playerc_simulation_t *device, char *name, char *property, char *value) |
Function Documentation
playerc_simulation_t* playerc_simulation_create | ( | playerc_client_t * | client, | |
int | index | |||
) |
Create a new simulation proxy
void playerc_simulation_destroy | ( | playerc_simulation_t * | device | ) |
Destroy a simulation proxy
int playerc_simulation_get_pose2d | ( | playerc_simulation_t * | device, | |
char * | identifier, | |||
double * | x, | |||
double * | y, | |||
double * | a | |||
) |
Get the 2D pose of a named simulation object
int playerc_simulation_set_pose2d | ( | playerc_simulation_t * | device, | |
char * | name, | |||
double | gx, | |||
double | gy, | |||
double | ga | |||
) |
Set the 2D pose of a named simulation object
int playerc_simulation_set_property_double | ( | playerc_simulation_t * | device, | |
char * | name, | |||
char * | property, | |||
double | value | |||
) |
Set the value of a named floating point property of a named simulation object
int playerc_simulation_set_property_int | ( | playerc_simulation_t * | device, | |
char * | name, | |||
char * | property, | |||
int | value | |||
) |
Set the value of a named integer property of a named simulation object
int playerc_simulation_set_property_string | ( | playerc_simulation_t * | device, | |
char * | name, | |||
char * | property, | |||
char * | value | |||
) |
Set the value of a named string property of a named simulation object
int playerc_simulation_subscribe | ( | playerc_simulation_t * | device, | |
int | access | |||
) |
Subscribe to the simulation device
int playerc_simulation_unsubscribe | ( | playerc_simulation_t * | device | ) |
Un-subscribe from the simulation device