小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ros2 topic echo /speed 显示话题内容时会突然报错
-
在使用ros2 topic echo /speed这个命令时开始正常,然后突然出现什么也不显示,最后报错,类似ros2 node list之类的命令也用不了了,但rviz2还可以正常通信显示,电脑重启后又正常,ubuntu20.04,电脑安装了两个版本,rolling和galatic,请各位大佬帮忙看看,谢谢
Traceback (most recent call last):
File "/opt/ros/rolling/bin/ros2", line 11, in <module>
load_entry_point('ros2cli==0.17.1', 'console_scripts', 'ros2')()
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2cli/cli.py", line 89, in main
rc = extension.main(parser=parser, args=args)
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2topic/command/topic.py", line 41, in main
return extension.main(args=args)
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2topic/verb/echo.py", line 206, in main
with NodeStrategy(args) as node:
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2cli/node/strategy.py", line 27, in init
if use_daemon and is_daemon_running(args):
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2cli/node/daemon.py", line 73, in is_daemon_running
return node.connected
File "/opt/ros/rolling/lib/python3.8/site-packages/ros2cli/node/daemon.py", line 42, in connected
self._proxy.system.listMethods()
File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
response = self.__transport.request(
File "/usr/lib/python3.8/xmlrpc/client.py", line 1153, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1165, in single_request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1278, in send_request
self.send_content(connection, request_body)
File "/usr/lib/python3.8/xmlrpc/client.py", line 1308, in send_content
connection.endheaders(request_body)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/lib/python3.8/http/client.py", line 922, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.8/socket.py", line 808, in create_connection
raise err
File "/usr/lib/python3.8/socket.py", line 796, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out -