Skip to content

Commit

Permalink
use module and interface name for identify the build target name (and…
Browse files Browse the repository at this point in the history
… files), Fixes start-jsk#1046
  • Loading branch information
k-okada committed Jul 10, 2018
1 parent 0beacf4 commit c001da8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtmbuild/scripts/idl2srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ def ServiceBridgeFunction(self, op, ifname, pkgname):
# generate cpp source to bridge RTM/ROS
def genBridgeComponent(self, interface):
idlfile = interface.file()
module_name = '%sROSBridge' % interface.identifier()
#module_name = '%sROSBridge' % interface.identifier()
module_name = '%sROSBridge' % '_'.join(interface.scopedName())
#service_name = idlutil.ccolonName(interface.scopedName())
service_name = interface.identifier()
idl_name = os.path.split(idlfile)[1]
Expand Down Expand Up @@ -645,7 +646,8 @@ def visitModule(self, node):
n.accept(self)
def visitInterface(self, node):
if node.mainFile():
print node.identifier()
#print node.identifier()
print '_'.join(node.scopedName())
if options.interfaces:
pass

Expand Down

0 comments on commit c001da8

Please sign in to comment.