【未解决乌龟问题】测试ROS是否安装成功

前提说明:虚拟机、ubuntu-18.04.1

1、操作流程:

1)参考教程链接1,第一步输入roscore指令查看ROS的版本、节点、端号等内容时出现“Command 'roscore' not found, but can be installed with: sudo apt install python-roslaunch”,按提示输入指令“sudo apt install python-roslaunch”,此时出现““Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?”的问题”

 2)参考教程链接2和3,把apt进程全部杀死,再次输入“roscore”指令,按提示输入指令“sudo apt install python-roslaunch”即可。操作过程如下图所示:

 下图表示正在下载中

此时再输入roscore指令,可以查到版本等信息

 细节展示:

通过下面的命令来生成所有含有 apt 的进程列表:

ps -A | grep apt

 通过下面的命令来杀死进程:

sudo kill -9 进程ID号

可以查看系统内存在的内核版本列表:

sudo dpkg --get-selections |grep linux
sudo dpkg --get-selections

查看当前Ubuntu系统使用的内核版本:

uname -a

3)根据教程链接1,再打开一个新的终端(Termial),输入指令“rosrun turtlesim turtlesim_node”,看看是否能弹出一个小乌龟窗口,但提示not found:

 按照提示输入指令“sudo apt install robash"后,再次输入指令“rosrun turtlesim turtlesim_node”,但是显示Command not found

4)参考教程链接6,rosrun(运行对应节点)

用法:rosrun + 结点,例如: rosrun turtlesim。其中,turtlesim是ros安装好后带的学习用的功能包,输入完代码以后双击tab键可以显示出其所有节点。按理说输入 rosrun turtlesim turtlesim_node即可显示小乌龟仿真器页面。

但是  rosrun turtlesim双击Tab键后,按照提示输入指令sudo apt install rospack-tools。

安装完毕后,再次双击或回车 rosrun turtlesim,均没有反应。

5)

2、参考链接

1)测试ROS是否安装成功https://blog.csdn.net/weixin_45532870/article/details/125621819

2)解决 “Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?”的问题https://blog.csdn.net/w5688414/article/details/82254845

3)技术|修复 Ubuntu 中“Unable to lock the administration directory (/var/lib/dpkg/)”的 (linux.cn)

4)虚拟机VMware安装教程https://blog.csdn.net/m0_55879913/article/details/127298691

5)在虚拟机中安装ubuntu-18.04.1-desktop-amd64https://mp.weixin.qq.com/s/vuaPF25PUVywgAA0tEvr8w

6)ROS命令行工具使用讲解https://blog.csdn.net/qq_52533790/article/details/121461938

7)解决roslaunch按Tab键没反应问题https://blog.csdn.net/weixin_43262513/article/details/88061692

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

林月明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值