前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >solution of ROS install issue

solution of ROS install issue

原创
作者头像
ZC_Robot机器人技术
修改2021-02-20 18:09:21
1.2K0
修改2021-02-20 18:09:21
举报
文章被收录于专栏:机器人技术与系统Robot

A Problem of Ubuntu installation of ROS Melodic

1 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

2 sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

if occur "gpg: keyserver receive failed: Connection timed out "

代码语言:javascript
复制
sudo su
代码语言:javascript
复制
curl -sSL 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | sudo apt-key add -

or

代码语言:javascript
复制
gpg --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

B Open Anaconda Prompt (base):

  1. Update conda:
代码语言:javascript
复制
conda update -n base -c defaults conda
  1. Create new environment with Python 3.8:
代码语言:javascript
复制
conda create -n python38 python=3.8
  1. Activate your new Python 3.8 environment:
代码语言:javascript
复制
conda activate python38
  1. Start Python 3.8:
代码语言:javascript
复制
python

C Pip Usage

1 pip show numpy (pip3 show numpy )

代码语言:javascript
复制
 pip show numpy
代码语言:javascript
复制
Name: numpy
Version: 1.20.1
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /home/xerob/anaconda3/envs/python38/lib/python3.8/site-packages
Requires: 
Required-by: scs, scipy, qdldl, osqp, matplotlib, ecos, cvxpy

2 pip list (pip3 list)

代码语言:javascript
复制
pip show numpy

The showing is as follows:

代码语言:javascript
复制
Package                       Version
----------------------------- -------------------
actionlib                     1.12.1
angles                        1.9.12
bondpy                        1.8.5
camera-calibration            1.15.0
camera-calibration-parsers    1.11.13
catkin                        0.7.29
certifi                       2020.12.5
controller-manager            0.18.3
controller-manager-msgs       0.18.3
cv-bridge                     1.13.0
cvxopt                        1.2.6
cvxpy                         1.1.10
cycler                        0.10.0
diagnostic-analysis           1.9.7
diagnostic-common-diagnostics 1.9.7
diagnostic-updater            1.9.7
dynamic-reconfigure           1.6.3
ecos                          2.0.7.post1
gazebo-plugins                2.8.7
gazebo-ros                    2.8.7
gencpp                        0.6.5
geneus                        2.2.6
genlisp                       0.4.16
genmsg                        0.5.16

D Roscore issue

代码语言:javascript
复制
 << roscore

Command 'roscore' not found, but can be installed with: sudo apt install python-roslaunch

代码语言:javascript
复制
<< sudo apt install python-roslaunch

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The solution of this issue is

代码语言:javascript
复制
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

OR

代码语言:javascript
复制
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • A Problem of Ubuntu installation of ROS Melodic
  • B Open Anaconda Prompt (base):
  • C Pip Usage
  • D Roscore issue
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档