Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS_VERSION env variable not set at build time [linux-aarch64, osx-arm64] #52

Open
1 task done
achim-k opened this issue Mar 1, 2023 · 0 comments
Open
1 task done
Labels
bug Something isn't working linux-aarch64 osx-arm64

Comments

@achim-k
Copy link

achim-k commented Mar 1, 2023

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

In #49 we are trying to add the package foxglove_bridge which is a hybrid package that can be built both for ROS 1 and ROS 2. Which version is built depends on the ROS_VERSION environment variable, which is typically (when building with catkin/colcon) set by an env-hook of the package ros_environment (on which foxglove_bridge depends).

However, when building robostack for linux-aarch64 or osx-arm64 we noticed that the ROS_VERSION is not set, and we get the following error:

CMake Error at CMakeLists.txt:166 (message):
  ROS_VERSION environment variable must be 1 or 2

It seems that the env-hooks are not called and hence the ROS environment variables are not set. Maybe the easiest solution is to set these manually. E.g. for Humble:

export ROS_VERSION=2
export ROS_DISTRO=humble
export ROS_PYTHON_VERSION=3

Installed packages

N/A

Environment info

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux-aarch64 osx-arm64
Projects
None yet
Development

No branches or pull requests

2 participants