ros+turtlebot遇到的问题
1.apt-get update失败
解决方法:rm -rf /var/lib/apt/lists/*
删除/var/lib/apt/lists 所有文件 ,然后重新执行apt-get update
2.roslaunch turtlebot3_bringup turtlebot3_robot.launch报错ros_msgs…
解决方法: 重新编译 catkin_make
3.ERROR: cannot launch node of type [turtlebot3_example/turtlebot3_pointop_key]: can’t locate node [turtlebot3_pointop_key] in package [turtlebot3_example]
解决方法:更改py文件的权限,sudo chmod u+x XXX
4.pip安装超时
-
解决方法:1.一次性(临时使用):
可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip(其他包名也可以),这样就会从清华这边的镜像去更新库。
5.numpy以及scipy不支持python2
解决方法:numpy以及scipy的新版本已不再支持python2,但有很多库装的时候依赖numpy和scipy,会默认装最新的版本,但最新版本又不支持python2,所以记录下支持python2的版本号:
pip install numpy==1.16.1
pip install scipy==1.2.2