Windows General - ashBabu/Utilities GitHub Wiki

Virtual environment in windows

  1. Type cmd in the window menu bar to open up the command prompt
  2. pip install virtualenv (if pip is not installed, type python in the cmd and it will open MS store to install python)
  3. Go to the desired folder (where you want to create your virtual env)
  4. virtualenv 'env_name'
  5. Type the path(if needed) + env_name\Scripts\activate to activate

Set & Get Environment Variables using Windows PowerShell

  • [Environment]::SetEnvironmentVariable("ROS_MASTER_URI","http://192.168.1.13:11311","User")
  • [Environment]::SetEnvironmentVariable("ROS_IP","192.168.1.168","User")
  • [Environment]::GetEnvironmentVariable("ROS_MASTER_URI","User")
  • Detailed Instructions Microsoft Page

where ROS_MASTER_URI and ROS_IP are the environment variable names and the next field corresponds to their value. User is set for the particular user only and Machine is used for the all users in the computer.

Note: Most likely the Powershell has to be closed and reopened to reflect the changes

Also, cmd, sysdm.cpl, Go to Advanced tab in System Properties and edit EnvironmentVariables

ping not working when trying to connect from another computer

  • Disable the public firewall (not the accepted answer but the 2nd comment)