9 if(!
cm_) status.
error(
"controller_manager is not intialized");
16 status.
error(
"controller_manager is not intialized");
30 cm_->update(now, period, recover);
31 robot_->enforce(period, recover);
38 status.
warn(
"controller_manager is already intialized");
47 if(!
cm_) status.
error(
"controller_manager is not intialized");
virtual void handleRead(canopen::LayerStatus &status, const LayerState ¤t_state)
const void warn(const std::string &r)
canopen::time_point last_time_
void recover(LayerStatus &status)
virtual void handleInit(canopen::LayerStatus &status)
boost::atomic< bool > recover_
const ros::Duration fixed_period_
boost::chrono::high_resolution_clock::time_point time_point
virtual void handleWrite(canopen::LayerStatus &status, const LayerState ¤t_state)
Duration & fromSec(double t)
boost::shared_ptr< controller_manager::ControllerManager > cm_
canopen::RobotLayerSharedPtr robot_
virtual void handleRecover(canopen::LayerStatus &status)
virtual void handleShutdown(canopen::LayerStatus &status)
const void error(const std::string &r)
time_point get_abs_time(const time_duration &timeout)