Skip to content

Commit

Permalink
fix missing generation of constant definitions for services (ros/genc…
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jun 1, 2013
1 parent 6e928b0 commit 108144a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rosbuild/scripts/gensrv_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ def generate(srv_path):

s.write('namespace %s\n{\n'%(package))
genmsg_cpp.write_struct(s, spec.request, cpp_prefix, {'ServerMD5Sum': md5sum})
genmsg_cpp.write_constant_definitions(s, spec.request)
s.write('\n')
genmsg_cpp.write_struct(s, spec.response, cpp_prefix, {'ServerMD5Sum': md5sum})
genmsg_cpp.write_constant_definitions(s, spec.response)
s.write('struct %s\n{\n'%(spec.short_name))
s.write('\n')
s.write('typedef %s Request;\n'%(spec.request.short_name))
Expand Down

0 comments on commit 108144a

Please sign in to comment.