Closed Rive4 closed 3 years ago
Hi @Rive4 I missed your issue...
Are you still experiencing problems or were you able to solve the problem?
Hi @EricVoll ,
Hi @Rive4 I missed your issue...
Are you still experiencing problems or were you able to solve the problem?
Finally what I did was to send each vertex one by one instead of in a list. I know that it is not the best way to do it but at least I receive the messages correctly in ROS.
btw: There is a specific message type in ROS for meshes: here
Thank you for the mesh message reference, I did not know about it before.
ok. Still not sure why it failed though. I didn't run your code yet, but it looks like the publisher was not finished advertising at the time the first message was sent.
Advertising usually takes a bit. So you might want to wait with publishing until publicationId
is set.
Did the code also fail when running it in Editor mode?
I didn't test it in Editor mode. I use to compile the solution so I can connect the PC (in Ubuntu) with the developed program.
In any case, this seems to not be fork-related and should also happen using the normal ros-sharp fork. If I remember correctly, I had the issue once as well and either changed to the correct message, created my own "array message" where the whole list could be sent in one go, or only published one message per update cycle. If I remember correctly, ros-sharp has issues to publish multiple messages from one publisher in one update cycle.
I found a bug!
[ ] I am using the latest ROS# version available here on the master branch.
[x] I am adding all required information, code and data files, screenshots and log files so that you can reproduce the problem.
My OS is: Windows 10
My Unity Version is: 2019.4.2f1
My ROS Distribution is: 1 version before the latest (28/may/2021)
My Build Target Platform is: Hololens 2 Here is my bug description:
Hello, I was created a publisher which publishes Vector3 with the following code.
The 'verticesList' is filled in another script but I can confirm that it does well, because when I print verticesList[0].ToString() it works well.
So, when I compile and use the application for Hololens 2, after running the routine which publishes these messages, I find the following error in the UnityPlayer.log file in HL2:
This error is happening while it is trying to publish the message (Publish(message);) What I see the most strange is that the rest of messages I created are working perfectly and have more complex.