rosbride for ros2 foxy

asked 2020-09-04 08:04:11 -0500

dinesh gravatar image

updated 2020-09-04 08:09:30 -0500

I have installed the rosbride suite branch ros2 for ros2 foxy in raspberry pi 4 B running ubuntu server 20.04. I built the package using colcon build command and everything built successfully. But when i run the rosbride server with cmd:

ros2 launch rosbridge_server rosbridge_websocket_launch.xml

I get this errors:

[rosbridge_websocket-1] ERROR:tornado.application:Uncaught exception GET / (192.168.1.80)

[rosbridge_websocket-1] HTTPServerRequest(protocol='http', host='192.168.1.90:9090', method='GET', uri='/', version='HTTP/1.1', remote_ip='192.168.1.80')
[rosbridge_websocket-1] Traceback (most recent call last):
[rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/web.py", line 1703, in _execute
[rosbridge_websocket-1]     result = await result
[rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/websocket.py", line 278, in get
[rosbridge_websocket-1]     await self.ws_connection.accept_connection(self)

    [rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/websocket.py", line 881, in accept_connection
[rosbridge_websocket-1]     await self._accept_connection(handler)
[rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/websocket.py", line 964, in _accept_connection
[rosbridge_websocket-1]     await self._receive_frame_loop()
[rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/websocket.py", line 1118, in _receive_frame_loop
[rosbridge_websocket-1]     await self._receive_frame()
[rosbridge_websocket-1]   File "/home/ubuntu/.local/lib/python3.8/site-packages/tornado/websocket.py", line 1165, in _receive_frame
[rosbridge_websocket-1]     if new_len > self.params.max_message_size:
[rosbridge_websocket-1] TypeError: '>' not supported between instances of 'int' and 'NoneType'

Here is the python program running in my local pc:

from __future__ import print_function
import roslibpy

client = roslibpy.Ros(host='ip of remote pi, port=9090)
client.run()

listener = roslibpy.Topic(client, '/chatter', 'std_msgs/String')
listener.subscribe(lambda message: print('Heard talking: ' + message['data']))

try:
    while True:
        pass
except KeyboardInterrupt:
    client.terminate()
edit retag flag offensive close merge delete