-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The current import system, when importing a message, looks for all its dependencies and generate ROS code for it.
This works fine, but it also means that a python code, cannot override or patch the generated ROS code.
It would be useful to be able to patch/extend a ROS message with some python code without modifying the generated code (usecase in pyros-msgs at the moment), at import time. But I am not sure it is even possible, while ROS message dependencies are other messages (directly, not the python source), and the python default import takes care of all cases (one cannot have an extension to python import system after FileFinder - currently, not a .py file will fail to import, without testing next importer in hooks).
Anyway it might be something worth keeping in mind, although for now we ll implement some workaround in pyros-msgs.