如何将代理设置为延迟块?

发布于 2025-02-10 17:33:22 字数 436 浏览 2 评论 0原文

由Seizetransporter块,我的AGV抓住了一个名为“ Sitz”的代理,并通过Transporter Block移动将其传输到延迟块。

当AGV进入延迟块时,运输的代理“ SITZ”将其货物位置更改为0。

我试图通过在MAIN上创建一个名为P_AssemblyHight的参数来解决该问题,该参数为默认值1.0,并且在延迟块的操作部分中的以下代码: Agent。

无论如何,此操作不会执行。 我该怎么办,我的运输产品(称为“ Sitz”)停留在AGV上而不掉落在延迟块上?

检查两个屏幕截图以更好地理解。 非常感谢!

src =“ https://i.sstatic.net/bhdwv.png”

=“”> “”

By seizeTransporter block my AGV seizes an agent called "Sitz" and transports it via Move by Transporter block to a Delay Block.

When AGV enters the delay block the transported agent "Sitz" is changing its cargo location to 0.

I tried to fix that issue with creating an parameter on main called p_assemblyHight with default value 1.0 and the following code in Actions section of the delay Block: agent.setHight(p_assemblyHight, METER);

Anyway this action will not execute.
What can I do so that my transported product (called "Sitz") stays on the agv and not dropping in delay block?

Check the two screenshots for better understanding.
Thank you a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抠脚大汉 2025-02-17 17:33:23

setheight方法不会更改z组件,而是代理呈现的高度。与您无关。

您需要在延迟块中访问sitz并更改其z组件。

在延迟块调用中:

agent.setXYZ(agent.getX(), agent.getY(), 10);

最后一个参数是z组件,根据需要进行调整。第2个只需确保XY组件没有更改

The setHeight method does not change the z-component, but the height of an agent presentation. Irrelevant for you.

You need to access your Sitz in the delay block and change its z-component.

In the Delay block call:

agent.setXYZ(agent.getX(), agent.getY(), 10);

The last argument is the Z component, adjust as needed. The first 2 just make sure the XY components are not changed

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文