ROS报错
报错1:roscore报错
[ERROR] [1685197203.713679712]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
执行ROS
命令出错,因为忘记执行roscore
报错2:roslaunch调用报错
RLException: [irataus.launch] is neither a launch file in package [ratslam_ros] nor is [ratslam_ros] a launch file name
The traceback for the exception was written to the log file
执行ROS
命令出错,因为没有source devel/setup.bash
报错3:安装ROS工具报错
p@p:~/ROS/tranfrom$ sudo apt install ros-noetic-tf2-tools
[sudo] password for p:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-noetic-tf2-tools
- 盲目的复制了下载命令,没有更改命令中的
ROS
版本。更换位对应的ROS
版本即可。如果不是,换源尝试。 - 如果是非
ROS
的安装包错误,比如无法定位软件包 libmrpt-vision-dev
这种情况一般也是安装包名字错了,我们可以在当前环境下搜索下关于mrpt
的包
apt searc