diff --git a/rtmbuild/scripts/idl2srv.py b/rtmbuild/scripts/idl2srv.py index 707888237..f6aa65d3c 100755 --- a/rtmbuild/scripts/idl2srv.py +++ b/rtmbuild/scripts/idl2srv.py @@ -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] @@ -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