ROS Melodic Python 3 Source

asked 2019-04-30 14:17:30 -0600

rukie gravatar image

As I'm a glutton for punishment I keep trying to find a way to get Python 3 to work with ROS, even starting from source.

Side note: I reviewed ROS2, but the TF2 package isn't incorporated into ROS2 Python3 yet.

Anyways, I tried with a fresh install of Ubuntu 18.04 with the commands below, but I don't seem to download the resources consistently. Only about 4 packages downloaded with the VCSTools fix described below.

I guess what I'm asking, does anyone have a well described path on how to build ROS1 (anything) with Python3 support? Really all I desire is ROS commands, debugging tools, and TF2.

I've tried following these bash.scripts as well, which also seem to fail similarly.

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

sudo apt-key adv --keyserver hkp:// --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

sudo apt update
# can probably leave out wstool?
sudo apt install python3-rosdep python3-rosinstall-generator python3-wstool python3-rosinstall build-essential

sudo rosdep init

sudo rosdep update

cd ~
git clone
cd vcstools
git checkout mock_server_tar_test
python3 develop

cd ~
git clone
cd wstool
python develop

mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws

rosinstall_generator desktop_full --rosdistro melodic --deps --tar > melodic-desktop-full.rosinstall
wstool init -j8 src melodic-desktop-full.rosinstall
edit retag flag offensive close merge delete