Skip to content

Commit 504a168

Browse files
Avoid to force the connection to the logger when the dump_data is enabled
1 parent 6d6132f commit 504a168

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/WalkingModule/src/Module.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)