ros2-for-unity
ros2-for-unity copied to clipboard
failed to get symbol 'rmw_init_options_init'
Describe the bug
The standalone 1.3 release for humble/ubuntu 22.04 fails to get a symbol when running the Ros2cs.Init()
function.
To Reproduce Steps to reproduce the behavior:
- Start with a clean Ubuntu 22.04 install
- Do not install ROS2 (not sure if this is relevant)
- Create a new Unity project with editor version 2022.3.7
- Install
libspdlog-dev
using apt-get - Download and unzip https://github.com/RobotecAI/ros2-for-unity/releases/download/1.3.0/Ros2ForUnity_humble_standalone_ubuntu22.zip
- Move the unzipped folder under Assets in the Unity project.
- Add the ROS2UnityComponent script to a game object in the scene.
- Press play
- See error
The full error is:
RuntimeError: failed to get symbol 'rmw_init_options_init' due to Environment variable 'AMENT_PREFIX_PATH' is not set or empty, at ./src/functions.cpp:171, at ./src/rcl/init_options.c:75
Screenshots
Desktop (please complete the following information):
- OS: [Ubuntu22.04]
- ros2 distro [humble]
- ros2-for-unity version [1.3.0]
- ros2 environment setup [single pc]