Skip to content

Commit

Permalink
implement a unique rpc command
Browse files Browse the repository at this point in the history
  • Loading branch information
LoreMoretti committed Dec 2, 2024
1 parent a11a9f4 commit ce708e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ class YarpRobotLoggerDevice : public yarp::dev::DeviceDriver,

const std::string timestampsName = "timestamps";

virtual bool lastCallSave();

virtual bool periodicSave();
virtual bool saveData();
};

} // namespace BipedalLocomotion
Expand Down
9 changes: 1 addition & 8 deletions devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2006,14 +2006,7 @@ bool YarpRobotLoggerDevice::close()
return true;
}

bool YarpRobotLoggerDevice::lastCallSave()
{
std::string fileName;
m_bufferManager.saveToFile(fileName);
return this->saveCallback(fileName, robometry::SaveCallbackSaveMethod::last_call);
}

bool YarpRobotLoggerDevice::periodicSave()
bool YarpRobotLoggerDevice::saveData()
{
std::string fileName;
m_bufferManager.saveToFile(fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@

service YarpRobotLoggerDeviceCommands
{
bool lastCallSave();

bool periodicSave();
bool saveData();
}

0 comments on commit ce708e8

Please sign in to comment.