Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RobotHardware] call close_iob() on SIGINT #1328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions rtc/RobotHardware/RobotHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,11 @@ RTC::ReturnCode_t RobotHardware::onInitialize()
}


/*
RTC::ReturnCode_t RobotHardware::onFinalize()
{
delete m_robot.get(); // to call close_iob() in destructor of robot
return RTC::RTC_OK;
}
*/

/*
RTC::ReturnCode_t RobotHardware::onStartup(RTC::UniqueId ec_id)
Expand Down
2 changes: 1 addition & 1 deletion rtc/RobotHardware/RobotHardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RobotHardware

// The finalize action (on ALIVE->END transition)
// formaer rtc_exiting_entry()
// virtual RTC::ReturnCode_t onFinalize();
virtual RTC::ReturnCode_t onFinalize();

// The startup action when ExecutionContext startup
// former rtc_starting_entry()
Expand Down