首先,谢谢你的帮助。我读了很多关于如何在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是在覆盆子pi 4B上运行的,它是ubuntu18.04.5,ROS Melodic
中看到结果。
我遵循"http://wiki.ros.org/arbotix“中的安装步骤,"arbotix_gui”文件来自安装“”。
在ROS网页上有两种不同的安装方式,另一种是:"git克隆https://github.com/vanadiumlabs/arbotix_ros.git"。我通过这种方式获得一个文件夹,它可以复制到ros工作空间和"catkin_make“中。
再次感谢。
发布于 2021-06-29 18:34:03
我会贴出一个完整的答案,因为它已经在评论中解决了(我想)。
apt服务器可能会落后于软件包的更新,开发环境中的细微差异可能会导致意外的失败。如果有疑问,请尝试单独构建或运行源代码,检查您正在使用的python或ros或依赖项的版本,如果它仍然存在,则在github中为该包提交一个最小可复制示例(build+run步骤)。这将是获得真正支持或错误修复的最快方法,如果&只有当您认为它不是由您引起的问题时。
https://stackoverflow.com/questions/68162250
复制相似问题