-3
Hello. I would like to make the ROS (Robot Operating System) work on Google Colab. Does anyone have an example of how to do this? I was taking a look at these 2 links:
https://github.com/RoboStack/jupyter-ros/issues/11
On the link, it seems that the author makes it work, on the link:
https://colab.research.google.com/drive/1QpSNBB339OoCJaVJ4_3bfikt0ygOC2NV
Based on the link above, I made the following ROS installation code:
#@title Install ROS melodic
ROS_CODE_NAME = 'melodic'
#from http://wiki.ros.org/indigo/Installation/Ubuntu
#1.2 Setup sources.list
!echo "1.2 Doing"
!sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
!echo "1.2 Done"
# 1.3 Setup keys
!echo "1.3 Doing"
#!sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
!sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116
!sudo apt-key del B01FA116
!apt --fix-broken install
!sudo dpkg --configure -a
!sudo apt-get update && sudo apt-get -f install
# add the new key
!sudo -E apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
!sudo apt clean && sudo apt update
!sudo apt install
!echo "1.3 Done"
# 1.4 Installation
!echo "1.4 Doing"
#!sudo apt update &> /dev/null
!sudo apt update
#!sudo apt upgrade &> /dev/null
!sudo apt upgrade
!echo "1.4 Done"
# Desktop-Full Install:
!echo "1.4.1 Doing"
#!sudo apt install ros-$ROS_CODE_NAME-desktop-full &> /dev/null
!sudo apt install ros-melodic-desktop-full
!echo "1.4.2 Done"
# 1.5 Initialize rosdep
!echo "1.5 Doing"
#!sudo rosdep init &> /dev/null
!sudo rosdep init
#!rosdep update &> /dev/null
!rosdep update
!echo "1.5 Done"
# 1.7 Getting rosinstall (python)
!echo "1.7 Doing"
#!sudo apt install python-rosinstall &> /dev/null
!sudo apt install python-rosinstall
#!sudo apt install python-catkin-tools &> /dev/null
!sudo apt install python-catkin-tools
!echo "1.7 Done"
!echo "All Done"
Several python modules present the problem:
dpkg: error processing package python-rosdep-modules (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ros-melodic-rqt-robot-monitor:
ros-melodic-rqt-robot-monitor depends on python-rospkg-modules; however:
Package python-rospkg-modules is not installed.
In addition, several modules present the following error as well (even running the quoted command does not solve the problem):
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-rosdep-modules : Depends: python-rospkg-modules (>= 1.2.7) but it is not installed
Depends: python-rosdistro-modules (>= 0.7.5) but it is not installed
ros-melodic-rqt-gui : Depends: python-rospkg-modules but it is not installed
ros-melodic-rqt-robot-monitor : Depends: python-rospkg-modules but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
By chance someone has done something similar?
Thank you!