运行ros节点执行ctrl+c后进程会转而执行rosspin()后面的程序,但是如果在一定时间内程序没有执行完毕,进程会强制退出,并抛出”escalating to SIGTERM“错误,为了解决此问题,可以修改ros配置文件

sudo gedit /opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py

将该文件中的_TIMEOUT_SIGINT = 15.0 #seconds”中的15秒改为期望运行的最大时间。

相关文章:

  • 2022-12-23
  • 2022-01-28
  • 2021-11-27
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-21
  • 2021-12-31
  • 2021-08-09
  • 2021-09-08
  • 2021-04-20
  • 2021-10-24
  • 2021-05-30
相关资源
相似解决方案