一、下载RoboWare源码
途径1:官方GitHub连接:/TonyRobotics/RoboWare
途径2:RoboWare官网:http://www.roboware.me/#/home
(我选择了途径1)
下载完后解压,我们可以看到文件夹\RoboWare-master\Studio有如下内容:
在其他博主的帖子里我看到同样是ubuntu18.04版本的系统,他们选择了红框内的roboware版本,因此我选择了红框内的版本。
只需要将红框内的包拷贝到Ubuntu即可
二、下载一些包和软件
1、为了支持Python调试功能,需要安装pylint:
$ sudo apt-get install python-pip $ sudo python -m pip install pylint
2、为了获得更好的代码阅读体验,自动格式化整理代码,需要安装clang-format:
在安装RoboWare Studio过程中,为了获得更好的代码阅读体验,自动格式化整理代码,需要安装clang-format:
sudo apt-get update sudo apt-get install clang-format-9 sudo ln -s /usr/bin/clang-format-9 /usr/bin/clang-format
三、安装RoboWare Studio
在安装包所在目录下:
sudo dpkg -i roboware-studio_1.1.0-1514335284_amd64.deb
可能会出现如下问题:
Selecting previously unselected package roboware-studio.(Reading database ... 481222 files and directories currently installed.)Preparing to unpack roboware-studio_1.1.0-1514335284_amd64.deb ...Unpacking roboware-studio (1.1.0-1514335284) ...dpkg: dependency problems prevent configuration of roboware-studio:roboware-studio depends on libgconf-2-4; however:Package libgconf-2-4 is not installed.dpkg: error processing package roboware-studio (--install):dependency problems - leaving unconfiguredProcessing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...Processing triggers for mime-support (3.60ubuntu1) ...Errors were encountered while processing:roboware-studio
这是由于依赖错误, 安装相应的依赖即可. 或者自动安装缺少依赖:
sudo apt-get -f -y install
再次执行安装命令:
sudo dpkg -i roboware-studio_1.1.0-1514335284_amd64.deb
出现用户协议界面,按ESC键,然后如下图界面,选<YES>,回车,自动开始安装。
安装完成后,在终端直接在终端输入打开软件。
roboware-studio
出现这个界面即安装成功