当前位置: 首页 > news >正文

ROS noetic [turtle1_tf_broadcaster-4] process has died

运行下面的指令

roslaunch turtle_tf turtle_tf_demo.launch

报错:

... logging to /home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/roslaunch-ubun-29906.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubun:33955/

SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.14
 * /scale_angular: 2.0
 * /scale_linear: 2.0
 * /turtle1_tf_broadcaster/turtle: turtle1
 * /turtle2_tf_broadcaster/turtle: turtle2

NODES
  /
    sim (turtlesim/turtlesim_node)
    teleop (turtlesim/turtle_teleop_key)
    turtle1_tf_broadcaster (turtle_tf/turtle_tf_broadcaster.py)
    turtle2_tf_broadcaster (turtle_tf/turtle_tf_broadcaster.py)
    turtle_pointer (turtle_tf/turtle_tf_listener.py)

auto-starting new master
process[master]: started with pid [29914]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 1d03f5da-9257-11ec-8b40-912958d5c310
process[rosout-1]: started with pid [29924]
started core service [/rosout]
process[sim-2]: started with pid [29931]
process[teleop-3]: started with pid [29932]
process[turtle1_tf_broadcaster-4]: started with pid [29933]
/usr/bin/env: “python”: 没有那个文件或目录
process[turtle2_tf_broadcaster-5]: started with pid [29934]
/usr/bin/env: “python”: 没有那个文件或目录
process[turtle_pointer-6]: started with pid [29937]
/usr/bin/env: “python”: 没有那个文件或目录
Reading from keyboard
---------------------------
Use arrow keys to move the turtle. 'q' to quit.

[turtle1_tf_broadcaster-4] process has died [pid 29933, exit code 127, cmd /opt/ros/noetic/lib/turtle_tf/turtle_tf_broadcaster.py __name:=turtle1_tf_broadcaster __log:=/home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle1_tf_broadcaster-4.log].
log file: /home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle1_tf_broadcaster-4*.log
[turtle2_tf_broadcaster-5] process has died [pid 29934, exit code 127, cmd /opt/ros/noetic/lib/turtle_tf/turtle_tf_broadcaster.py __name:=turtle2_tf_broadcaster __log:=/home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle2_tf_broadcaster-5.log].
log file: /home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle2_tf_broadcaster-5*.log
[turtle_pointer-6] process has died [pid 29937, exit code 127, cmd /opt/ros/noetic/lib/turtle_tf/turtle_tf_listener.py __name:=turtle_pointer __log:=/home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle_pointer-6.log].
log file: /home/mc/.ros/log/1d03f5da-9257-11ec-8b40-912958d5c310/turtle_pointer-6*.log

从报错上来看,是找不到python,

process[turtle1_tf_broadcaster-4]: started with pid [29933]
/usr/bin/env: “python”: 没有那个文件或目录
process[turtle2_tf_broadcaster-5]: started with pid [29934]
/usr/bin/env: “python”: 没有那个文件或目录
process[turtle_pointer-6]: started with pid [29937]
/usr/bin/env: “python”: 没有那个文件或目录

于是我打开

/opt/ros/noetic/lib/turtle_tf/turtle_tf_broadcaster.py

看了一下,确实里面出现的是

#!/usr/bin/env python

使用which python也查不到任何信息,which python3则可以找到:/usr/bin/python3,

于是果断创建快捷链接,

sudo ln -s /usr/bin/python3 /usr/bin/python

问题解决。

参考:

[turtle1_tf_broadcaster-4] process has died - ROS Answers: Open Source Q&A Forum

相关文章:

  • Ubuntu下使用unzip或p7zip解压带密码的zip文件
  • libcurl: (51) SSL: no alternative certificate subject name
  • SSL和SSH和OpenSSH,OpenSSL有什么区别
  • Ubuntu18.04网络连接图标上显示问号
  • Ubuntu调用USB摄像头
  • ERROR: libcudnn_adv_infer.so.8 is not a symbolic link
  • ROS error: Could not find the GUI, install the ‘joint_state_publisher_gui‘ package
  • ROS error: cannot launch node of type [arbotix_python/arbotix_driver]: arbotix_python
  • ROS error: robot_voice/iat_publish/usr/bin/ld: 找不到 -lmsc
  • ROS fatal error: alsa/asoundlib.h: 没有那个文件或目录
  • ROS ERROR: cannot launch node of type [usb_cam/usb_cam_node]: usb_camROS path [0]=/opt/ros/m
  • ROS Error: Could NOT find move_base_msgs
  • ROS Error: [rospack] Error: package ‘map_server‘ not found
  • How to remove PPA repository on Ubuntu and Debian
  • 用appimagelauncher安装markdown编辑工具marktext
  • [deviceone开发]-do_Webview的基本示例
  • Android开发 - 掌握ConstraintLayout(四)创建基本约束
  • ComponentOne 2017 V2版本正式发布
  • ES学习笔记(10)--ES6中的函数和数组补漏
  • Java Agent 学习笔记
  • Javascripit类型转换比较那点事儿,双等号(==)
  • Python_网络编程
  • seaborn 安装成功 + ImportError: DLL load failed: 找不到指定的模块 问题解决
  • Service Worker
  • Spring框架之我见(三)——IOC、AOP
  • Web设计流程优化:网页效果图设计新思路
  • 阿里云容器服务区块链解决方案全新升级 支持Hyperledger Fabric v1.1
  • 半理解系列--Promise的进化史
  • 第三十一到第三十三天:我是精明的小卖家(一)
  • 解析 Webpack中import、require、按需加载的执行过程
  • 聊聊spring cloud的LoadBalancerAutoConfiguration
  • 我这样减少了26.5M Java内存!
  • 一天一个设计模式之JS实现——适配器模式
  • ​LeetCode解法汇总307. 区域和检索 - 数组可修改
  • ​力扣解法汇总1802. 有界数组中指定下标处的最大值
  • #{}和${}的区别?
  • #pragma multi_compile #pragma shader_feature
  • (04)Hive的相关概念——order by 、sort by、distribute by 、cluster by
  • (11)MATLAB PCA+SVM 人脸识别
  • (zz)子曾经曰过:先有司,赦小过,举贤才
  • (编程语言界的丐帮 C#).NET MD5 HASH 哈希 加密 与JAVA 互通
  • (亲测)设​置​m​y​e​c​l​i​p​s​e​打​开​默​认​工​作​空​间...
  • (十六)Flask之蓝图
  • .NET CF命令行调试器MDbg入门(一)
  • .NET高级面试指南专题十一【 设计模式介绍,为什么要用设计模式】
  • .NET命名规范和开发约定
  • .net使用excel的cells对象没有value方法——学习.net的Excel工作表问题
  • .vue文件怎么使用_vue调试工具vue-devtools的安装
  • .xml 下拉列表_RecyclerView嵌套recyclerview实现二级下拉列表,包含自定义IOS对话框...
  • @Async注解的坑,小心
  • @Transactional 竟也能解决分布式事务?
  • [ Linux 长征路第五篇 ] make/Makefile Linux项目自动化创建工具
  • [20150707]外部表与rowid.txt
  • [android] 看博客学习hashCode()和equals()
  • [BUUCTF 2018]Online Tool