Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

choco upgrade ros-melodic-desktop -y

choco upgrade ros-melodic-desktop_full -y

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.

click to hide/show revision 2
No.2 Revision

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

choco upgrade ros-melodic-desktop -y

-y

choco upgrade ros-melodic-desktop_full -y

-y

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

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

%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.