Rosbridge: Could not process inbound connection
I'm trying to implement a web server to initiate a trigger to ROS, but the way I've done it (consistent with the tutorials) seems to be causing a lot of info and warning messages. I have a button that reloads the page and sets ?button=true
in the URL, and if the variable is set, the page publishes a message.
The problem is that every time it evaluates to true, the connection has to be made again, causing a delay of around 2 seconds. If I include the connection information outside of the statement evaluation, I get a series of warning messages and the messages will cease to publish when I expect them to. Am I going about this the right way?
The messages upon reloading the page are expected, since the page would be disconnecting and reconnecting to the rosbridge socket:
[INFO] [WallTime: 1460502279.235987] Client disconnected. 0 clients total.
[INFO] [WallTime: 1460502279.307687] Client connected. 1 clients total.
And the warning I receive when reloading the page but not publishing a messge:
[WARN] [WallTime: 1460502367.962932] Could not process inbound connection: [/rosbridge_websocket] is not a publisher of [/webtrig]. Topics are [['/rosout', 'rosgraph_msgs/Log']]{'message_definition': '\n', 'callerid': '/master', 'tcp_nodelay': '0', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'topic': '/webtrig', 'type': 'std_msgs/Empty'}
This warning will be repeated about five times.
It might be helpful to include the "warning messages" that you get.
I've edited the question to include them.