24#ifndef AUBO_SDK_SYNC_MOVE_INTERFACE_H
25#define AUBO_SDK_SYNC_MOVE_INTERFACE_H
28#include <unordered_set>
31#include <aubo/global_config.h>
34namespace common_interface {
36typedef std::unordered_set<std::string>
TaskSet;
203#define SyncMove_DECLARES \
204 _INST(SyncMove, 2, syncMoveOn, syncident, taskset) \
205 _INST(SyncMove, 1, syncMoveSegment, id) \
206 _INST(SyncMove, 1, syncMoveOff, syncident) \
207 _INST(SyncMove, 0, syncMoveUndo) \
208 _INST(SyncMove, 2, waitSyncTasks, syncident, taskset) \
209 _FUNC(SyncMove, 0, isSyncMoveOn) \
210 _INST(SyncMove, 0, syncMoveSuspend) \
211 _INST(SyncMove, 0, syncMoveResume)
int syncMoveOn(const std::string &syncident, const TaskSet &taskset)
syncMoveOn is used to start synchronized movement mode.
int waitSyncTasks(const std::string &syncident, const TaskSet &taskset)
waitSyncTasks used to synchronize several task programs at a special point in the program.
bool isSyncMoveOn()
isSyncMoveOn is used to tell if the mechanical unit group is in synchron- ized movement mode.
int syncMoveOff(const std::string &syncident)
syncMoveOff is used to end synchronized movement mode.
bool syncMoveSegment(int id)
设置同步路径段的ID In synchronized movements mode, all or none of the simultaneous move instructions must be ...
int syncMoveUndo()
syncMoveUndo is used to turn off synchronized movements, even if not all the other task programs exec...
std::shared_ptr< SyncMove > SyncMovePtr
std::unordered_set< std::string > TaskSet