Variables
generate_nerian_config_cpp Namespace Reference

Variables

string CODE_TEMPLATE
 
 infile = sys.stdin
 
 outfile = sys.stdout
 
string paramchange = '\n'.join(TEMPLATE_PARAMETER_CHANGE.format(varname=vt[0]) for vt in varnames_and_types)
 
string setdefaults = '\n'.join(TEMPLATE_SETDEFAULTS.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot')
 
string setparam = '\n'.join(TEMPLATE_SETPARAM.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot')
 
string TEMPLATE_PARAMETER_CHANGE
 
string TEMPLATE_SETDEFAULTS
 
string TEMPLATE_SETPARAM = ''' getNH().setParam(node_name + "/{varname}", cfg.get("{varname}").getCurrent<{typ}>());'''
 
 typ = line.split(',')[1].strip().split('_')[0]
 
 varname = line.split('"')[1]
 
list varnames_and_types = []
 

Variable Documentation

◆ CODE_TEMPLATE

string generate_nerian_config_cpp.CODE_TEMPLATE

Definition at line 24 of file generate_nerian_config_cpp.py.

◆ infile

generate_nerian_config_cpp.infile = sys.stdin

Definition at line 91 of file generate_nerian_config_cpp.py.

◆ outfile

generate_nerian_config_cpp.outfile = sys.stdout

Definition at line 92 of file generate_nerian_config_cpp.py.

◆ paramchange

string generate_nerian_config_cpp.paramchange = '\n'.join(TEMPLATE_PARAMETER_CHANGE.format(varname=vt[0]) for vt in varnames_and_types)

Definition at line 106 of file generate_nerian_config_cpp.py.

◆ setdefaults

string generate_nerian_config_cpp.setdefaults = '\n'.join(TEMPLATE_SETDEFAULTS.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot')

Definition at line 108 of file generate_nerian_config_cpp.py.

◆ setparam

string generate_nerian_config_cpp.setparam = '\n'.join(TEMPLATE_SETPARAM.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot')

Definition at line 107 of file generate_nerian_config_cpp.py.

◆ TEMPLATE_PARAMETER_CHANGE

string generate_nerian_config_cpp.TEMPLATE_PARAMETER_CHANGE
Initial value:
1 = ''' if (config.{varname} != lastKnownConfig.{varname}) {{
2  ROS_INFO("Request to set {varname} = %s", std::to_string(config.{varname}).c_str());
3  deviceParameters->setParameter("{varname}", config.{varname});
4  }}'''

Definition at line 76 of file generate_nerian_config_cpp.py.

◆ TEMPLATE_SETDEFAULTS

string generate_nerian_config_cpp.TEMPLATE_SETDEFAULTS
Initial value:
1 = '''
2  config_default.{varname} = cfg.get("{varname}").getCurrent<{typ}>();
3  config_min.{varname} = cfg.get("{varname}").getMin<{typ}>();
4  config_max.{varname} = cfg.get("{varname}").getMax<{typ}>();'''

Definition at line 83 of file generate_nerian_config_cpp.py.

◆ TEMPLATE_SETPARAM

string generate_nerian_config_cpp.TEMPLATE_SETPARAM = ''' getNH().setParam(node_name + "/{varname}", cfg.get("{varname}").getCurrent<{typ}>());'''

Definition at line 81 of file generate_nerian_config_cpp.py.

◆ typ

generate_nerian_config_cpp.typ = line.split(',')[1].strip().split('_')[0]

Definition at line 102 of file generate_nerian_config_cpp.py.

◆ varname

generate_nerian_config_cpp.varname = line.split('"')[1]

Definition at line 101 of file generate_nerian_config_cpp.py.

◆ varnames_and_types

list generate_nerian_config_cpp.varnames_and_types = []

Definition at line 98 of file generate_nerian_config_cpp.py.



nerian_stereo
Author(s): Nerian Vision Technologies
autogenerated on Thu Jan 12 2023 03:44:09