autowarefoundation / AWSIM-Labs

Open source simulator for self-driving vehicles
https://autowarefoundation.github.io/AWSIM-Labs/
Other
7 stars 7 forks source link

ROS2 not working #95

Open ceccocats opened 1 week ago

ceccocats commented 1 week ago

Hi, I just cloned main and have this error with ROS library:

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
ROS2.Utils.CheckReturnEnum (System.Int32 ret) (at <2034886caef046439cfa6ebcd9ed8cd7>:0)
ROS2.Ros2cs.Init () (at <2034886caef046439cfa6ebcd9ed8cd7>:0)
ROS2.ROS2ForUnity..ctor () (at Assets/Ros2ForUnity/Scripts/ROS2ForUnity.cs:326)
ROS2.ROS2UnityCore..ctor () (at Assets/Ros2ForUnity/Scripts/ROS2UnityCore.cs:55)
AWSIM.SimulatorROS2Node.Initialize () (at Assets/AWSIM/Scripts/ROS/SimulatorROS2Node.cs:37)
This error is the first then each ROS commands fails.
Do you know what could be the issue? do i need to set AMENT_PREFIX_PATH?

I am already using original version of AWSIM without any issue.

xmfcx commented 6 days ago

Could you try the https://github.com/autowarefoundation/AWSIM-Labs/releases/tag/v1.1.0 release first and tell us if it works for you?

xmfcx commented 6 days ago

Then we can look into how you set up your Unity project and troubleshoot it.