小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
roscore无法运行
-
wzy@wzy-KLVC-WXX9:~$ roscore
WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.Resource not found: roslaunch
The traceback for the exception was written to the log file
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/roslaunch/init.py", line 322, in main
p.start()
File "/usr/lib/python3/dist-packages/roslaunch/parent.py", line 277, in start
self._start_infrastructure()
File "/usr/lib/python3/dist-packages/roslaunch/parent.py", line 226, in _start_infrastructure
self._load_config()
File "/usr/lib/python3/dist-packages/roslaunch/parent.py", line 137, in _load_config
self.config = roslaunch.config.load_config_default(self.roslaunch_files, self.port,
File "/usr/lib/python3/dist-packages/roslaunch/config.py", line 447, in load_config_default
load_roscore(loader, config, verbose=verbose)
File "/usr/lib/python3/dist-packages/roslaunch/config.py", line 92, in load_roscore
f_roscore = get_roscore_filename()
File "/usr/lib/python3/dist-packages/roslaunch/config.py", line 84, in get_roscore_filename
return os.path.join(r.get_path('roslaunch'), 'resources', 'roscore.xml')
File "/usr/lib/python3/dist-packages/rospkg/rospack.py", line 207, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: roslaunch -
@小鱼 在 提问前必看!一定要看!必须看一下! 中说:
问题一定要描述清楚,终端打印一定复制粘贴,方便回答者检索和引用(你可以在linux系统上打开浏览器进社区)
基本的Markdown语法一定要学习下,有的小伙伴图片代码一团糟
提问时一定要提供尽可能多的信息(系统版本,ROS版本,前后操作,终端日志),包括你的目的,比如你其实想装装某个库遇到问题,不要只说这个问题,因为可能有更好的替代方案 -
过一段时间不用ros后,再运行roscore后出现了报错
-
@无妄 系统版本?ROS版本?是否尝试重装?
-
我要打开机械臂的urdf模型,出现这样的情况:
ros@ros-virtual-machine:~/ws_rmrobot$ roslaunch rm_65_description display.launch
... logging to /home/ros/.ros/log/d1d2da90-bb76-11ee-8b04-75a2d050c8aa/roslaunch-ros-virtual-machine-6789.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.Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/init.py", line 347, in main
p.start()
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 305, in start
self._start_infrastructure()
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 254, in _start_infrastructure
self._load_config()
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 156, in _load_config
self.config = roslaunch.config.load_config_default(self.roslaunch_files, self.port,
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/config.py", line 461, in load_config_default
loader.load(f, config, argv=args, verbose=verbose)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 761, in load
self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 733, in _load_launch
self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 679, in _recurse_load
self._param_tag(tag, context, ros_config, verbose=verbose)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 96, in call
return f(*args, **kwds)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 271, in _param_tag
value = self.param_value(verbose, name, ptype, *vals)
File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/loader.py", line 478, in param_value
with open(textfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ros/ws_rmrobot/src/rm_robot/rm_65_description/robots/rm_65_description.urdf' -
@1615798592 我的是ros noetic版本