-
Notifications
You must be signed in to change notification settings - Fork 11
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
Running two Publishers in same thread does not work #10
Comments
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 |
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 iOS<https://aka.ms/o0ukef>
…________________________________
From: Andreas Köpf <[email protected]>
Sent: Tuesday, June 30, 2020 11:53:12 AM
To: Xamla/ROS.NET <[email protected]>
Cc: antoabbot <[email protected]>; Author <[email protected]>
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 GitHub<#10 (comment)>, or unsubscribe<https://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
The text was updated successfully, but these errors were encountered: