ROS2 command not found in Windows

asked 2018-06-15 06:59:27 -0500

aks gravatar image

updated 2018-06-15 12:43:11 -0500

This is a repetition to my previous question

This time i am installing it on windows. I am following these instructions.

Problems : At first, i face this problem.

But my ros2 directory has all the folders (i fear some are missing).

Then I call the local_setup.bat file : call install\local_setup.bat.

When I try to run a demo node : ros2 run demo_nodes_py talker, it gives an error as ROS2 command not found.

Here is a screenshot of my path variables image description in the system variables.

EDIT : output of set.

    C:\WINDOWS\system32>cd C:\dev\ros2\

C:\dev\ros2>call install\local_setup.bat

C:\dev\ros2>ros2 run demo_nodes_py talker
'ros2' is not recognized as an internal or external command,
operable program or batch file.

C:\dev\ros2>set
ADLINK_LICENSE=D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64\etc\license.lic
ALLUSERSPROFILE=C:\ProgramData
AMENT_PREFIX_PATH=C:\dev\ros2\install
APPDATA=C:\Users\u17m36\AppData\Roaming
ARTE_LAB_SDK_ROOT=C:\ArteLabStudio\SDK\
AVL_LICENSE_FILE=4242@atgrzls050;D:\AST_2018_license.dat
BOOST_LIBRARYDIR=C:\local\boost_1_61_0\lib64-msvc-14.0
BOOST_ROOT=C:\local\boost_1_61_0
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=Sun Mar 11 20:40:22 2018
CommandPromptType=Native
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DEMZKWN111222
ComSpec=C:\WINDOWS\system32\cmd.exe
ESET_OPTIONS=                                                                                                                                                                                                                                                                                                                                                                                                                         
ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
Framework40Version=v4.0
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64
FrameworkDIR64=C:\WINDOWS\Microsoft.NET\Framework64
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
HOMEDRIVE=C:
HOMEPATH=\Users\u17m36
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt;
LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\um\x64;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\UnionMetadata;C:\Program Files (x86)\Windows Kits\10\References;C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\References\CommonConfiguration\neutral;
LOCALAPPDATA=C:\Users\u17m36\AppData\Local
LOGONSERVER=\\ATGRZDC001
NDDSHOME=C:\Program Files\rti_connext_dds-5.3.1
NETFXSDKDir=C ...
(more)
edit retag flag offensive close merge delete

Comments

Is ros2 run demo_nodes_py being run in the same cmd.exe window that call install\local_setup.bat was run in? The setup script only sets up the path environment variable for the current shell, so I would expect the system path variable in your screenshot to be unchanged.

sloretz gravatar imagesloretz ( 2018-06-15 09:21:15 -0500 )edit

Yes, I am running the ros2 run command in the same shell where i called the local_setup.bat file

aks gravatar imageaks ( 2018-06-15 09:28:42 -0500 )edit

Would you mind copy/pasting the output of set in the cmd.exe where call install\local_setup.bat has been called but ros2 can't be found?

sloretz gravatar imagesloretz ( 2018-06-15 09:31:50 -0500 )edit

@sloretz : I have edited the question with 2 additional screenshots. Kindly let me know if you can read the content or else ill post again.

aks gravatar imageaks ( 2018-06-15 10:42:03 -0500 )edit

@aakash_sehgal Please don't use an image to display text. Images are not searchable and people cannot copy and paste the text from the image. Please update your question with a copy and paste of the error instead.

jayess gravatar imagejayess ( 2018-06-15 12:24:16 -0500 )edit

@jayess : updated !

aks gravatar imageaks ( 2018-06-15 12:43:24 -0500 )edit

Did somebody find an answer to this?

Marcel Usai gravatar imageMarcel Usai ( 2018-08-30 04:37:05 -0500 )edit

No, i stopped trying in windows and switched to linux

aks gravatar imageaks ( 2018-08-30 11:27:27 -0500 )edit