siemens / ros-sharp

ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity3D
Apache License 2.0
945 stars 364 forks source link

field type None when advertising shape_msgs/Mesh message #408

Closed crystal-butler closed 2 years ago

crystal-butler commented 2 years ago

I have a question!

Here is my question: I am creating a publisher within Unity using message type shape_msgs/Mesh as part of a larger project that uses other messages defined in ROS# as well as some custom messages. At the moment I am doing a simple test to ensure messages will publish correctly, using hard coded values for RosSharp.RosBridgeClient.MessageTypes.Shape.MeshTriangle[] triangles and RosSharp.RosBridgeClient.MessageTypes.Geometry.Point[] vertices and otherwise following patterns of working messages in the project.

My messages publish, but the rosbridge server returns this error: [id: <my_message_id>] advertise: Expected field type to be one of (<type 'str'>, <type 'unicode'>). Invalid value: None Other messages based on ROS# classes successfully advertise and publish, so I am trying to debug why my message is not getting the type correctly assigned. I have not been able to find any working examples of shape_msgs/Mesh for comparison and am new to ROS#, so not sure how to trace the source of this problem. Any assistance on tracking down the error would be welcome--thanks!

crystal-butler commented 2 years ago

It looks like this is actually related to using ROS# for UWP, so i'm closing out the issue.