ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Installing ROS 2 on Raspberry Pi 3

asked 2018-07-19 11:07:32 -0500

matheus.pinto gravatar image

updated 2018-07-19 17:13:35 -0500

Hi,

I'm trying to install ROS 2 on Raspberry Pi 3 with Xenomai. I am from Brazil, so I must to change the repository server in "/etc/apt/sources.list" file to "deb http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi" to install the programs on the system. I follow the procedures for installing in the following link:

https://github.com/ros2/ros2/wiki/Rea...

However, when trying to install the "development tools and ROS tools", the following messages occur:

root@raspberrypi:/home/pi # sudo apt update && sudo apt install -y
build-essential git python3-colcon-common-extensions python3-pip
python-rosdep python3-vcstoll wget
Hit http://archive.raspberrypi.org jessie InRelease
Ign http://repo.ros2.org jessie InRelease
Ign http://repo.ros2.org jessie Release.gpg
Ign http://repo.ros2.org jessie Release
Hit http://archive.raspbian.org jessie InRelease
Get:1 http://archive.raspbian.org jessie/main armhf Packages [9,537 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Err http://repo.ros2.org jessie/main amd64 Packages
  404  Not Found
Err http://repo.ros2.org jessie/main arm64 Packages
  404  Not Found
Ign http://repo.ros2.org jessie/main Translation-en_US
Ign http://repo.ros2.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_US
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:2 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:3 http://archive.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:4 http://archive.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://archive.raspbian.org jessie/contrib Translation-en_US
Ign http://archive.raspbian.org jessie/contrib Translation-en
Ign http://archive.raspbian.org jessie/main Translation-en_US
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_US
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspbian.org jessie/rpi Translation-en_US
Ign http://archive.raspbian.org jessie/rpi Translation-en
Fetched 9,666 kB in 37s (259 kB/s)
W: Failed to fetch
http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-amd64/Packages
 404  Not Found

W: Failed to fetch
http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-arm64/Packages
 404  Not Found

E: Some index files failed to download. They have been ignored, or old
ones used instead.

Can you give me a hint how to solve it?

Thanks!

I follow the instructions for setup sources that lead to here: https://github.com/ros2/ros2/wiki/Lin... . Now, when I tried execute "sudo apt update && sudo apt install curl" again, receive this message:

    root@raspberrypi:/home/pi/Downloads/ros2-linux # sudo apt update && sudo apt install curl
Ign http://repo.ros2.org jessie InRelease                                                                                  
Get:1 http://archive.raspbian.org jessie InRelease [14.9 kB]                                                                
Ign http://repo.ros2.org jessie Release.gpg                                                                              
Ign http://repo.ros2.org jessie Release                                                                            
Get:2 http://archive.raspbian ...
(more)
edit retag flag offensive close merge delete

Comments

note that building from source will be challenging as Jessie is quite older than our supported platforms so you will nee to compile packages such as Python and CMake from source. If you use Raspbian Stretch it should be more straight forward.

marguedas gravatar image marguedas  ( 2018-07-31 16:13:31 -0500 )edit

Regarding the apt repo: the ros2 apt repo has only xenial and bionic so it is expected that Jessie is not found. You can use packages.ros.org instead that has entries for debian Jessie and Stretch as well. See "Setup your sources.list" of this page http://wiki.ros.org/lunar/Installation

marguedas gravatar image marguedas  ( 2018-07-31 16:15:23 -0500 )edit

Finally I don't expect the method of using rosdep to install all the dependencies to work out of the box as we didnt provide rosdep rules for these platforms as they are not targeted

marguedas gravatar image marguedas  ( 2018-07-31 16:16:18 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-07-19 12:27:58 -0500

Dirk Thomas gravatar image

Both ROS 2 distros (Bouncy, Ardent) mention in the wiki that they are only providing Debian packages for Ubuntu (Bouncy for Bionic, Ardent for Xenial). So there are neither Debian packages available for Debian Jessie nor for any ARM platform. You can either build ROS 2 from source or try the aarch64 fat archive provided.

edit flag offensive delete link more

Comments

Hi Dirk,

Thanks for your reply! I tried install by fat archive. However, when I tried install rosdep, the apt dont find it:

sudo apt install -y python-rosdep
E: Unable to locate package python-rosped

Any suggest?

matheus.pinto gravatar image matheus.pinto  ( 2018-07-19 15:17:16 -0500 )edit

Have you added the apt repo following the instructions? Also your error msg contains a spelling error indicating that you didn't copy-n-pasted it - may something wrong in the command?

Dirk Thomas gravatar image Dirk Thomas  ( 2018-07-19 15:31:07 -0500 )edit
0

answered 2018-07-19 17:04:13 -0500

matheus.pinto gravatar image

I follow the instructions for setup sources that lead to here: https://github.com/ros2/ros2/wiki/Lin... . Now, when I tried execute "sudo apt update && sudo apt install curl" again, receive this message:

    root@raspberrypi:/home/pi/Downloads/ros2-linux # sudo apt update && sudo apt install curl
Ign http://repo.ros2.org jessie InRelease                                                                                  
Get:1 http://archive.raspbian.org jessie InRelease [14.9 kB]                                                                
Ign http://repo.ros2.org jessie Release.gpg                                                                              
Ign http://repo.ros2.org jessie Release                                                                            
Get:2 http://archive.raspbian.org jessie/main armhf Packages [9,536 kB]          
Hit http://archive.raspberrypi.org jessie InRelease                                                                            
Hit http://archive.raspberrypi.org jessie/main armhf Packages                                                                  
Hit http://archive.raspberrypi.org jessie/ui armhf Packages                                                                    
Get:3 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]                                                      
Get:4 http://archive.raspbian.org jessie/non-free armhf Packages [84.2 kB]                                                      
Get:5 http://archive.raspbian.org jessie/rpi armhf Packages [1,356 B]                                                          
Err http://repo.ros2.org jessie/main amd64 Packages                                                                            
  404  Not Found
Err http://repo.ros2.org jessie/main arm64 Packages                                                                            
  404  Not Found
Ign http://repo.ros2.org jessie/main Translation-en_US                                                                          
Ign http://repo.ros2.org jessie/main Translation-en                                                                            
Ign http://archive.raspberrypi.org jessie/main Translation-en_US                                                                
Ign http://archive.raspberrypi.org jessie/main Translation-en                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US                                                                  
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                                                    
Ign http://archive.raspbian.org jessie/contrib Translation-en_US                                                                
Ign http://archive.raspbian.org jessie/contrib Translation-en                                                                  
Ign http://archive.raspbian.org jessie/main Translation-en_US
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_US
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://archive.raspbian.org jessie/rpi Translation-en_US
Ign http://archive.raspbian.org jessie/rpi Translation-en
Fetched 9,680 kB in 36s (262 kB/s)
W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://repo.ros2.org/ubuntu/main/dists/jessie/main/binary-arm64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
edit flag offensive delete link more

Comments

Please don't use an answer to provide more information about your question. This isn't a forum. Please update your question with this information instead.

jayess gravatar image jayess  ( 2018-07-19 17:09:21 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-07-19 11:07:32 -0500

Seen: 5,768 times

Last updated: Jul 19 '18