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

what different between foxy installation on Ubuntu

asked 2022-01-14 00:22:16 -0600

CarlDegio gravatar image

Before some time (maybe 3 months), the install of foxy use apt to install at /opt/ros/foxy. But recently, I found the doc replace install path to home, /home/username/ros2_foxy(https://docs.ros.org/en/foxy/Installa...).

However, things became strange when I want to install some plugins for ros2 such as gazebo (by apt, sudo apt install ros-foxy-gazebo-ros-pkgs), it still install at /opt/ros/foxy. Thus, I must source two path, source /opt/ros/foxy/setup.bash and . ~/ros2_foxy/ros2-linux/setup.bash if I want to activate both ros2 and plugins.

So is there some way to use ros2 normally, such as installing plugins under /home/username/ros2_foxy?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-14 19:03:33 -0600

osilva gravatar image

updated 2022-01-24 23:04:16 -0600

Hi @CarlDegio,

The installation instructions are from a pre-built binary package, you downloaded: ~/Downloads/ros2-package-linux-x86_64.tar.bz2, then sourced it by using:

. ~/ros2_foxy/ros2-linux/setup.bash

Therefore your environment is located at~/ros2_foxy/ros2-linux

However, when you install ROS2 from apt, this is the procedure to follow: https://docs.ros.org/en/foxy/Installa...

To install you using apt:

sudo apt install ros-foxy-desktop

and source to:

source /opt/ros/foxy/setup.bash

Then your environment will be located at: /opt/ros/foxy/

I'd suggest to reinstall if possible, otherwise your installation will get messy and hard to track.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-01-14 00:22:16 -0600

Seen: 129 times

Last updated: Jan 24 '22