33 #include "industrial_msgs/RobotStatus.h" 44 namespace robot_status_relay_handler
49 this->pub_robot_status_ = this->node_.advertise<industrial_msgs::RobotStatus>(
"robot_status", 1);
50 return init((
int)StandardMsgTypes::STATUS, connection);
57 if (!status_msg.
init(in))
59 LOG_ERROR(
"Failed to initialize status message");
63 return internalCB(status_msg);
68 industrial_msgs::RobotStatus status;
80 this->pub_robot_status_.publish(status);
86 in.
toReply(reply, rtn ? ReplyTypes::SUCCESS : ReplyTypes::FAILURE);
87 this->getConnection()->sendMsg(reply);
TriState getMotionPossible()
#define LOG_ERROR(format,...)
bool init(industrial::simple_message::SimpleMessage &msg)
industrial::robot_status::RobotStatus status_
TriState getDrivesPowered()
industrial::shared_types::shared_int getErrorCode() const
virtual bool toReply(industrial::simple_message::SimpleMessage &msg, industrial::simple_message::ReplyType reply)