19 #ifndef DYNAMIXEL_WORKBENCH_H_ 20 #define DYNAMIXEL_WORKBENCH_H_ 30 bool torque(uint8_t
id, int32_t onoff,
const char **log = NULL);
31 bool torqueOn(uint8_t
id,
const char **log = NULL);
32 bool torqueOff(uint8_t
id,
const char **log = NULL);
34 bool changeID(uint8_t
id, uint8_t new_id,
const char **log = NULL);
35 bool changeBaudrate(uint8_t
id, uint32_t new_baudrate,
const char **log = NULL);
38 bool itemWrite(uint8_t
id,
const char *item_name, int32_t data,
const char **log = NULL);
39 bool itemRead(uint8_t
id,
const char *item_name, int32_t *data,
const char **log = NULL);
41 bool led(uint8_t
id, int32_t onoff,
const char **log = NULL);
42 bool ledOn(uint8_t
id,
const char **log = NULL);
43 bool ledOff(uint8_t
id,
const char **log = NULL);
51 bool setSecondaryID(uint8_t
id, uint8_t secondary_id,
const char **log = NULL);
64 bool jointMode(uint8_t
id, int32_t velocity = 0, int32_t acceleration = 0,
const char **log = NULL);
65 bool wheelMode(uint8_t
id, int32_t acceleration = 0,
const char **log = NULL);
68 bool goalPosition(uint8_t
id,
int value,
const char **log = NULL);
70 bool goalPosition(uint8_t
id,
float radian,
const char **log = NULL);
72 bool goalSpeed(uint8_t
id,
int value,
const char **log = NULL);
73 bool goalVelocity(uint8_t
id,
int value,
const char **log = NULL);
75 bool goalVelocity(uint8_t
id,
float velocity,
const char **log = NULL);
78 bool getRadian(uint8_t
id,
float* radian,
const char **log = NULL);
81 bool getVelocity(uint8_t
id,
float* velocity,
const char **log = NULL);
86 int32_t
convertRadian2Value(
float radian, int32_t max_position, int32_t min_position,
float max_radian,
float min_radian);
87 float convertValue2Radian(int32_t value, int32_t max_position, int32_t min_position,
float max_radian,
float min_radian);
bool setOperatingMode(uint8_t id, uint8_t index, const char **log=NULL)
bool torqueOff(uint8_t id, const char **log=NULL)
bool changeID(uint8_t id, uint8_t new_id, const char **log=NULL)
bool setCurrentBasedPositionControlMode(uint8_t id, const char **log=NULL)
bool setSecondaryID(uint8_t id, uint8_t secondary_id, const char **log=NULL)
bool getVelocity(uint8_t id, float *velocity, const char **log=NULL)
bool setCurrentControlMode(uint8_t id, const char **log=NULL)
bool changeProtocolVersion(uint8_t id, uint8_t version, const char **log=NULL)
bool torque(uint8_t id, int32_t onoff, const char **log=NULL)
int32_t convertRadian2Value(uint8_t id, float radian)
bool itemWrite(uint8_t id, const char *item_name, int32_t data, const char **log=NULL)
bool torqueOn(uint8_t id, const char **log=NULL)
int32_t convertVelocity2Value(uint8_t id, float velocity)
bool getRadian(uint8_t id, float *radian, const char **log=NULL)
bool ledOn(uint8_t id, const char **log=NULL)
float convertValue2Current(uint8_t id, int16_t value)
bool setTimeBasedProfile(uint8_t id, const char **log=NULL)
float convertValue2Load(int16_t value)
bool getPresentVelocityData(uint8_t id, int32_t *data, const char **log=NULL)
bool goalVelocity(uint8_t id, int value, const char **log=NULL)
int16_t convertCurrent2Value(uint8_t id, float current)
bool setExtendedPositionControlMode(uint8_t id, const char **log=NULL)
bool setMultiTurnControlMode(uint8_t id, const char **log=NULL)
float convertValue2Radian(uint8_t id, int32_t value)
bool setVelocityControlMode(uint8_t id, const char **log=NULL)
bool getPresentPositionData(uint8_t id, int32_t *data, const char **log=NULL)
bool setPWMControlMode(uint8_t id, const char **log=NULL)
bool goalSpeed(uint8_t id, int value, const char **log=NULL)
bool goalPosition(uint8_t id, int value, const char **log=NULL)
bool changeBaudrate(uint8_t id, uint32_t new_baudrate, const char **log=NULL)
bool setNormalDirection(uint8_t id, const char **log=NULL)
bool itemRead(uint8_t id, const char *item_name, int32_t *data, const char **log=NULL)
bool wheelMode(uint8_t id, int32_t acceleration=0, const char **log=NULL)
bool setPositionControlMode(uint8_t id, const char **log=NULL)
bool setTorqueControlMode(uint8_t id, const char **log=NULL)
float convertValue2Velocity(uint8_t id, int32_t value)
bool setReverseDirection(uint8_t id, const char **log=NULL)
bool jointMode(uint8_t id, int32_t velocity=0, int32_t acceleration=0, const char **log=NULL)
bool led(uint8_t id, int32_t onoff, const char **log=NULL)
bool ledOff(uint8_t id, const char **log=NULL)
bool currentBasedPositionMode(uint8_t id, int32_t current=0, const char **log=NULL)
bool setVelocityBasedProfile(uint8_t id, const char **log=NULL)