1 #ifndef AUBO_SCOPE_SCRIPT_WRITER_H 2 #define AUBO_SCOPE_SCRIPT_WRITER_H 10 namespace aubo_scope {
23 void setLabel(
int lineno,
const std::string &comment);
30 void appendLine(
const std::string &script_line);
31 void appendVectorDouble(
const std::vector<double> &value);
39 void appendRaw(
const std::string &script);
46 std::string generateScript();
70 void assign(VariablePtr variable,
const std::string &expression,
80 void assign(
const std::string &variableName,
81 const ExpressionPtr &expression,
bool sync =
false);
88 void assign(VariablePtr variable,
const ExpressionPtr &expression,
96 void incrementVariable(
const std::string &variable_name);
103 void note(
const std::string &expression);
110 void sleep(
double seconds);
121 void defineFunction(
const std::string &func_name);
122 void anonyFunction(
const std::string &func_name);
124 void setRobotIndex(
int robot_index);
155 void setPayload(
double mass,
double x,
double y,
double z);
172 void setTcp(
const std::vector<double> &pose);
180 void ifCondition(
const ExpressionPtr &expression);
187 void ifNotCondition(
const ExpressionPtr &expression);
194 void elseIfCondition(
const ExpressionPtr &expression);
200 void elseCondition();
208 void forCondition(
int count,
int step);
221 void whileCondition(
const ExpressionPtr &expression);
228 void whileNot(
const ExpressionPtr &expression);
236 void defineThread(
const std::string &thread_name,
bool loop_or_not);
243 void runThread(
const std::string &thread_name);
249 void killThread(
const std::string &thread_name);
276 std::string getResolvedVariable(
const std::string &variable_name);
278 void increaseIndent();
279 void decreaseIndent();
282 friend class DataSwitch;
290 #endif // AUBO_SCOPE_SCRIPT_WRITER_H ARCS_CLASS_FORWARD(GripForceCapability)
This interface provides support for generating Script code.