Variables
generate_nerian_config_cpp Namespace Reference

Variables

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

Variable Documentation

string generate_nerian_config_cpp.CODE_TEMPLATE

Definition at line 24 of file generate_nerian_config_cpp.py.

generate_nerian_config_cpp.infile = sys.stdin

Definition at line 90 of file generate_nerian_config_cpp.py.

generate_nerian_config_cpp.outfile = sys.stdout

Definition at line 91 of file generate_nerian_config_cpp.py.

string generate_nerian_config_cpp.paramchange = '\n'

Definition at line 105 of file generate_nerian_config_cpp.py.

string generate_nerian_config_cpp.setdefaults = '\n'

Definition at line 107 of file generate_nerian_config_cpp.py.

string generate_nerian_config_cpp.setparam = '\n'

Definition at line 106 of file generate_nerian_config_cpp.py.

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->setNamedParameter("{varname}", config.{varname});
4  }}'''

Definition at line 75 of file generate_nerian_config_cpp.py.

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

Definition at line 82 of file generate_nerian_config_cpp.py.

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

Definition at line 80 of file generate_nerian_config_cpp.py.

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

Definition at line 101 of file generate_nerian_config_cpp.py.

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

Definition at line 100 of file generate_nerian_config_cpp.py.

list generate_nerian_config_cpp.varnames_and_types = []

Definition at line 97 of file generate_nerian_config_cpp.py.



nerian_stereo
Author(s): Nerian Vision Technologies
autogenerated on Fri Apr 16 2021 02:11:19