ROS noetic [turtle1_tf_broadcaster-4] process has died

2024-03-15 22:32

本文主要是介绍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: turtle2NODES/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:11311setting /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

这篇关于ROS noetic [turtle1_tf_broadcaster-4] process has died的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/813463

相关文章

ROS - C++实现RosBag包回放/提取

文章目录 1. 回放原理2. 回放/提取 多个话题3. 回放/提取数据包,并实时发布 1. 回放原理 #include <ros/ros.h>#include <rosbag/bag.h>#include <std_msgs/String.h>int main(int argc, char** argv){// 初始化ROS节点ros::init(argc, argv,

ROS - C++实现RosBag包录制

文章目录 1. 录制原理2. 录制多个话题3. 订阅ROS消息,实时录制 1. 录制原理 #include <ros/ros.h>#include <rosbag/bag.h>#include <std_msgs/String.h>int main(int argc, char** argv){// 初始化ROS节点ros::init(argc, argv, "reco

Unity Post Process Unity后处理学习日志

Unity Post Process Unity后处理学习日志 在现代游戏开发中,后处理(Post Processing)技术已经成为提升游戏画面质量的关键工具。Unity的后处理栈(Post Processing Stack)是一个强大的插件,它允许开发者为游戏场景添加各种视觉效果,如景深、色彩校正、辉光、模糊等。这些效果不仅能够增强游戏的视觉吸引力,还能帮助传达特定的情感和氛围。 文档

hector_quadrotor编译总结 | ubuntu 16.04 ros-kinetic版本

hector_quadrotor编译总结 | ubuntu 16.04 ros-kinetic版本 基于Ubuntu 16.04 LTS系统所用ROS版本为 Kinetic hector_quadrotor ROS包主要用于四旋翼无人机的建模、控制和仿真。 1.安装依赖库 所需系统及依赖库 Ubuntu 16.04|ros-kinetic|Gazebo|gazebo_ros_pkgs|ge

hector_quadrotor编译总结 | ubuntu 14.04 ros-indigo版本

hector_quadrotor编译总结 | ubuntu 14.04 ros-indigo版本 基于Ubuntu 14.04 LTS系统所用ROS版本为 Indigo hector_quadrotor ROS包主要用于四旋翼无人机的建模、控制和仿真。 备注:两种安装方式可选:install the binary packages | install the source files

Ubuntu20.04+ros-noetic配置Cartographer

一、概述         因为要配置激光SLAM,Cartographer属于激光雷达SLAM 中比较经典的一款,在学习之前先将其在Ubuntu20.04首先配置出来并成功运行demo。 二、具体操作 (一)概述         使用平台是Windows的wsl2上的Ubuntu20.04子系统,双系统与虚拟机的安装原理与这个相同。主要依照的安装操作是官方文档,链接如下所示。 Runni

【深度学习 走进tensorflow2.0】TensorFlow 2.0 常用模块tf.config

无意中发现了一个巨牛的人工智能教程,忍不住分享一下给大家。教程不仅是零基础,通俗易懂,而且非常风趣幽默,像看小说一样!觉得太牛了,所以分享给大家。点这里可以跳转到教程。人工智能教程 本篇文章将会教大家如何 合理分配显卡资源,设置显存使用策略。主要使用tf.config模块进行设置。下面我们一起了解下具体用法和例子。 一、指定当前程序使用的 GPU 例如,在一台具有 4 块 GPU 和一个 C

出现 E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方法 (全面分析)

目录 前言1. 问题所示2. 原理分析2.1 第一阶段2.2 第二阶段 3. 解决方法4. 彩蛋4.1 错误不提示,直接卸载4.2 卸载后还是无错误提示 前言 3年前遇到过一个类似的,但是轻松解决,推荐阅读:ubuntu:E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure…解决方法 这回发

ROS学习记录-ubuntu系统和ROS的安装

一、ubuntu安装 使用的是ubuntu14.04.4系统,从官网下载,也可以从国内镜像下载。 官网:http://cdimage.ubuntu.com/netboot/14.04/?_ga=1.178505383.2009389272.1483453317 国内镜像 网易:http://mirrors.163.com/ubuntu-releases/14.04/ 厦大:http://

linux(ubuntu)安装QT-ros插件

Linux下的qt安装ros插件 查看qt版本和对应的ros插件版本查看qt版本查看 qt creator 版本 qt creator进行更新升级下载版本对应的ros_qtc_plugin 插件插件安装安装成功 查看qt版本和对应的ros插件版本 想要qt与ros联合开发,我门需要在qt creator中添加ros的插件,之前查资料有哦 一个方法是直接下载安装带有ros插件版本的