Problem when setting Window Terminal for ROS on Window
Hi everyone, I got a problem when trying to set up window terminal for ROS on Window. I follow the instruction on http://wiki.ros.org/Installation/Windows , on the step 6.1. Here is my profiles.json.I'm using ROS Melodic on Window 10 version 1903 build 18362.418. When I tried roscore, this displayed
roscore : The term 'roscore' is not reconized as the name of a cmdlet function, script file, or operable program.
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
{
"defaults":
{
"acrylicOpacity" : 0.5,
"background" : "#012456",
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "C:\\Windows\\System32\\cmd.exe /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64 -host_arch=amd64 && set ChocolateyInstall=c:\\opt\\chocolatey&& c:\\opt\\ros\\melodic\\x64\\setup.bat",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"historySize" : 9001,
"icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"name" : "ROS",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "c:\\ws",
"useAcrylic" : true
},
"list":
[
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array
"schemes": [],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []
}
@drtritm, Can you change the following part to using
cmd.exe
? I am suspecting the activated environment fromsetup.bat
doesn't get passed to the PowerShell.The original of guid in defaults section is "guid" : "{xxxx}", and then the instruction said: Customize the placeholder {xxxx} in the "guid" entry with a guid generator. Thus I choose PowerShell, even cmd, still not work. Did you mean changing the guild of the part you mentioned with the "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}"
@drtritm, ah, it seems to me you are using default setting feature. However I think what you are looking for is just to define a new profile. Can you move the ROS related settings into an new entry under
lists
(and giving it a unique GUID)?How can I give it a unique GUID? Did I just random?
It's worked, I randomly change a character, thanks so much.You made my day