1#ifndef AUBO_SCOPE_SCRIPT_WRITER_H
2#define AUBO_SCOPE_SCRIPT_WRITER_H
30 void setLabel(
int lineno,
const std::string &comment);
84 void assign(VariablePtr variable,
const std::string &expression,
100 void assign(
const std::string &variableName,
101 const ExpressionPtr &expression,
bool sync =
false);
115 void assign(VariablePtr variable,
const ExpressionPtr &expression,
134 void note(
const std::string &expression);
167 void setTcp(
const std::vector<double> &pose);
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 脚本写入器 此接口提供生成脚本代码的支持。 \endchinese \english ScriptWriter This interface provides support for ...
void setLabel(int lineno, const std::string &comment)
ScriptWriter(ScriptWriter &&f)
std::string generateScript()
\chinese 生成包含完整脚本代码的字符串。
void writeChildren()
\chinese 当为具有子节点的节点生成脚本代码时使用此方法。让子节点生成代码。 \endchinese \english Use this method when generating script...
ScriptWriter(ScriptWriter &f)
void anonyFunction(const std::string &func_name)
void sync()
\chinese 用完当前帧剩余时间。 \endchinese \english Sync.
void whileTrue()
\chinese 开始while true循环。 \endchinese \english Starts a while true loop.
void sleep(double seconds)
\chinese 休眠指定秒数。 \endchinese \english Sleep for a number of seconds.
void killThread(const std::string &thread_name)
\chinese 终止线程。 \endchinese \english Kill a thread.
void appendLine(const std::string &script_line)
\chinese 使用自动缩进添加一行脚本代码。
void ifNotCondition(const ExpressionPtr &expression)
\chinese 开始取反的if条件。 \endchinese \english Start a negated if-conditional.
void assign(VariablePtr variable, const ExpressionPtr &expression, bool sync=false)
\chinese
void incrementVariable(const std::string &variable_name)
\chinese 变量值加1。
void defineFunction(const std::string &func_name)
\chinese 定义函数。 \endchinese \english Define a function.
void setPayload(double mass, double x, double y, double z)
\chinese 设置负载质量和重心。 \endchinese \english Sets the mass and Center of Gravity of the payload.
void forCondition(int count, int step)
\chinese 开始for循环。 \endchinese \english Starts a for-loop.
void note(const std::string &expression)
\chinese 添加注释。 \endchinese \english Add a note.
void assign(const std::string &variableName, const ExpressionPtr &expression, bool sync=false)
\chinese
void end()
\chinese 插入end。 \endchinese \english Insert an end.
void runThread(const std::string &thread_name)
\chinese 启动线程。 \endchinese \english Start a thread.
void elseCondition()
\chinese 添加else分支。 \endchinese \english Adds an else branch.
void whileCondition(const ExpressionPtr &expression)
\chinese 开始while循环。 \endchinese \english Starts a while-loop.
void appendRaw(const std::string &script)
\chinese 按原样追加脚本代码,不使用自动缩进。
void setTcp(const std::vector< double > &pose)
\chinese 设置TCP。 \endchinese \english Set the Tool Center Point.
void appendVectorDouble(const std::vector< double > &value)
void assign(VariablePtr variable, const std::string &expression, bool sync=false)
void elseIfCondition(const ExpressionPtr &expression)
\chinese 添加else-if分支。 \endchinese \english Adds an else-if branch.
void lineFeed()
\chinese 插入空行。 \endchinese \english Insert an empty line.
void returnMethod()
\chinese 返回。 \endchinese \english Return from method.
std::string getResolvedVariable(const std::string &variable_name)
\chinese 获取可在脚本中使用的已注册变量名。
void ifCondition(const ExpressionPtr &expression)
\chinese 开始if条件。 \endchinese \english Start an if-conditional.
void defineThread(const std::string &thread_name, bool loop_or_not)
\chinese 定义线程。 \endchinese \english Start a thread definition.
void setRobotIndex(int robot_index)
void whileNot(const ExpressionPtr &expression)
\chinese 开始取反的while循环。 \endchinese \english Starts a negated while-loop.