Closed gavanderhoorn closed 5 years ago
Indeed, the current version more or less assumes that you already have a working ROS development environment. Perhaps I should try to relax that behaviour a bit, as I am getting more use cases that do not follow that pattern.
Indeed, the current version more or less assumes that you already have a working ROS development environment.
So not having a local workspace (but having source
d /opt/ros/kinetic/setup.bash
) doesn't fulfil that requirement?
The original idea was that HAROS would be used to analyse the source of your own projects, and so we could make the assumption that you would have a workspace, and that it would be source
d. In most setups, I do not think /opt/ros
would have any source code (C++ at least, besides headers), and that is why I dismissed that case.
Do you think this is too strict? I could look into what I would have to change to relax this requirement.
The original idea was that HAROS would be used to analyse the source of your own projects, and so we could make the assumption that you would have a workspace, and that it would be
source
d. In most setups, I do not think/opt/ros
would have any source code (C++ at least, besides headers), and that is why I dismissed that case.
Makes sense.
Do you think this is too strict? I could look into what I would have to change to relax this requirement.
It's not necessarily too strict, I just wanted to make sure I understood things correctly.
I don't think it makes much sense to be able to scan /opt/ros
as it only includes binaries.
Although it does contain Python for all the Python nodes. Those could still be parsed -- if HAROS would support Python.
I would recommend printing a more user friendly error message though than a KeyError
;)
Although it does contain Python for all the Python nodes. Those could still be parsed -- if HAROS would support Python.
Andrzej has a student working on Python support, as far as I know.
Parsing those nodes should not be a problem, I think. HAROS more or less replicates rospack find <pkg>
, and then goes from wherever the package is.
I would recommend printing a more user friendly error message though than a
KeyError
;)
There are quite a lot of error messages that need improvement, indeed! I should make a list of known cases and open an issue for that.
@gavanderhoorn I have remedied the KeyError
issue with a nicer message. Further work on error handling is tracked in #49.
After resolving #40 (so with the base
/opt/ros/kinetic/setup.bash
sourced andpyflwor
installed), runningharos init
results in:Only after having
source
d asetup.bash
of a ROS workspace doesinit
continue and clones the plugins repository.