Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

motor
[Proxies]


Detailed Description

The motor proxy provides an interface a simple, single motor.


Classes

struct  playerc_motor_t
 Motor device data. More...


Functions

playerc_motor_tplayerc_motor_create (playerc_client_t *client, int index)
 Create a motor device proxy.

void playerc_motor_destroy (playerc_motor_t *device)
 Destroy a motor device proxy.

int playerc_motor_subscribe (playerc_motor_t *device, int access)
 Subscribe to the motor device.

int playerc_motor_unsubscribe (playerc_motor_t *device)
 Un-subscribe from the motor device.

int playerc_motor_enable (playerc_motor_t *device, int enable)
 Enable/disable the motors.

int playerc_motor_position_control (playerc_motor_t *device, int type)
 Change position control.

int playerc_motor_set_cmd_vel (playerc_motor_t *device, double vt, int state)
 Set the target rotational velocity.

int playerc_motor_set_cmd_pose (playerc_motor_t *device, double gt, int state)
 Set the target pose.


Function Documentation

playerc_motor_t* playerc_motor_create playerc_client_t client,
int  index
 

Create a motor device proxy.

void playerc_motor_destroy playerc_motor_t device  ) 
 

Destroy a motor device proxy.

int playerc_motor_subscribe playerc_motor_t device,
int  access
 

Subscribe to the motor device.

int playerc_motor_unsubscribe playerc_motor_t device  ) 
 

Un-subscribe from the motor device.

int playerc_motor_enable playerc_motor_t device,
int  enable
 

Enable/disable the motors.

int playerc_motor_position_control playerc_motor_t device,
int  type
 

Change position control.

Parameters:
device Pointer to proxy object.
type Control type: 0 = velocity, 1 = position.

int playerc_motor_set_cmd_vel playerc_motor_t device,
double  vt,
int  state
 

Set the target rotational velocity.

Parameters:
device Pointer to proxy object.
vt Velocity in in rad/s.
state 
Todo:
Document state

int playerc_motor_set_cmd_pose playerc_motor_t device,
double  gt,
int  state
 

Set the target pose.

Parameters:
device Pointer to proxy object.
gt Target pose in rad.
state 
Todo:
Document state


Generated on Tue May 3 14:16:14 2005 for Player by doxygen 1.3.6