如何在 ubuntu20 和 ros neotic 上使用和安装 arbotix_gui?

问题描述

首先,感谢您的帮助。 我阅读了很多关于如何在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,(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.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 在 raspBerry pi 4B 上运行,它是 ubuntu18.04.5 和 ROS Melodic
  2. ubuntu20.04.2 和 ROS noetic 在笔记本虚拟机上运行。
  3. raspBerry pi 配置为 master,笔记本电脑配置为 host。
  4. 我从笔记本电脑连接到 raspBerry pi,然后通过 SSH 进行 roslaunch。这是由用户在 raspBerry pi 上完成的。
  5. 检查 rostopic 并在布局端启动 rviz。它由用户在虚拟机上完成。
  6. 然后我在虚拟机上由用户尝试 arbotix_gui。
  7. 我想做的是通过 arbotix_gui 移动机器人,然后在 rviz 中查看结果。

我按照“http://wiki.ros.org/arbotix”中的安装步骤进行操作 “arbotix_gui”文件来自安装“sudo apt-get install ros-noetic-arbotix”。

ROS网页上有两种不同的安装方式,另一种是:"git clone https://github.com/vanadiumlabs/arbotix_ros.git"。我通过这种方式得到一个文件夹,它可以复制到ros工作空间和"catkin_make" .

再次感谢。

解决方法

我会发布一个完整的答案,因为它在评论中得到了解决(我认为)。

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