Primo commit Completo
This commit is contained in:
38
devel/lib/python2.7/dist-packages/ur_driver/__init__.py
Normal file
38
devel/lib/python2.7/dist-packages/ur_driver/__init__.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# generated from catkin/cmake/template/__init__.py.in
|
||||
# keep symbol table as clean as possible by deleting all unnecessary symbols
|
||||
|
||||
from os import path as os_path
|
||||
from sys import path as sys_path
|
||||
|
||||
from pkgutil import extend_path
|
||||
|
||||
__extended_path = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_driver/src".split(";")
|
||||
for p in reversed(__extended_path):
|
||||
sys_path.insert(0, p)
|
||||
del p
|
||||
del sys_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
del extend_path
|
||||
|
||||
__execfiles = []
|
||||
for p in __extended_path:
|
||||
src_init_file = os_path.join(p, __name__ + '.py')
|
||||
if os_path.isfile(src_init_file):
|
||||
__execfiles.append(src_init_file)
|
||||
else:
|
||||
src_init_file = os_path.join(p, __name__, '__init__.py')
|
||||
if os_path.isfile(src_init_file):
|
||||
__execfiles.append(src_init_file)
|
||||
del src_init_file
|
||||
del p
|
||||
del os_path
|
||||
del __extended_path
|
||||
|
||||
for __execfile in __execfiles:
|
||||
with open(__execfile, 'r') as __fh:
|
||||
exec(__fh.read())
|
||||
del __fh
|
||||
del __execfile
|
||||
del __execfiles
|
||||
@@ -0,0 +1,36 @@
|
||||
## *********************************************************
|
||||
##
|
||||
## File autogenerated for the ur_driver package
|
||||
## by the dynamic_reconfigure package.
|
||||
## Please do not edit.
|
||||
##
|
||||
## ********************************************************/
|
||||
|
||||
from dynamic_reconfigure.encoding import extract_params
|
||||
|
||||
inf = float('inf')
|
||||
|
||||
config_description = {'upper': 'DEFAULT', 'lower': 'groups', 'srcline': 245, 'name': 'Default', 'parent': 0, 'srcfile': '/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'cstate': 'true', 'parentname': 'Default', 'class': 'DEFAULT', 'field': 'default', 'state': True, 'parentclass': '', 'groups': [], 'parameters': [{'srcline': 290, 'description': "Prevent driver from continuously uploading 'prog'", 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'name': 'prevent_programming', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}], 'type': '', 'id': 0}
|
||||
|
||||
min = {}
|
||||
max = {}
|
||||
defaults = {}
|
||||
level = {}
|
||||
type = {}
|
||||
all_level = 0
|
||||
|
||||
#def extract_params(config):
|
||||
# params = []
|
||||
# params.extend(config['parameters'])
|
||||
# for group in config['groups']:
|
||||
# params.extend(extract_params(group))
|
||||
# return params
|
||||
|
||||
for param in extract_params(config_description):
|
||||
min[param['name']] = param['min']
|
||||
max[param['name']] = param['max']
|
||||
defaults[param['name']] = param['default']
|
||||
level[param['name']] = param['level']
|
||||
type[param['name']] = param['type']
|
||||
all_level = all_level | param['level']
|
||||
|
||||
Reference in New Issue
Block a user