4 #include <robotiq_3f_gripper_articulated_msgs/Robotiq3FGripperRobotOutput.h> 5 #include <robotiq_3f_gripper_articulated_msgs/Robotiq3FGripperRobotInput.h> 42 typedef robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotOutput
RQ3Fout;
43 typedef robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotInput
RQ3Fin;
56 Ui::Robotiq3FingerForm
ui;
116 static constexpr
double min_force = 15;
117 static constexpr
double delta_force = 0.175;
118 ui.force_value->setNum(
int(min_force+value*delta_force));
126 static constexpr
double min_speed = 22;
127 static constexpr
double delta_speed = 0.34;
128 ui.speed_value->setNum(
int(min_speed+value*delta_speed));
132 ui.button_send->setDown(checked);
133 ui.button_send->setDisabled(checked);
161 ui.pos_a->setNum(status.gPOA);
162 ui.pos_b->setNum(status.gPOB);
163 ui.pos_c->setNum(status.gPOC);
164 ui.pos_s->setNum(status.gPOS);
168 ui.cur_a->setNum(0.1*status.gCUA);
169 ui.cur_b->setNum(0.1*status.gCUB);
170 ui.cur_c->setNum(0.1*status.gCUC);
171 ui.cur_s->setNum(0.1*status.gCUS);
175 const QString style = active ?
"QPushButton {color: red;}" :
"QPushButton {}";
176 button->setStyleSheet(style);
181 #include "robotiq_3f_rviz.moc" void on_button_on_clicked()
void on_button_basic_clicked()
void publish(const boost::shared_ptr< M > &message) const
Ui::Robotiq3FingerForm ui
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void on_button_open_clicked()
robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotInput RQ3Fin
void on_slider_position_valueChanged(const int value)
std::atomic_bool auto_send
ros::Subscriber sub_status
void set_PRA(const uint8_t PRA)
void set_button_active(QPushButton *button, const bool active)
ros::Publisher pub_command
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void on_button_scissor_clicked()
void on_slider_speed_valueChanged(const int value)
void set_mode(const uint8_t mode)
robotiq_3f_gripper_articulated_msgs::Robotiq3FGripperRobotOutput RQ3Fout
void on_button_send_clicked()
void on_button_close_clicked()
void on_slider_force_valueChanged(const int value)
void on_button_wide_clicked()
Robotiq3FingerPanel(QWidget *parent=nullptr)
void on_button_pinch_clicked()
void on_button_off_clicked()
void on_status(const RQ3Fin &status)
void on_check_send_clicked(const bool checked)
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)