Revision history [back]

The solution I found was to type the following at the command line from my ROS shortcut:

For reference, the shortcut target is:

C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 && c:\opt\ros\melodic\x64\setup.bat

I'm not sure if only one of those commands was needed, but I ran both. After that I appended the location of my workspace batch file to the shortcut target listed above:

&& %USERPROFILE%\catkin_ws\devel\setup.bat

Doing these things gave me access to the normal ROS syntax (rospack, rosrun, etc.) for my packages. Please note that you have to use the shortcut to open your command line window in order for it to work.

 2 No.2 Revision jayess 5984 ●24 ●84 ●89

The solution I found was to type the following at the command line from my ROS shortcut:

choco upgrade ros-melodic-desktop -y-y

C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 && c:\opt\ros\melodic\x64\setup.batc:\opt\ros\melodic\x64\setup.bat

&& %USERPROFILE%\catkin_ws\devel\setup.bat%USERPROFILE%\catkin_ws\devel\setup.bat