gpt4 book ai didi

python - 如何在 ubuntu 20 和 ros noetic 上使用和安装 arbotix gui?

转载 作者:行者123 更新时间:2023-12-04 19:29:20 24 4
gpt4 key购买 nike

首先,感谢您的帮助。
我阅读了很多关于如何在 ubuntu 上安装 arbotix_gui 的页面,并尝试了很多,但总是失败,执行“arbotix_gui”后消息如下:

/opt/ros/noetic/bin/arbotix_gui:203: wxPyDeprecationWarning: Using deprecated class PySimpleApp. Use :class:`App` instead.
app = wx.PySimpleApp()

/opt/ros/noetic/bin/arbotix_gui:73: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
wx.StaticLine(self.movebase, -1, (width/2, 0), (1,width), style=wx.LI_VERTICAL)

/opt/ros/noetic/bin/arbotix_gui:74: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
wx.StaticLine(self.movebase, -1, (0, width/2), (width,1))

/opt/ros/noetic/bin/arbotix_gui:125: wxPyDeprecationWarning: Call to deprecated item __call__. Use :meth:`EvtHandler.Bind` instead.
wx.EVT_CLOSE(self, self.onClose)

/opt/ros/noetic/bin/arbotix_gui:126: wxPyDeprecationWarning: Call to deprecated item __call__. Use :meth:`EvtHandler.Bind` instead.
wx.EVT_TIMER(self, self.TIMER_ID, self.onTimer)

Traceback (most recent call last):

File "/opt/ros/noetic/bin/arbotix_gui", line 204, in <module>
frame = controllerGUI(None, True)

File "/opt/ros/noetic/bin/arbotix_gui", line 126, in __init__
wx.EVT_TIMER(self, self.TIMER_ID, self.onTimer)

File "/home/techmarvel/.local/lib/python3.8/site-packages/wx/core.py", line 82, in deprecated_func
return item(*args)

File "/home/techmarvel/.local/lib/python3.8/site-packages/wx/core.py", line 1557, in __call__
assert len(args) == 2 + self.expectedIDs

AssertionError
  • ros 在树莓派 4B 上运行,它是 ubuntu18.04.5 和 ROS Melodic
  • ubuntu20.04.2 和 ROS noetic 在笔记本电脑虚拟机上运行。
  • 树莓派被配置为主机,笔记本电脑被配置为主机。
  • 我从笔记本电脑连接到树莓派,并通过 SSH 进行 roslaunch。它由树莓派上的用户完成。
  • 检查 rostopic 并在laytop 端启动 rviz。它是由用户在虚拟机上完成的。
  • 然后我在虚拟机上由用户尝试 arbotix_gui。
  • 我想要做的是通过 arbotix_gui 移动机器人,并在 rviz 中查看结果。

  • 我遵循“http://wiki.ros.org/arbotix”中的安装步骤
    “arbotix_gui”文件来自安装“sudo apt-get install ros-noetic-arbotix”。
    ROS网页上有2种不同的安装方式,另一种是:“git clone https://github.com/vanadiumlabs/arbotix_ros.git"。我通过这种方式得到一个文件夹,可以将它复制到ros工作空间和”catkin_make“。
    再次感谢。

    最佳答案

    我会发布一个完整的答案,因为它已在评论中解决(我认为)。
    apt 服务器可能会延迟更新软件包,开发环境中的微小差异可能会导致意外故障。如有疑问,请尝试单独构建或运行源代码,检查您正在使用的 python 或 ros 或依赖项的版本,如果仍然存在,请在 github 存储库中提交一个最小可重现示例(构建+运行步骤)那个包裹。这将是获得真正支持或错误修复的最快方法,前提是且仅当您确定它不是由您引起的问题时。

    关于python - 如何在 ubuntu 20 和 ros noetic 上使用和安装 arbotix gui?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68162250/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com