File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ bool WalkingModule::configure(yarp::os::ResourceFinder& rf)
396396 {
397397 yarp::os::Bottle& loggerOptions = rf.findGroup (" WALKING_LOGGER" );
398398 // open and connect the data logger port
399- std::string portInput, portOutput;
399+ std::string portOutput;
400400 // open the connect the data logger port
401401 if (!YarpUtilities::getStringFromSearchable (loggerOptions,
402402 " dataLoggerOutputPort_name" ,
@@ -405,21 +405,8 @@ bool WalkingModule::configure(yarp::os::ResourceFinder& rf)
405405 yError () << " [WalkingModule::configure] Unable to get the string from searchable." ;
406406 return false ;
407407 }
408- if (!YarpUtilities::getStringFromSearchable (loggerOptions,
409- " dataLoggerInputPort_name" ,
410- portInput))
411- {
412- yError () << " [WalkingModule::configure] Unable to get the string from searchable." ;
413- return false ;
414- }
415408
416409 m_loggerPort.open (" /" + name + portOutput);
417-
418- if (!yarp::os::Network::connect (" /" + name + portOutput, portInput))
419- {
420- yError () << " Unable to connect the ports " << " /" + name + portOutput << " and" << portInput;
421- return false ;
422- }
423410 }
424411
425412 // time profiler
You can’t perform that action at this time.
0 commit comments