41 if (config.check(
"help"))
46 std::string config_string = config.toString();
47 yarp::os::Property prop_check(config_string.c_str());
50 if (config.check(
"name"))
52 m_name = config.find(
"name").asString();
53 yCInfo(FakeRawValuesPublisherParamsCOMPONENT) <<
"Parameter 'name' using value:" <<
m_name;
57 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Mandatory parameter 'name' not found!";
58 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Description of the parameter: Name of the device";
61 prop_check.unput(
"name");
66 if (config.check(
"njomos"))
68 m_njomos = config.find(
"njomos").asInt64();
69 yCInfo(FakeRawValuesPublisherParamsCOMPONENT) <<
"Parameter 'njomos' using value:" <<
m_njomos;
73 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Mandatory parameter 'njomos' not found!";
74 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Description of the parameter: Number of joint or motors to be instantiated";
77 prop_check.unput(
"njomos");
82 if (config.check(
"threshold"))
85 yCInfo(FakeRawValuesPublisherParamsCOMPONENT) <<
"Parameter 'threshold' using value:" <<
m_threshold;
89 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Mandatory parameter 'threshold' not found!";
90 yCError(FakeRawValuesPublisherParamsCOMPONENT) <<
"Description of the parameter: Threshold used for defining the amplitude of the sawthooth curve that simulates periodic raw encoder data";
93 prop_check.unput(
"threshold");