RobotecAI / ros2-for-unity

High-performance ROS2 solution for Unity3D
Apache License 2.0
479 stars 61 forks source link

How to solve 'UnsatisfiedLinkError: librcl.so'? #109

Closed phs4530 closed 4 months ago

phs4530 commented 5 months ago

Hello! Thank you for reading my question. I am planning to use ros2 using the strongalone version. However, the following error occurs. Is there a solution? Thank you for your reply in advance

-- image

image

omerts commented 5 months ago

This is really a show stopper for us, if anyone can help solve this, please update

adamdbrw commented 4 months ago

It looks like your ROS distro is not visible. In case of standalone version, ROS libraries should be shipped with the Unity package. Are you building from source, or using a release package?

omerts commented 4 months ago

@adamdbrw I used: Ros2ForUnity_humble_standalone_ubuntu22.zip

adamdbrw commented 4 months ago

Unfortunately, our support for the project is very limited at the moment, as it just works for one project we use it for and all the other projects are on Open 3D Engine, much recommended as free Unity3D alternative

adamdbrw commented 4 months ago

Perhaps @pijaro could help you as he prepared the build

pijaro commented 4 months ago

The second error may be connected to the issue (calling get_data from non-main thread).

Can you confirm, that running everything from the main thread still throws the ROS 2 error?

phs4530 commented 4 months ago

@omerts I found it resolved in the latest branch of ros2cs.

However, the distribution version has not been updated yet.