Open ardiya opened 11 months ago
As mentioned in the docs (in https://robostack.github.io/GettingStarted.html), powershell is not supported/tested at the moment, see https://github.com/RoboStack/ros-galactic/issues/91 . Some work was done in https://github.com/RoboStack/vinca/pull/34, but not tested in depth. I guess the issue is on the vinca/robostack side.
Thanks for quick response @traversaro. I didn't really read that. I will try with cmd
I really wanted the powershell to work with ros-galactic, so I tried to dig more info by reading the code.
I looked at the sibling local_setup.bat
in Robostack's conda env and found that it's generated by ament_package. Unfortunately, the repo doesn't support powershell, related issue: https://github.com/ament/ament_package/issues/58
However, I downloaded the ros2 windows binary and found that the local_setup.ps1
actually exists there and it is generated by https://github.com/colcon/colcon-powershell/blob/master/colcon_powershell/shell/template/prefix.ps1.em
It seems to be similar, checking the python.exe path.
So, I think to have PowerShell working in Robostack, we should start integrating the colcon-powershell into the build process. The colcon-powershell looks promising as it also generate the prefix, per-package, and hook for powershell.
Ah, great find! colcon-powershell
already exists on conda-forge. Seems to be a matter of finding out how to incorporate it into the build process.
/cc @traversaro
I guess one issue is that we use catkin/ament for building our packages, not colcon. So I'm not sure how it would work, we might need to change the build process potentially.
The harder / better way would probably be to add templates for ament_package at https://github.com/ament/ament_package/tree/rolling/ament_package/template
Solution to issue cannot be found in the documentation.
Issue
Getting the following error. Missing local_setup.ps1
For reference, I can see the
local_setup.bat
but notlocal_setup.ps1
. I think we need to find how the.ps1
is linked/created. Not sure if issue from robostack or from ros/ament.Reproduce steps:
Open new tab and then the error message above starts appearing.
Installed packages
Environment info