Classes | Functions | Variables
idl2srv Namespace Reference

Classes

class  DependencyVisitor
 
class  InterfaceNameVisitor
 
class  ServiceVisitor
 

Functions

def convertFunctionCode (self, interface)
 
def genBridgeComponent (self, interface)
 
def getCppTypeText (self, typ, out=False, full=NOT_FULL)
 
def getROSTypeText (self, typ)
 
def outputMsg (self, typ)
 
def outputSrv (self, op)
 
def ServiceBridgeFunction (self, op, ifname, pkgname)
 

Variables

 action
 
 args
 
 basedir = os.path.split(idldir)[0]
 
string convert_functions
 
int CPP_FULL = 2
 
 default
 
 dest
 
 fd = os.popen('/usr/bin/omnicpp %s "%s"' % (option, idlfile), 'r')
 
 help
 
 idldir = os.path.split(idlfile)[0]
 
 idlfile = options.idlfile
 
 metavar
 
string multiarray_conversion
 
dictionary MultiArrayTypeNameMap
 
int NOT_FULL = 0
 
string option = ' '.join(['-I'+d for d in filter(None, pathlist.split(' '))])
 
 options
 
 parser = OptionParser()
 
 pathlist = options.idlpath.strip('"')
 
 pkgname = options.package_name
 
int ROS_FULL = 1
 
string sppath = "/usr/lib/omniidl"
 
 tmpdir = options.tmpdir
 
 tree = _omniidl.compile(fd, idlfile)
 
 type
 
dictionary TypeNameMap
 

Function Documentation

◆ convertFunctionCode()

def idl2srv.convertFunctionCode (   self,
  interface 
)

Definition at line 339 of file idl2srv.py.

◆ genBridgeComponent()

def idl2srv.genBridgeComponent (   self,
  interface 
)

Definition at line 465 of file idl2srv.py.

◆ getCppTypeText()

def idl2srv.getCppTypeText (   self,
  typ,
  out = False,
  full = NOT_FULL 
)

Definition at line 167 of file idl2srv.py.

◆ getROSTypeText()

def idl2srv.getROSTypeText (   self,
  typ 
)

Definition at line 209 of file idl2srv.py.

◆ outputMsg()

def idl2srv.outputMsg (   self,
  typ 
)

Definition at line 265 of file idl2srv.py.

◆ outputSrv()

def idl2srv.outputSrv (   self,
  op 
)

Definition at line 314 of file idl2srv.py.

◆ ServiceBridgeFunction()

def idl2srv.ServiceBridgeFunction (   self,
  op,
  ifname,
  pkgname 
)

Definition at line 367 of file idl2srv.py.

Variable Documentation

◆ action

idl2srv.action

Definition at line 671 of file idl2srv.py.

◆ args

idl2srv.args

Definition at line 686 of file idl2srv.py.

◆ basedir

idl2srv.basedir = os.path.split(idldir)[0]

Definition at line 694 of file idl2srv.py.

◆ convert_functions

string idl2srv.convert_functions

Definition at line 60 of file idl2srv.py.

◆ CPP_FULL

int idl2srv.CPP_FULL = 2

Definition at line 136 of file idl2srv.py.

◆ default

idl2srv.default

Definition at line 672 of file idl2srv.py.

◆ dest

idl2srv.dest

Definition at line 667 of file idl2srv.py.

◆ fd

idl2srv.fd = os.popen('/usr/bin/omnicpp %s "%s"' % (option, idlfile), 'r')

Definition at line 707 of file idl2srv.py.

◆ help

idl2srv.help

Definition at line 668 of file idl2srv.py.

◆ idldir

idl2srv.idldir = os.path.split(idlfile)[0]

Definition at line 693 of file idl2srv.py.

◆ idlfile

idl2srv.idlfile = options.idlfile

Definition at line 688 of file idl2srv.py.

◆ metavar

idl2srv.metavar

Definition at line 668 of file idl2srv.py.

◆ multiarray_conversion

string idl2srv.multiarray_conversion

Definition at line 100 of file idl2srv.py.

◆ MultiArrayTypeNameMap

dictionary idl2srv.MultiArrayTypeNameMap
Initial value:
1 = { # for ROS msg/srv
2  idltype.tk_char: 'std_msgs/Int8MultiArray',
3  idltype.tk_octet: 'std_msgs/Uint8MultiArray',
4  idltype.tk_wchar: 'std_msgs/Int16MultiArray',
5  idltype.tk_short: 'std_msgs/Int16MultiArray',
6  idltype.tk_ushort: 'std_msgs/Uint16MultiArray',
7  idltype.tk_long: 'std_msgs/Int32MultiArray',
8  idltype.tk_ulong: 'std_msgs/Uint32MultiArray',
9  idltype.tk_longlong: 'std_msgs/Int64MultiArray',
10  idltype.tk_ulonglong:'std_msgs/Uint64MultiArray',
11  idltype.tk_float: 'std_msgs/Float32MultiArray',
12  idltype.tk_double: 'std_msgs/Float64MultiArray',
13  idltype.tk_string: 'openrtm_ros_bridge/StringMultiArray'}

Definition at line 44 of file idl2srv.py.

◆ NOT_FULL

int idl2srv.NOT_FULL = 0

Definition at line 134 of file idl2srv.py.

◆ option

string idl2srv.option = ' '.join(['-I'+d for d in filter(None, pathlist.split(' '))])

Definition at line 703 of file idl2srv.py.

◆ options

idl2srv.options

Definition at line 686 of file idl2srv.py.

◆ parser

idl2srv.parser = OptionParser()

Definition at line 666 of file idl2srv.py.

◆ pathlist

idl2srv.pathlist = options.idlpath.strip('"')

Definition at line 702 of file idl2srv.py.

◆ pkgname

idl2srv.pkgname = options.package_name

Definition at line 696 of file idl2srv.py.

◆ ROS_FULL

int idl2srv.ROS_FULL = 1

Definition at line 135 of file idl2srv.py.

◆ sppath

string idl2srv.sppath = "/usr/lib/omniidl"

Definition at line 13 of file idl2srv.py.

◆ tmpdir

idl2srv.tmpdir = options.tmpdir

Definition at line 691 of file idl2srv.py.

◆ tree

idl2srv.tree = _omniidl.compile(fd, idlfile)

Definition at line 709 of file idl2srv.py.

◆ type

idl2srv.type

Definition at line 680 of file idl2srv.py.

◆ TypeNameMap

dictionary idl2srv.TypeNameMap
Initial value:
1 = { # for ROS msg/srv
2  idltype.tk_boolean: 'bool',
3  idltype.tk_char: 'int8',
4  idltype.tk_octet: 'uint8',
5  idltype.tk_wchar: 'int16',
6  idltype.tk_short: 'int16',
7  idltype.tk_ushort: 'uint16',
8  idltype.tk_long: 'int32',
9  idltype.tk_ulong: 'uint32',
10  idltype.tk_longlong: 'int64',
11  idltype.tk_ulonglong: 'uint64',
12  idltype.tk_float: 'float32',
13  idltype.tk_double: 'float64',
14  idltype.tk_string: 'string',
15  idltype.tk_wstring: 'string',
16  idltype.tk_any: 'string', # ??
17  idltype.tk_TypeCode: 'uint64', # ??
18  idltype.tk_enum: 'uint64'}

Definition at line 25 of file idl2srv.py.



rtmbuild
Author(s): Kei Okada , Manabu Saito
autogenerated on Mon Apr 17 2023 02:58:50