41 #ifndef YOCTO_MULTIAXISCONTROLLER_H 42 #define YOCTO_MULTIAXISCONTROLLER_H 55 #ifndef _Y_GLOBALSTATE_ENUM 56 #define _Y_GLOBALSTATE_ENUM 67 #define Y_NAXIS_INVALID (YAPI_INVALID_UINT) 68 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 79 #pragma option push -w-8022 124 {
return this->get_nAxis(); }
135 int set_nAxis(
int newval);
137 {
return this->set_nAxis(newval); }
151 {
return this->get_globalState(); }
153 string get_command(
void);
156 {
return this->get_command(); }
158 int set_command(
const string& newval);
160 {
return this->set_command(newval); }
207 virtual int sendCommand(
string command);
215 virtual int reset(
void);
225 virtual int findHomePosition(vector<double> speed);
238 virtual int moveTo(vector<double> absPos);
251 virtual int moveRel(vector<double> relPos);
261 virtual int pause(
int waitMs);
269 virtual int emergencyStop(
void);
277 virtual int abortAndBrake(
void);
285 virtual int abortAndHiZ(
void);
300 {
return this->nextMultiAxisController();}
static YMultiAxisController * FirstMultiAxisController(void)
YMultiAxisControllerValueCallback _valueCallbackMultiAxisController
YMultiAxisController * yFirstMultiAxisController(void)
static const string COMMAND_INVALID
Y_GLOBALSTATE_enum _globalState
static YMultiAxisController * Find(string func)
#define YAPI_INVALID_UINT
YMultiAxisController * next(void)
virtual int _parseAttr(YJSONObject *json_val)
ROSLIB_DECL std::string command(const std::string &cmd)
YMultiAxisController * yFindMultiAxisController(const string &func)
int setCommand(const string &newval)
static YMultiAxisController * FindMultiAxisController(string func)
virtual int registerValueCallback(YFunctionValueCallback callback)
#define YOCTO_CLASS_EXPORT
Y_GLOBALSTATE_enum globalState(void)
void(* YMultiAxisControllerValueCallback)(YMultiAxisController *func, const string &functionValue)
static YMultiAxisController * First(void)
virtual int _invokeValueCallback(string value)