Cannot run roscore in windows10

asked 2021-02-09 08:04:12 -0500

Edwin gravatar image

updated 2021-02-09 13:00:01 -0500

gvdhoorn gravatar image

straight dump of the error:

 **********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.4
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************

C:\Windows\System32>roscore
... logging to C:\Users\Edwin\.ros\log\9258b36e-6adf-11eb-bd6d-000b0e0f00ed\roslaunch-DESKTOP-80KLVQL-15032.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://127.0.0.1:50165/
ros_comm version 1.14.10


SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.10

NODES

auto-starting new master
process[master]: started with pid [10868]
ROS_MASTER_URI=http://127.0.0.1:11311/
setting /run_id to 9258b36e-6adf-11eb-bd6d-000b0e0f00ed
ERROR: cannot launch node of type [rosout/rosout]: Cannot locate node of type [rosout] in package [rosout]. Make sure file exists in package path and permission is set to executable (chmod +x)
RLException: failed to start core service [/rosout]
The traceback for the exception was written to the log file
[master] killing on exit
成功: PID 為 10404 (PID 為 10868 的子處理程序) 的處理程序已終止。
成功: PID 為 10868 (PID 為 15032 的子處理程序) 的處理程序已終止。

C:\Windows\System32>
edit retag flag offensive close merge delete

Comments

This doesn't look like ROS 2 to me.

Could you fix your tags?

gvdhoorn gravatar image gvdhoorn  ( 2021-02-09 13:00:23 -0500 )edit

Can you also share the log file? For example, the log should be preserved at C:\Users\Edwin\.ros\log\9258b36e-6adf-11eb-bd6d-000b0e0f00ed\roslaunch-DESKTOP-80KLVQL-15032.log for this launch.

Sean Yen gravatar image Sean Yen  ( 2021-02-10 12:38:10 -0500 )edit

[roslaunch][INFO] 2021-02-09 22:03:23,421: Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt [roslaunch][INFO] 2021-02-09 22:03:23,421: Done checking log file disk usage. Usage is <1GB. [roslaunch][INFO] 2021-02-09 22:03:23,428: roslaunch starting with args ['roscore', '--core'] [roslaunch][INFO] 2021-02-09 22:03:23,428: roslaunch env is {'LIB': 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\lib\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64', 'VCPKG_DEFAULT_TRIPLET': 'x64-windows', 'SYSTEMROOT': 'C:\WINDOWS', 'SW_SIM_TEMP': 'C:\ProgramData\SOLIDWORKS\SW_net_sim_temp\', 'CHOCOLATEYLASTPATHUPDATE': '132572643854005829', 'VSCMD_VER': '16.8.4', 'VS160COMNTOOLS': 'C:\Program Files (x86)

Edwin gravatar image Edwin  ( 2021-02-10 17:05:05 -0500 )edit

Did you follow the instruction on installing ROS on Windows? It seems like the folder that activate ROSCORE was inside a restricted folder which it the system has trouble accessing to. Do note that a folder of 'opt' has to be created inside C:// and ros-melodic packages will be inside the 'opt' folder created.

loguna gravatar image loguna  ( 2021-02-18 22:05:07 -0500 )edit