【发布时间】: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
- 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”。
再次感谢。
【问题讨论】:
-
你试过在 github 上提出问题吗?
-
如果您在 catkin 工作区中安装/克隆软件包,是否会遇到相同的错误?你使用的是正确版本的 python 吗?
-
我没有在github上问过这个问题,我去试试。我在工作区文件夹中进行 catkin_make 时没有看到任何错误,所有内容都显示为白色,没有红色,没有橙色。感谢您的回答。
标签: python ubuntu wxpython ros raspberry-pi4