Cannot run roscore in windows10
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
[31mERROR: 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)[0m
[31mRLException: failed to start core service [/rosout][0m
[31mThe traceback for the exception was written to the log file[0m
[master] killing on exit
成功: PID 為 10404 (PID 為 10868 的子處理程序) 的處理程序已終止。
成功: PID 為 10868 (PID 為 15032 的子處理程序) 的處理程序已終止。
C:\Windows\System32>
This doesn't look like ROS 2 to me.
Could you fix your tags?
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.[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)
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.