之前用ros2执行各种命令都没有问题,但是最近突然不能用了,各种“卡死”,一直在运行状态,也不输出,目前还找不到原因:
-
比如用 “ros2 topic list”,执行后,没有任何输出,也不退出
-
比如用 ”ros2 run demo_nodes_cpp talker”,执行后,也没有输出,也不报错,就一直运行着
以”ros2 run demo_nodes_cpp talker”为例,完整的调试信息如下:
C:\Windows\System32>ros2 run demo_nodes_cpp talker --ros-args --log-level debug
[DEBUG] [1721977709.505315400] [rclcpp]: signal handler installed
[DEBUG] [1721977709.505680900] [rcl]: Initializing wait set with '0' subscriptions, '2' guard conditions, '0' timers, '0' clients, '0' services
[DEBUG] [1721977709.505695300] [rclcpp]: deferred_signal_handler(): waiting for SIGINT/SIGTERM or uninstall
[DEBUG] [1721977709.505780700] [talker]: Load library topics_library.dll
[DEBUG] [1721977709.507710000] [talker]: Instantiate class rclcpp_components::NodeFactoryTemplate<demo_nodes_cpp::Talker>
[DEBUG] [1721977709.508035400] [rcl]: Couldn't parse arg 0 (C:\opt\ros2_humble\lib\demo_nodes_cpp\talker.exe) as a remap rule in its deprecated form. Error: Expecting token or wildcard, at C:\ci\ws\src\ros2\rcl\rcl\src\rcl\arguments.c:1170
[DEBUG] [1721977709.508257700] [rcl]: Initializing node 'talker' in namespace ''
[DEBUG] [1721977709.508456500] [rcl]: Using domain ID of '0'
我尝试过重装ros2,重置网络,关闭防火墙,但是都没有效果,各种ros2命令还是“卡死”,不输出,不报错,也不退出,非常奇怪,有没有高手可以指导我一下,该如何破解这个问题?谢谢了!