ros-galactic icon indicating copy to clipboard operation
ros-galactic copied to clipboard

Create activate scripts for PowerShell

Open doriantsai opened this issue 3 years ago • 3 comments

I am trying to get Robostack to work in with Windows 10 Powershell and running into an error. Will post it shortly.

doriantsai avatar Mar 29 '22 10:03 doriantsai

See also https://github.com/RoboStack/ros-noetic/issues/21

@traversaro - you mentioned that it should be easy-ish to create the ps1 script in vinca. Do you have any documentation that we could look at?

Tobias-Fischer avatar Mar 29 '22 10:03 Tobias-Fischer

@traversaro - you mentioned that it should be easy-ish to create the ps1 script in vinca. Do you have any documentation that we could look at?

Not sure, but apparently both colcon and ros2 docs mention .ps1 activation scripts:

  • https://colcon.readthedocs.io/en/released/developer/environment.html
  • https://docs.ros.org/en/galactic/Tutorials/Configuring-ROS2-Environment.html

That is the reason why I was more optimistic of supporting PowerShell on ROS2 then on ROS1, as mentioned in https://github.com/RoboStack/ros-noetic/issues/21 .

traversaro avatar Mar 29 '22 11:03 traversaro

For the vinca part, probably we will just modify around this line: https://github.com/RoboStack/vinca/blob/d38d89fcf2d46ea8e62aff31e76bbfb7fe95d028/vinca/template.py#L89 and add the approriate templates in https://github.com/RoboStack/vinca/tree/d38d89fcf2d46ea8e62aff31e76bbfb7fe95d028/vinca/templates . Porting to ps1 https://github.com/RoboStack/vinca/blob/d38d89fcf2d46ea8e62aff31e76bbfb7fe95d028/vinca/templates/activate.bat.in and https://github.com/RoboStack/vinca/blob/d38d89fcf2d46ea8e62aff31e76bbfb7fe95d028/vinca/templates/deactivate.bat.in may be a good starting point.

traversaro avatar Mar 29 '22 11:03 traversaro