【问题标题】:how to use and install arbotix_gui on ubuntu20 and ros neotic?如何在 ubuntu 20 和 ros noetic 上使用和安装 arbotix gui?
【发布时间】:2021-09-10 16:38:03
【问题描述】:

首先,感谢您的帮助。 我阅读了很多关于如何在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

  1. ros 在树莓派 4B 上运行,它是 ubuntu18.04.5 和 ROS Melodic
  2. ubuntu20.04.2 和 ROS noetic 正在笔记本电脑虚拟机上运行。
  3. 树莓派被配置为主机,笔记本电脑被配置为主机。
  4. 我从笔记本电脑连接到树莓派,并通过 SSH 进行 roslaunch。这是由树莓派上的用户完成的。
  5. 检查 rostopic 并在laytop 端启动 rviz。它由用户在虚拟机上完成。
  6. 然后我在虚拟机上由用户尝试 arbotix_gui。
  7. 我要做的是通过 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”。

再次感谢。

【问题讨论】:

  • 你试过在 github 上提出问题吗?
  • 如果您在 catkin 工作区中安装/克隆软件包,是否会遇到相同的错误?你使用的是正确版本的 python 吗?
  • 我没有在github上问过这个问题,我去试试。我在工作区文件夹中进行 catkin_make 时没有看到任何错误,所有内容都显示为白色,没有红色,没有橙色。感谢您的回答。

标签: python ubuntu wxpython ros raspberry-pi4


【解决方案1】:

我将发布一个完整的答案,因为它已在 cmets 中解决(我认为)。

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

【讨论】:

  • 我发现了别的东西,现在测试一下,看看能不能解决问题。可能是因为我不知道如何正确使用它。感谢您的帮助。
  • 我得到了一个关于如何使用 arbotix 的视频,但它是一种不同的命令方式,而不是 GUI。我会继续寻找解决方案。如果我找到如何正确使用该软件,我会在这里发布。感谢您的帮助。
猜你喜欢
  • 2023-01-29
  • 1970-01-01
  • 2020-09-13
  • 2023-01-15
  • 2020-01-21
  • 1970-01-01
  • 1970-01-01
  • 2021-11-21
  • 2022-08-23
相关资源
最近更新 更多