(ros/qt报错) FATAL: ROS_MASTER_URI is not defined in the environment
来源:互联网 发布:mac pro截屏快捷键 编辑:程序博客网 时间:2024/06/07 17:47
安装qt之后,明明打开roscore但是qt运行跟ros有关的节点时报错:
[FATAL] [1450943695.306401842]: ROS_MASTER_URI is not defined in the environment. Either type the following or (preferrably) add this to your ~/.bashrc file in order set up your local machine as a ROS master:
export ROS_MASTER_URI=http://localhost:11311
then, type 'roscore' in another shell to actually launch the master program.
我的解决办法是在.bashrc中添加如下语句
[FATAL] [1450943695.306401842]: ROS_MASTER_URI is not defined in the environment. Either type the following or (preferrably) add this to your ~/.bashrc file in order set up your local machine as a ROS master:
export ROS_MASTER_URI=http://localhost:11311
then, type 'roscore' in another shell to actually launch the master program.
当用qt打开cmakelist时,出现找不到cantkin_make 也是这个原因, qt启动时,没有加载ros环境变量,所以必须从终端启动ros
Traceback (most recent call last):
File "/home/wsh/download_wsh_backup/IGV02-SW-build/catkin_generated/generate_cached_setup.py", line 20, in <module>
from catkin.environment_cache import generate_environment_script
ImportError: No module named catkin.environment_cache
主要原因是因为没有从bash里面启动qt,所以qt的环境变量里面没有ros的变量环境.
解决办法,主要是从bash中启动qt,根本原因是要在ros环境变量执行之后再执行qt我的解决办法是在.bashrc中添加如下语句
alias qt=/opt/Qt5/Tools/QtCreator/bin/qtcreator
author: wsh
email: tongzhuodenilove@163.com
0 0
- (ros/qt报错) FATAL: ROS_MASTER_URI is not defined in the environment
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- linux下启动tomcat报错:The BASEDIR environment variable is not defined correctly解决方法
- mac下启动tomcat报错:The BASEDIR environment variable is not defined correctly
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- linux下tomcat启动报错The BASEDIR environment variable is not defined correctly
- TOMCAT-报错The BASEDIR environment variable is not defined correctly
- Tomcat启动报错,The CATALINA_HOME environment variable is not defined correctly
- tomcat启动一闪而过解决办法报错The CATALINA_HOME environment variable is not defined correctly
- 下载Apache Tomcat 7.0 ,运行报错为The CATALINA_HOME environment variable is not defined correctly
- linux启动tomcat报:The BASEDIR environment variable is not defined correctly
- Tomcat启动报The BASEDIR environment variable is not defined correctly
- Linux下Tomcat启动报 The BASEDIR environment variable is not defined
- $ is not defined 报错!
- BUG_tomcat启动报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- The CATALINA_HOME environment variable is not defined correctly
- The JAVA_HOME environment variable is not defined correctly
- The JRE_HOME OR JAVA_HOME environment variable is not defined correct
- Android多线程之Handler
- Service之onStartCommand()
- 机器视觉-相机
- TextView行间距设置
- JS -- 截取数组
- (ros/qt报错) FATAL: ROS_MASTER_URI is not defined in the environment
- 自学PHP 笔记整理
- MySql中Lock命令和unlock命令
- UVA729 The Hamming Distance Problem
- WebUploader 手机端上传图片
- 传统bp算法类C/C++实现
- Objective-c语言_内存管理2(代码)
- MySQL 数据库字符集
- 结构型:设计模式之享元模式(八)