在 Deepnote 中的欠驱动机器人文档中运行 Drake 程序教程时出现问题?
我正在尝试在德雷克中构建和模拟钟摆。我创建了一个 urdf 文件(仍然不知道如何添加惯性标签)并尝试模拟它,但我不知道如何?所以,我正在查看 https://underactuated.mit.edu/pend.html 中的简单摆教程。但是当我尝试在 deepnote 上运行它时,出现以下错误。
ModuleNotFoundError: No module named 'underactuated'
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-20-e0ee1253693a> in <module>
24 PendulumPlant)
25
---> 26 from underactuated import plot_2d_phase_portrait, running_as_notebook
27 from underactuated.meshcat_cpp_utils import MeshcatSliders, interact
28
ModuleNotFoundError: No module named 'underactuated'
我该如何解决这个问题?另外,如果您可以推荐一些资源来帮助我轻松构建 urdf 文件,那将非常有帮助。
谢谢。
I am trying to build and simulate a pendulum in drake. I have created a urdf file(still don't know how to add the inertia tags) and am trying to simulate it, but I don't know how to? So, I was looking at the simple pendulum tutorial in https://underactuated.mit.edu/pend.html. But when I tried to run this on deepnote I get the following error.
ModuleNotFoundError: No module named 'underactuated'
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-20-e0ee1253693a> in <module>
24 PendulumPlant)
25
---> 26 from underactuated import plot_2d_phase_portrait, running_as_notebook
27 from underactuated.meshcat_cpp_utils import MeshcatSliders, interact
28
ModuleNotFoundError: No module named 'underactuated'
How am I supposed to resolve this issue? Also, if you can recommend some resources that help me easily buid urdf files that would be really helpful.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本课程的 Deepnote 笔记本使用一个 docker 实例,该实例配备了 pydrake 且未启动。您可以复制我们的笔记本之一,或者自己在 deepnote 配置中添加 docker 实例。 http://underactuated.csail.mit.edu/drake.html#notebooks
我们还有另一个教程,将在 Drake 中完善并很快提供,用于构建 urdfs。您可以在此处预览:https://deepnote.com/project/Authoring-a-Multibody-Simulation-jnoKyVLkS5CYUgHG3ASsBA/%2Fauthor_multibody_sim.ipynb(但要知道它应该被视为草稿)。
The Deepnote notebooks for the course use a docker instance which is provisioned with pydrake and underactuated. You can duplicate one of our notebooks, or add the docker instance in the deepnote configuration yourself. http://underactuated.csail.mit.edu/drake.html#notebooks
We have another tutorial that will be polished and available soon in Drake for constructing the urdfs. You can preview it here: https://deepnote.com/project/Authoring-a-Multibody-Simulation-jnoKyVLkS5CYUgHG3ASsBA/%2Fauthor_multibody_sim.ipynb (but know that it should be considered a draft).