Skip to content

Commit

Permalink
Merge pull request #75 from ros/expose_spec_for_dyn_gen_msgs
Browse files Browse the repository at this point in the history
expose spec for dynamically generated messages
  • Loading branch information
dirk-thomas authored Mar 2, 2017
2 parents 28c133a + ae6061b commit 264b501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/genpy/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def generate_dynamic(core_type, msg_cat):
messages[t] = getattr(mod, _gen_dyn_name(pkg, s_type))
except AttributeError:
raise MsgGenerationException("cannot retrieve message class for %s/%s: %s"%(pkg, s_type, _gen_dyn_name(pkg, s_type)))
messages[t]._spec = specs[t]

return messages

Expand Down

0 comments on commit 264b501

Please sign in to comment.