Open antoabbot opened 4 years ago
Update: This problem happens when the .NET code above runs on a different machine (Mac OS) to the Master (Ubuntu on Nvidia Jetson). When I run the .NET code on the Jetson, then the Publishers work concurrently as designed.
Your code should generally work. Does a single publisher work with the ROS master running on a different machine (e.g. only the GeoffPanTilt
and the Twist
separately)? Are both topics visible on the master machine when you type rostopic list
? Is the geoff_msgs
definition compiled on the machine that runs the Master?
Yes yes and yes. The final usage is with it all on one machine and it runs perfectly with both publishers in this case. So I’m not too bothered except for when I’m debugging and developing from visual studio off the bot.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Andreas Köpf notifications@github.com Sent: Tuesday, June 30, 2020 11:53:12 AM To: Xamla/ROS.NET ROS.NET@noreply.github.com Cc: antoabbot ahabbot@gmail.com; Author author@noreply.github.com Subject: Re: [Xamla/ROS.NET] Running two Publishers in same thread does not work (#10)
Your code should generally work. Does a single publisher work with the ROS master running on a different machine (e.g. only the GeoffPanTilt and the Twist separately)? Are both topics visible on the master machine when you type rostopic list? Is the geoff_msgs definition compiled on the machine that runs the Master?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Xamla/ROS.NET/issues/10#issuecomment-651689971, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD2OCJPSV3APWAJDRATKNM3RZGYYRANCNFSM4OLRSS6Q.
Hi
I am attempting to run two publishers in the same thread. I can get either to run fine and publish messages to my robot (one is a camera Pan/Tilt and one is a velocity command). However when both are instantiated, neither run, and sometimes (I believe) I have had one or the other intermittently running. The firing frequency is high for the Velocity message as it will timeout on the bot
My sample code is attached and the behaviour can be triggered via command line arguments. Please advise how to run multiple publishers in an application? In my real micro service, each Publish is triggered by some incoming signalR requests, but I get the same behaviour
It seems that even the instantiation of the Publisher via Node.Advertise<>() causes the issue