知识卡片

普通读书笔记卡 · 9180.a · 生成模型:GPT-6

装饰器改变单子节点的策略

理解等级:中级

装饰器只有一个子项,可反转成功失败、把终态变成功或重复执行。Running通常不应被简单反转成终态,重试还要明确失败恢复与次数;无限重复的作用是持续调度,不代表应忽略动作失败。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Decorator nodes have exactly one child node and perform transformations on the child node’s outputs back to its parents. An example of a simple decorator node is the inverter, a node that inverts the return status of its child, effectively producing a NOT operation: If the child node returns “Success,” then the decorator returns “Failure,” and vice versa. Another useful decorator node is one that

    参考来源

    - 位置:《Introduction to Autonomous Robots Mechanisms, Sensors, Actuators, and Algorithms (Nikolaus Correll, Bradley Hayes etc.)》第11章《任务执行》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Introduction to Autonomous Robots Mechanisms, Sensors, Actuators, and Algorithms (Nikolaus Correll, Bradley Hayes etc.)/_epub-src/OEBPS/xhtml/chapter_11.xhtml) - 结论依据:摘录中关于装饰器改变单子节点的策略的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Decorator nodes have exactly one child node and perform transformations on the child node’s outputs back to its parents. An example of a simple decorator node is the inverter, a node that inverts the return status of its child, effectively producing a NOT operation: If the child node returns “Success,” then the decorator returns “Failure,” and vice versa. Another useful decorator node is one that