rosdep reported an error solution-test

1. Installation:

first step:

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

Step two:

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'

third step:

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

the fourth step:

sudo apt-get update

the fifth step:

sudo apt-get install ros-kinetic-desktop-full
(一定要有下载提示)

Step 6:
Usually error prone

sudo rosdep init
wget http://fishros.com/install -O fishros && bash fishros
rosdep update(有错误会提示error)

2. rosdep solution

1. Configure the ROS environment

sudo chmod 777 /etc
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

Then enter roscore in the terminal to run successfully;

2. hosts file

sudo gedit /etc/hosts

3. Save

4、

sudo rosdep init
rosdep update

(If there is an error, it will prompt error)
If there is no link, copy sudo in... something behind

5、

If the link appears, download git and then git clone https://github.com/ros/rosdistro.git
If there is progress, go on;
if there is no progress, open another window to find rosdep/source.list.d/ and delete the file

6. Create a new sudo touch 20-default.list

yaml file:///home/wxy/rosdistro-master/rosdep/osx-homebrew.yaml osx
yaml file:///home/wxy/rosdistro-master/rosdep/base.yaml
yaml file:///home/wxy/rosdistro-master/rosdep/python.yaml
yaml file:///home/wxy/rosdistro-master/rosdep/ruby.yaml
gbpdistro file:///home/wxy/rosdistro-master/releases/fuerte.yaml fuerte

Then:

sudo rosdep init
rosdep update

Finally, test it:

roscore
rosrun turtlesim turtlesim_node
rosrun turtlesim turtle_teleop_key

Guess you like

Origin blog.csdn.net/yechen1/article/details/127549014