Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom message problem #71

Open
dsponer opened this issue May 24, 2023 · 2 comments
Open

Custom message problem #71

dsponer opened this issue May 24, 2023 · 2 comments

Comments

@dsponer
Copy link

dsponer commented May 24, 2023

Hello

I have a problem with my custom message

RuntimeError: type support not from this implementation, at /tmp/binarydeb/ros-foxy-rmw-fastrtps-cpp-1.3.1/src/subscription.cpp:91, at /tmp/binarydeb/ros-foxy-rcl-1.1.14/src/rcl/subscription.c:168
ROS2.Utils.CheckReturnEnum (System.Int32 ret) (at <1afb0f4c40de4f0192212174d671b2ca>:0)
ROS2.Subscription1[T]..ctor (System.String subTopic, ROS2.Node node, System.Action1[T] cb, ROS2.QualityOfServiceProfile qos) (at <1afb0f4c40de4f0192212174d671b2ca>:0)
ROS2.Node.CreateSubscription[T] (System.String topic, System.Action1[T] callback, ROS2.QualityOfServiceProfile qos) (at <1afb0f4c40de4f0192212174d671b2ca>:0) ROS2.ROS2Node.CreateSubscription[T] (System.String topicName, System.Action1[T] callback, ROS2.QualityOfServiceProfile qos) (at Assets/Ros2ForUnity/Scripts/ROS2Node.cs:92)
ROS2.ROS2Light.Update () (at Assets/Ros2ForUnity/Scripts/ROS2Light.cs:53)

Custom messages were successfully collected. The C# script sees these messages.
But at the node startup stage, an error crashes

A custom message consists of two fields
uint8 chennel
uint8 brightness

My configuration
Ubuntu 20.04
ROS Foxy
.NET 3.1
ROS2Unity: foxy_fixes_for_custom_messages

@pijaro
Copy link
Collaborator

pijaro commented Jun 16, 2023

foxy_fixes_for_custom_messages is some old branch of Ros2ForUnity. Can you try to build it with a stable branch like 1.2.0?

Did you take the whole asset (R2FU with your custom messages) from the install directory or did you mix your msgs libs with some other release?

Is it standalone or overlay mode? You might also be mixing the build and sourced version of ROS 2. Make sure you are running standalone without ROS 2 sourced or while using overlay - use the same ROS 2 distro.

@izakisyoutarou
Copy link

Sorry, I am getting the same error.
I got the directory from install/asset.
The build was built in standalone mode.
I am using glactic as distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants