Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Reorganize repository to fix ros-core dependencies - #133

Closed
edenfrosst wants to merge 3 commits into
ros:indigo-develfrom
edenfrosst:indigo-devel
Closed

edenfrosst wants to merge 3 commits into
ros:indigo-develfrom
edenfrosst:indigo-devel

Conversation

@edenfrosst

Copy link
Copy Markdown

This implements the proposed repository layout from #129


catkin_package()

catkin_install_python(PROGRAMS scripts/axclient.py scripts/axserver.py scripts/dynamic_action.py scripts/library.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since rosrun calls will have to update anyway, consider using this opportunity to drop the py suffixes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And add a proper setup.py for the "library"...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, dynamic_action and library (...) should be moved into a src directory, like proper ROS/Python packages. I was looking at refactoring/cleaning this code while I was moving things, but thought it may be out of scope for this PR (which was inspired by packaging problems).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianjfrosst: I'm a fan of small PRs myself, so it would be OK for me to leave the renaming/reshuffling of the modules and script(s) out of this PR.

As long as you promise to submit a follow-up PR :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can definitely submit a follow-up for cleaning up some of the code here. I'm a little busy, but I can get it in sometime in the next couple weeks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm finally getting around to this. @ianjfrosst did you do any sort of audit to see if anyone is using rosrun actionlib axclient.py that would get broken by this?

@edenfrosst

Copy link
Copy Markdown
Author

@mjcarroll what do you think?

@edenfrosst

Copy link
Copy Markdown
Author

@mjcarroll @mikepurvis is there anything blocking this? I would like to see this resolved, as the wxWidgets dependency needlessly inflates minimal ROS images.

@gavanderhoorn

Copy link
Copy Markdown

Just adding a 'non-silent' 👍 here

@mjcarroll

Copy link
Copy Markdown
Member

So I followed up on my comment here: #133 (comment)

I'm very concerned that moving the scripts may break existing workflows from people using axclient.py in launch files or scripts.

A quick github search reveals that this is the case:
https://github.com/search?l=XML&q=axclient.py&type=Code

Because of that risk, I would be more inclined to target these changes to noetic.

@gavanderhoorn

gavanderhoorn commented Aug 29, 2019 •

Copy link
Copy Markdown

Couldn't we keep a shim axclient.py that prints a deprecation warning or something similar and then forwards everything to the axclient.py in the new (ie: correct) location?

Because of that risk, I would be more inclined to target these changes to noetic.

That would be unfortunate for Melodic users ..


Edit: hm, just realised that the point of this refactor is to remove the GUI dependencies from the base package. The redirect would essentially reintroduce them. ☹️

@mjcarroll

Copy link
Copy Markdown
Member

@gavanderhoorn I think that could be a valid approach, but we would need to make sure that it is very clear to the user that actionlib_tools needs to be installed, or incorporate it in the next level up metapackage.

@mikepurvis

Copy link
Copy Markdown
Member

Anyone using axclient.py is on a GUI system and is likely running the ros_desktop metapackage anyway?

It really would be nice to break the wxwindows dependency even for the metapackages. What if the wrapper axclient.py left behind in this package could just output an error message to the console letting a user know which package must be installed in order for the pass-through to work? The only case that would break for is if axclient is run from a launch file or similar vs a direct CLI invocation.

@matthew-reynolds

matthew-reynolds commented Dec 16, 2019 •

Copy link
Copy Markdown

@mjcarroll I know the GitHub search you did is far from a comprehensive analysis of axclient.py's usage in scripts launch files, but going through the repos that turn up from that search shows only 1 repo with any activity in the past year. Most of those repos seem to be personal projects or one-off projects for competitions or demos that have completed, and haven't seen activity in years. Again, far from a comprehensive analysis, but the scope of impact does not seem overly wide. Plus, as @mikepurvis mentioned, anyone using axclient.py is likely to be using ros_desktop anyway.

I think @mikepurvis's suggested approach is a good one. Pass-through if possible, if not issue a clear message instructing the user what steps must be taken (namely, installing actionlib_tools).

Happy to contribute the changes if this approach is the desired path forward.

@mjcarroll

Copy link
Copy Markdown
Member

@matthew-reynolds if you do a PR with the proposed approach (passthrough/error), I would be satisfied. I'll also redirect any 🔥 towards you :)

@matthew-reynolds

Copy link
Copy Markdown

@mjcarroll New PR #157 opened. Ready for the 🔥 :)

@edenfrosst

Copy link
Copy Markdown
Author

Closing in favour of #157

@edenfrosst edenfrosst closed this Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants