Skip to content
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

Huge delay between server and client #889

Open
jesusramondovale opened this issue Nov 17, 2023 · 0 comments
Open

Huge delay between server and client #889

jesusramondovale opened this issue Nov 17, 2023 · 0 comments
Labels

Comments

@jesusramondovale
Copy link

jesusramondovale commented Nov 17, 2023

I'm using a DEBIX SBC, connected through a switch to a Windows laptop running a web client. I want to communicate quickly the /tf_baselink topic to the web client.

I'm using rosbridge_websocket (on server side) and roslibjs (client side)

  • Library Version: latest
  • ROS Version: Humble Hawksbill
  • Platform / OS: Linux Ubuntu 22.04

Steps To Reproduce
This is my JavaScript client:

var tfListener = new ROSLIB.Topic({
  ros: ros,
  name: '/tf_baselink',
  messageType: 'geometry_msgs/msg/TransformStamped',
  queue_size: 1
});


tfListener.subscribe(function (message) {
  console.log("New tf received!");
  console.log("X: " + message.transform.translation.x + ", Y: ", message.transform.translation.y);
}

Expected Behavior
I want to see the updated values on the web client with a minimum delay of 1-2 secs

Actual Behavior
I'm seeing the values on web client with 20-30 seconds of delay with respect to the ros2 topic echo value on server machine. So I know its not a publisher problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant