小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
在vscode里面的终端一键下载的ROS,下载的时候没有问题,但是测试运行小乌龟就不行,而且电脑系统重装之前可以一切没问题重装之后就不行了
-
aurora_borealis@DESKTOP-4KV591G:~$ roscore
... logging to /home/aurora_borealis/.ros/log/a2268cbe-ff9d-11ed-aa85-00155db53ee7/roslaunch-DESKTOP-4KV591G-12683.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://DESKTOP-4KV591G:43315/
ros_comm version 1.14.13SUMMARY
PARAMETERS
- /rosdistro: melodic
- /rosversion: 1.14.13
NODES
auto-starting new master
process[master]: started with pid [12697]
ROS_MASTER_URI=http://DESKTOP-4KV591G:11311/setting /run_id to a2268cbe-ff9d-11ed-aa85-00155db53ee7
process[rosout-1]: started with pid [12708]
started core service [/rosout]aurora_borealis@DESKTOP-4KV591G:~$ roscore
... logging to /home/aurora_borealis/.ros/log/a2268cbe-ff9d-11ed-aa85-00155db53ee7/roslaunch-DESKTOP-4KV591G-12814.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://DESKTOP-4KV591G:35349/
ros_comm version 1.14.13SUMMARY
PARAMETERS
- /rosdistro: melodic
- /rosversion: 1.14.13
NODES
RLException: roscore cannot run as another roscore/master is already running.
Please kill other roscore/master processes before relaunching.
The ROS_MASTER_URI is http://DESKTOP-4KV591G:11311/
The traceback for the exception was written to the log file
aurora_borealis@DESKTOP-4KV591G:~$ rosrun turtlesim turtlesim_node
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-aurora_borealis'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
aurora_borealis@DESKTOP-4KV591G:~$ -
@3037974118 在 在vscode里面的终端一键下载的ROS,下载的时候没有问题,但是测试运行小乌龟就不行,而且电脑系统重装之前可以一切没问题重装之后就不行了 中说:
aurora_borealis@DESKTOP-4KV591G:~$ rosrun turtlesim turtlesim_node
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-aurora_borealis'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
aurora_borealis@DESKTOP-4KV591G:~$主机终端 xhost +