[x] I am at the right place and my issue is directly related to ROS#. General technical questions I would post e.g. at ROS Answers or Stack Overflow. For library-specific questions I would look for help in the corresponding library forums.
[x] I have thoroughly read the Contributing Guideline and writing this issue is the right thing to do in my case.
I have a question!
[x] I searched the Wiki, open and closed issues for an answer. I tried my best to find the answer by myself without success. I believe that the discussion we will have in this issue, and the solutions we might find, will help me, and likely other community members who have a similar problem.
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!
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 forRosSharp.RosBridgeClient.MessageTypes.Shape.MeshTriangle[] triangles
andRosSharp.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 ofshape_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!