Closed AlgoryxJosef closed 2 years ago
Thank you for raising the issue, we will look into it! This might be related to ros2 changes since we last built r2fu on Windows. Custom messages indeed require a build (or at least a partial build) of ros2cs / r2fu.
I'm closing this since this is a duplicate of: https://github.com/RobotecAI/ros2cs/issues/14
First of all, great work providing this ROS2 UnityPackage! It's exactly what I'm looking for and have already had the pleasure of trying it out some. I need to be able to use my own cusom message types, and as I understood it, I need to build ros2-for-unity from source to be able to do that (or is there some other way?).
I have attemted to build from source, carefully following the instructions. I have tried both with a pre-built ROS2 (Foxy) that I installed from: https://ms-iot.github.io/ROSOnWindows/GettingStarted/SetupRos2.html and also with a ROS2 (Galactic) that I built from source myself. Both versions work fine as-is. I use Windows.
When I try to build the ros2-for-unity project, I get the same error message regardless of which ROS2 installation I source prior to starting the build. It seems to be related to
generate_cs
not beeing found. I get the following error message:I have attached the complete build log, if it helps. ROS-for-Unity-build-err-ros2algoryx.md
I have done a little bit of digging my self, and noticed that the path in
rosidl_generator_cs_module
inside src/ros2cs/src/ros2cs/rosidl_generator_cs/bin/rosidl_generator_cs points to a file that does not exists. It points to something like ros2-for-unity\install\lib\rosidl_generator_cs/init.py but the file actually seems to be located at ros2-for-unity\install\lib\site-packages\rosidl_generator_cs/init.pyI tried manually patching this path, and the build now continued a little while longer, but now I get a new error saying :
So I'm guessing that there may be some other issues as well. I hope this info helps, I would be really exited being able to use ros2-for-unity with custom messages. Let me know if I can help out, I can test certain things here locally for example if it helps.
Best regards, Josef