Skip to content

Setup script ignores actual value of $ROS_DISTRO environment variable #1

Description

@AlexSein98

Per the ROS2 Humble installation instructions, I successfully installed Humble into ~/ros2_humble/. I then successfully ran the talker-listener demo.

Per a SpaceTeamsROS error message, I then set the $ROS_DISTRO environment variable, but it still didn't work. The error was:

Could not find /opt/ros/~/ros2_humble/setup.bash. Please check your ROS 2 installation.

After looking at the setup file, it seems like this sequence enforces that ROS can only be installed in /opt/ros/:
Image

I'm going to change this to actually listen to the $ROS_DISTRO variable, since this currently directly conflicts with standard ROS installation instructions and will be confusing for new users. Additionally, I'll change the readme to include something about setting the $ROS_DISTRO environment variable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions