playersd.h
void(* player_sd_browse_callback_fn_t)(player_sd_t *sd, player_sd_dev_t *dev)
Prototype for a callback function that can be invoked when devices are added or removed.
Definition: playersd.h:128
The PlannerProxy proxy provides an interface to a 2D motion planner.
Definition: playerc++.h:1718
player_sd_t * player_sd_init(void)
Initialize service discovery, passing back a pointer that will be passed into all future calls.
The Position2dProxy class is used to control a position2d device.
Definition: playerc++.h:2026
The SimulationProxy proxy provides access to a simulation device.
Definition: playerc++.h:2553
int player_sd_browse(player_sd_t *sd, double timeout, int keepalive, player_sd_browse_callback_fn_t cb)
Browse for player devices.
int player_sd_unregister(player_sd_t *sd, const char *name)
Unregister (terminate) the named device.
int player_sd_register(player_sd_t *sd, const char *name, player_devaddr_t addr)
Register the named device.
player_sd_dev_t * devs
List of devices discovered by browsing.
Definition: playersd.h:97
The BumperProxy class is used to read from a bumper device.
Definition: playerc++.h:474
The SpeechProxy class is used to control a speech device.
Definition: playerc++.h:2648
player_sd_dev_t * _player_sd_add_device(player_sd_t *sd, const char *name)
Add a device to the local cache.
#define PLAYER_DATAMODE_PULL
Data delivery mode: Only on request, send data from all subscribed devices.
Definition: player_interfaces.h:83
const int PLAYER_PORTNUM
The default port number for PlayerClient.
Definition: utility.h:79
void player_sd_unlock(player_sd_t *sd)
Unlock access to playersd structures, such as the local device cache.
int player_sd_find_devices(player_sd_t *sd, player_sd_dev_t *result, size_t result_len, const char *name, const char *hostname, int robot, int interf, int index)
Find a device in the local cache that matches the given criteria.
The LaserProxy class is used to control a laser device.
Definition: playerc++.h:1222
The AioProxy class is used to read from a aio (analog I/O) device.
Definition: playerc++.h:207
The RangerProxy class is used to control a ranger device.
Definition: playerc++.h:2421
void RequestGeometry(void)
Geometry request - call before getting the geometry of a joint through the accessor method.
PLAYERC_EXPORT int playerc_planner_get_waypoints(playerc_planner_t *device)
Get the list of waypoints.
The DioProxy class is used to read from a dio (digital I/O) device.
Definition: playerc++.h:763
The SonarProxy class is used to control a sonar device.
Definition: playerc++.h:2600
void player_sd_printcache(player_sd_t *sd)
Print the contents of the local device cache to the console.
The Position1dProxy class is used to control a position1d device.
Definition: playerc++.h:1902
void * sdRef
Opaque pointer to underlying zeroconf client object.
Definition: playersd.h:95
The CameraProxy class can be used to get images from a camera device.
Definition: playerc++.h:524
void player_sd_fini(player_sd_t *sd)
Finalize service discovery, freeing associated resources.
PLAYERC_EXPORT int playerc_localize_get_particles(playerc_localize_t *device)
Request the particle set.
The GripperProxy class is used to control a gripper device.
Definition: playerc++.h:1002
#define PLAYER_SD_NAME_MAXLEN
A device, represented by its name and address.
Definition: playersd.h:69
The ActArrayProxy class is used to control a actarray device.
Definition: playerc++.h:139
The BlinkenlightProxy class is used to enable and disable a flashing indicator light,...
Definition: playerc++.h:423
void RequestGeometry(void)
Geometry request - call before getting the geometry of a joint through the accessor method.
The PlayerClient is used for communicating with the player server.
Definition: playerclient.h:119
int player_sd_update(player_sd_t *sd, double timeout)
Check for new device updates, waiting for timeout s.
The OpaqueProxy proxy provides an interface to a generic opaque.
Definition: playerc++.h:1678
The LocalizeProxy class is used to control a localize device, which can provide multiple pose hypothe...
Definition: playerc++.h:1499
The VectorMapProxy class is used to interface to a vectormap.
Definition: playerc++.h:2863
player_sd_dev_t * player_sd_get_device(player_sd_t *sd, const char *name)
Look up a device by name.
The Position3dProxy class is used to control a interface_position3d device.
Definition: playerc++.h:2193
PLAYERC_EXPORT int playerc_map_get_map(playerc_map_t *device)
Get the map, which is stored in the proxy.
The FiducialProxy class is used to control fiducial devices.
Definition: playerc++.h:804
void MoveTo(uint32_t aJoint, float aPos)
Send an actuator to a position.
void player_sd_lock(player_sd_t *sd)
Lock access to playersd structures, such as the local device cache.
int player_sd_browse_stop(player_sd_t *sd)
Stop browsing. Returns 0 on success, non-zero on error.
const std::string PLAYER_HOSTNAME
The default hostname for PlayerClient.
Definition: utility.h:81
The LimbProxy class is used to control a limb device.
Definition: playerc++.h:1395