Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ROS2 command not found in Windows

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.

ROS2 command not found in Windows

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.

set_1

set_2

ROS2 command not found in Windows

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.

set_1

set_2

    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:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\
NUMBER_OF_PROCESSORS=4
OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
OS=Windows_NT
OSPL_HOME=D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64
OSPL_TMPL_PATH=D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64\etc\idlpp
OSPL_URI=file://D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64\etc\config\ospl.xml
Path=C:\dev\ros2\install\bin;C:\dev\ros2\install\Scripts;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\14.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files\avs\bin;C:\Program Files\avs\bin32;C:\Python36\Scripts\;C:\Python36\;C:\Program Files (x86)\ELO Java Client\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\Tools\Matlab\runtime\win64;D:\Tools\Matlab\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\u17m36\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\ProgramData\chocolatey\bin;C:\OpenSSL-Win64\bin\;C:\local\boost_1_61_0\lib64-msvc-14.0;c:\dev\opencv-2.4.13.2-vc14.VS2015\x64\vc14\bin;C:\ProgramData\chocolatey\lib\tinyxml2\lib;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\dotnet\;C:\Users\u17m36\AppData\Local\Microsoft\WindowsApps;D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64\bin;D:\DDS\OpenSplice_DDS_Installation\Vortex_v2\Device\VortexOpenSplice\6.9.0\HDE\x86_64.win64\lib;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\rti_connext_dds-5.3.1\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
Platform=X64
PLMVIS_82_LIBPATH=C:\Program Files (x86)\SAP\FrontEnd\SAPgui\Program
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=4e03
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
PYTHONPATH=C:\dev\ros2\install\Lib\site-packages
Qt5_DIR=C:\Qt\5.10.0\msvc2015_64
SAPLOGON_INI_FILE=C:\WINDOWS\saplogon.ini
SNC_LIB=gsskrb5.dll
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\u17m36\AppData\Local\Temp
TMP=C:\Users\u17m36\AppData\Local\Temp
UATDATA=C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
UCRTVersion=10.0.17134.0
UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
USERDNSDOMAIN=AVL01.AVLCORP.LAN
USERDOMAIN=AVL01
USERDOMAIN_ROAMINGPROFILE=AVL01
USERNAME=u17m36
USERPROFILE=C:\Users\u17m36
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\
VisualStudioVersion=14.0
VORTEX_DIR=D:\DDS\OpenSplice_DDS_Installation\Vortex_v2
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\
windir=C:\WINDOWS
WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata;C:\Program Files (x86)\Windows Kits\10\References
WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
WindowsSDKLibVersion=10.0.17134.0\
WindowsSDKVersion=10.0.17134.0\
WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\
WindowsSDK_ExecutablePath_x86=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\