21 inline void appendAnalog(std::vector<ur_msgs::Analog>& vec,
double val, uint8_t pin)
59 status.in_motion.val = industrial_msgs::TriState::UNKNOWN;
63 status.error_code = 0;
73 industrial_msgs::RobotStatus msg;
76 msg.mode.val = industrial_msgs::RobotMode::MANUAL;
78 msg.mode.val = industrial_msgs::RobotMode::AUTO;
82 industrial_msgs::TriState::OFF;
89 industrial_msgs::RobotStatus msg;
91 msg.motion_possible.val =
95 msg.mode.val = industrial_msgs::RobotMode::MANUAL;
97 msg.mode.val = industrial_msgs::RobotMode::AUTO;
123 using ros_msg_dig_inp_t = ur_msgs::MasterboardDataMsg::_digital_input_bits_type;
124 using ros_msg_dig_outp_t = ur_msgs::MasterboardDataMsg::_digital_output_bits_type;
126 ur_msgs::MasterboardDataMsg msg;
131 msg.digital_input_bits =
static_cast<ros_msg_dig_inp_t
>(data.
digital_input_bits.to_ulong());
132 msg.digital_output_bits =
static_cast<ros_msg_dig_outp_t
>(data.
digital_output_bits.to_ulong());
140 using ros_msg_dig_inp_t = ur_msgs::MasterboardDataMsg::_digital_input_bits_type;
141 using ros_msg_dig_outp_t = ur_msgs::MasterboardDataMsg::_digital_output_bits_type;
143 ur_msgs::MasterboardDataMsg msg;
148 msg.digital_input_bits =
static_cast<ros_msg_dig_inp_t
>(data.
digital_input_bits.to_ulong());
149 msg.digital_output_bits =
static_cast<ros_msg_dig_outp_t
>(data.
digital_output_bits.to_ulong());
173 ur_msgs::RobotModeDataMsg msg;
181 ur_msgs::RobotModeDataMsg msg;
187 ur_msgs::IOStates io_msg;
199 ur_msgs::IOStates io_msg;
211 consume(static_cast<MasterBoardData_V3_0__1&>(data));
float master_board_temperature
std::bitset< 10 > digital_output_bits
int8_t analog_input_range1
void publish(const boost::shared_ptr< M > &message) const
robot_mode_V3_X robot_mode
Publisher masterboard_state_pub_
std::bitset< 10 > digital_input_bits
void publishRobotStatus(industrial_msgs::RobotStatus &status, const SharedRobotModeData &data) const
int8_t analog_output_domain0
Publisher robot_mode_state_pub_
void publishIOStates(ur_msgs::IOStates &io_msg, SharedMasterBoardData &data)
robot_control_mode_V3_X control_mode
robot_mode_V1_X robot_mode
void appendDigital(std::vector< ur_msgs::Digital > &vec, std::bitset< N > bits)
int8_t analog_output_domain1
std::bitset< 18 > digital_output_bits
virtual bool consume(MasterBoardData_V1_X &data)
void appendAnalog(std::vector< ur_msgs::Analog > &vec, double val, uint8_t pin)
int8_t analog_input_range0
void publishMasterboardData(ur_msgs::MasterboardDataMsg &msg, const SharedMasterBoardData &data) const
bool physical_robot_connected
std::bitset< 18 > digital_input_bits
void publishRobotModeData(ur_msgs::RobotModeDataMsg &msg, const SharedRobotModeData &data) const