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

Is there a "/connected_clients" topic? #128

Open
ramezanifar opened this issue Oct 16, 2019 · 3 comments
Open

Is there a "/connected_clients" topic? #128

ramezanifar opened this issue Oct 16, 2019 · 3 comments
Labels

Comments

@ramezanifar
Copy link

Hi,
I have few questions:
Q1)
In rosbridge_suite (for ros 1), there are two very useful topics namely
/client_count
/connected_clients
I don't find these two in ros2-web-bridge. Do we have them here?

Q2)
When a client connects to the web socket server, in ros 1 bridge there are echo messages showing that a client has connected or disconnected and what topics it has subscribed to. I don't get these messages in ros2-web-bridge. Are there such messages here?

Q3)
I can have my desired port when I run the websocket server using the arguemnt
$node index.js -p 9010
but the IP address does not change for example:
$node index.js -a '192.168.1.100'
still runs the server on localhost.

Thank you in advance

@minggangw
Copy link
Member

Hi @ramezanifar, thanks for your questions!

In rosbridge_suite (for ros 1), there are two very useful topics namely

Unfortunately, ros2-web-bridge doesn't offer these two topics now.

Are there such messages here?

If you want to see what's going on as echo message, you can enable debug:
DEBUG=ros2-web-bridge:*

$node index.js -a '192.168.1.100'

Currently, we leverage ws to set up a server, do you want to use an external server? like: https://github.com/websockets/ws#external-https-server

@ramezanifar
Copy link
Author

Thank you for the reply

Unfortunately, ros2-web-bridge doesn't offer these two topics now.

Please consider them.

DEBUG=ros2-web-bridge:*

Where exactly do you put this line? Is this a bash command?

Thank you

@minggangw
Copy link
Member

  1. I'd like to add them if I have spare time :)
  2. It's for the bash command, you can check out https://www.npmjs.com/package/debug for more information.

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

2 participants