Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 24

Lag between goal publish, accept, and feedback

$
0
0
Hello! Using ROS melodic and Rosbridge Server, I'm seeing on average a delay of about 115-130ms between the time that I publish my goal, receive a status message that is accepted, and then receive my first feedback message through the websocket. Unfortunately, our robot is capturing events that occur so quickly that this represents a pretty significant amount of time for us, so I need to find a way to bring it down. The breakdown is about 100ms between goal submit and status and then from status to feedback it's around 15-30ms. I'm not sure that the status and feedback messages are related, since the status topic publishes at 100hz, but the feedback topic should have no such delay. There are no sleep commands in the code that would have an impact here and nothing in the code jumps out at me, which leads me to believe that this is just the way it's expected to behave or something is misconfigured or... I should be using C++ instead of Python? I'm not sure but I'd love advice. I'm using ROS melodic but saw this in Kinetic as well. My server is written in Python and it's setup as a Simple Action Server. The client is JS using the latest roslibjs. Connection is via websocket, I'm using Rosbridge Server. Open to any and all recommendations, happy to provide any more information that may be needed.

Viewing all articles
Browse latest Browse all 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>