ros and gazebo and gym_gazebo安装

摘要

本节笔记主要记录ROS室内仿真环景的具体演示过程和

  • [x] Edit By Porter, 积水成渊,蛟龙生焉。

ros 安装

gazebo安装

gym_gazebo安装

安装配置中的问题

python 环境下提示无法导入rospy

报错

解决

1
2
sudo pip install catkin-tools
sudo pip install rospkg
1
2
sudo pip3 install catkin-tools
sudo pip3 install rospkg

效果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
porter@porter-Aspire:~$ sudo pip3 install catkin-tools
[sudo] porter 的密码:
The directory '/home/porter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/porter/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: catkin-tools in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: osrf-pycommon>0.1.1 in /usr/local/lib/python3.5/site-packages (from catkin-tools)
Requirement already satisfied: PyYAML in /usr/local/lib/python3.5/site-packages (from catkin-tools)
Requirement already satisfied: setuptools in /usr/local/lib/python3.5/site-packages (from catkin-tools)
Requirement already satisfied: catkin-pkg>0.2.9 in /usr/local/lib/python3.5/site-packages (from catkin-tools)
Requirement already satisfied: trollius in /usr/local/lib/python3.5/site-packages (from catkin-tools)
Requirement already satisfied: docutils in /usr/local/lib/python3.5/site-packages (from catkin-pkg>0.2.9->catkin-tools)
Requirement already satisfied: pyparsing in /usr/local/lib/python3.5/site-packages (from catkin-pkg>0.2.9->catkin-tools)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.5/site-packages (from catkin-pkg>0.2.9->catkin-tools)
Requirement already satisfied: six in /usr/local/lib/python3.5/site-packages (from trollius->catkin-tools)
You are using pip version 9.0.1, however version 19.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

porter@porter-Aspire:~$ sudo pip3 install rospkg
The directory '/home/porter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/porter/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: rospkg in /usr/local/lib/python3.5/site-packages
Requirement already satisfied: PyYAML in /usr/local/lib/python3.5/site-packages (from rospkg)
Requirement already satisfied: catkin-pkg in /usr/local/lib/python3.5/site-packages (from rospkg)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.5/site-packages (from catkin-pkg->rospkg)
Requirement already satisfied: pyparsing in /usr/local/lib/python3.5/site-packages (from catkin-pkg->rospkg)
Requirement already satisfied: docutils in /usr/local/lib/python3.5/site-packages (from catkin-pkg->rospkg)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.5/site-packages (from python-dateutil->catkin-pkg->rospkg)
You are using pip version 9.0.1, however version 19.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

porter@porter-Aspire:~$ python3
Python 3.5.6 (default, Mar 29 2019, 21:29:42)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rospy
>>>
文章目录
  1. 1. 摘要
    1. 1.1. ros 安装
    2. 1.2. gazebo安装
    3. 1.3. gym_gazebo安装
    4. 1.4. 安装配置中的问题
      1. 1.4.1. python 环境下提示无法导入rospy
        1. 1.4.1.1. 报错
        2. 1.4.1.2. 解决
        3. 1.4.1.3. 效果
|