Robotics StackExchange | Archived questions

Dynamically modify references in genpy

Does anyone has any insights on why reference modification is needed in dynamically generated classes?

Was looking at the code here: https://github.com/ros/genpy/blame/kinetic-devel/src/genpy/dynamic.py#L82

I find that generating a dynamic class for a relatively complex type takes over 10 minutes in python 2. All of the overhead is coming from calls to re.sub.

Asked by pmd323 on 2019-10-23 20:28:51 UTC

Comments

for a relatively complex type takes over 10 minutes

What is "relatively complex"? I've created some messages that I'd consider relatively complex, but none took that long to generate.

Can you show an example?

Asked by gvdhoorn on 2019-10-24 02:48:46 UTC

Answers