Open samiamlabs opened 1 year ago
Can you verify that the ROS_DISTRO
is set to humble
and the /opt/ros/humble/lib
is in LD_LIBRARY_PATH
after sourcing the ROS 2?
env | grep ROS_DISTRO
env | grep LD_LIBRARY_PATH
sam@sam-blade:~$ env | grep ROS_DISTRO
ROS_DISTRO=humble
sam@sam-blade:~$ env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib
How did you import the .zip package to unity? I tried to renaming it .unitypackage but got an error for couldn't decompress. I tried decompressing the zip and drag the two folders into an empty project still doesn't seem to work.
Edit: Actually nvm I figured it out but I am also have the same problem as @samiamlabs with ros2 humble
As a quick solution, you might look for the check that outputs this message and disable the check. If the check is invalid and not a symptom of some mismatch, this should be enough. We will be looking into it next week.
As @adamdbrw mentioned, try to check the versions which are detected by Ros2ForUnity
by adding debug log to Ros2ForUnity/Scripts/ROS2ForUnity.cs
somewhere in the if
statement in line 180:
Debug.Log("Sourced: " + ros2SourcedCodename + ". From metadata: " + ros2FromRos2csMetadata);
Logged ROS 2 versions should be the same and not empty. If it is not the case, then there might be an issue with path resolution.
Can you also make sure that Ros2ForUnity
folder lives inside project Assets
?:
Assets/
└── Ros2ForUnity
├── Plugins
│ └── Linux
│ └── x86_64
└── Scripts
└── Time
Same happened with me then I tried running the Unity from terminal as shown below and it worked.
https://github.com/RobotecAI/ros2-for-unity/issues/32#issuecomment-1023981776
Describe the bug 1.2.0 does not seem to work for me on Linux 22.04 and Unity 2021.3.2 (LTS). It looks like it was an overlay release so I installed humble using apt-get on my computer and started the editor from a terminal where I already sourced ROS2 humble.
To Reproduce Steps to reproduce the behavior:
source /opt/ros/humble/setup.bash
Unity/Hub/Editor/2021.3.20f1/Editor
Expected behavior No errors
Screenshots![image](https://user-images.githubusercontent.com/5682888/223730995-4477ebe9-88d7-4620-9781-1678bcd010a6.png)
Desktop (please complete the following information):