RobotecAI / ros2-for-unity

High-performance ROS2 solution for Unity3D
Apache License 2.0
448 stars 58 forks source link

RuntimeError - when using custom messages #55

Closed kimjjs100 closed 1 year ago

kimjjs100 commented 1 year ago

Hi, there? I have some problem when using my custom msgs.

Describe the bug

RuntimeError: type support not from this implementation, at /tmp/binarydeb/ros-foxy-rmw-fastrtps-cpp-1.3.1/src/publisher.cpp:86, at /tmp/binarydeb/ros-foxy-rcl-1.1.14/src/rcl/publisher.c:180
ROS2.Utils.CheckReturnEnum (System.Int32 ret) (at <e0a206ab668a41a18192d5dc278b96ab>:0)
ROS2.Publisher`1[T]..ctor (System.String pubTopic, ROS2.Node node, ROS2.QualityOfServiceProfile qos) (at <e0a206ab668a41a18192d5dc278b96ab>:0)
ROS2.Node.CreatePublisher[T] (System.String topic, ROS2.QualityOfServiceProfile qos) (at <e0a206ab668a41a18192d5dc278b96ab>:0)
ROS2.ROS2Node.CreatePublisher[T] (System.String topicName, ROS2.QualityOfServiceProfile qos) (at Assets/Ros2ForUnity/Scripts/ROS2Node.cs:75)
ROS2.ToKSOE.Update () (at Assets/ToKSOE.cs:44)

Desktop (please complete the following information):

I need your help a lot !! How should I handle this issue?

pijaro commented 1 year ago

Is it possible that you could share the contents of your custom messages (package)? I could try to reproduce it locally.

Also, did you make sure you cleared your Unity plugins folder and {build/install} before copying and building new libraries? The error looks like some libraries might be from different versions :thinking:

pijaro commented 1 year ago

Did you manage to find the solution to your problem?

kimjjs100 commented 1 year ago

I'm sorry.. I'm not working on solving this problem anymore. When it's resolved, I'll raise it as an issue again.