1 #include <boost/thread.hpp> 8 #include <QSignalMapper> 11 #include "jog_msgs/JogJoint.h" 31 QHBoxLayout* enable_layout =
new QHBoxLayout;
32 enable_layout->addWidget(
new QLabel(
"Jog Enable:" ));
34 jog_button_->setStyleSheet(
"QPushButton:checked { background-color: red; }\n");
39 QVBoxLayout* jog_layout =
new QVBoxLayout;
45 QHBoxLayout* layout =
new QHBoxLayout;
52 jog_slider_[i]->setTickPosition(QSlider::TicksBelow);
62 "border: 3px solid black;" 67 "background: rgb(164, 192, 2);" 70 "background: rgb(223, 70, 70);" 74 jog_layout->addLayout(layout);
77 QVBoxLayout* layout =
new QVBoxLayout;
78 layout->addLayout(enable_layout);
79 layout->addLayout(jog_layout);
89 SLOT(respondSliderReleased()));
93 QTimer* output_timer =
new QTimer(
this );
94 connect( output_timer, SIGNAL( timeout() ),
this, SLOT(
publish() ));
95 output_timer->start(100);
117 jog_msgs::JogJoint
msg;
124 msg.joint_names[i] =
joint_label_[i]->text().toUtf8().constData();
176 QLineEdit* label =
new QLineEdit;
177 label->setReadOnly(
true );
183 label->setText( QString::number( value,
'f', 2 ));
virtual void save(rviz::Config config) const
QLineEdit * makeNumericLabel()
VisualizationManager * vis_manager_
void publish(const boost::shared_ptr< M > &message) const
void respondSliderReleased()
TFSIMD_FORCE_INLINE void setValue(const tfScalar &x, const tfScalar &y, const tfScalar &z)
std::vector< QLabel * > joint_label_
void respondEnable(bool checked)
std::string controller_name_
PLUGINLIB_EXPORT_CLASS(test_moveit_controller_manager::TestMoveItControllerManager, moveit_controller_manager::MoveItControllerManager)
virtual void onInitialize()
std::vector< JogSlider * > jog_slider_
QPushButton * jog_button_
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
JogJointPanel(QWidget *parent=0)
bool getParam(const std::string &key, std::string &s) const
virtual void load(const rviz::Config &config)
std::vector< double > jog_value_
virtual void save(Config config) const
virtual void load(const Config &config)
void fillNumericLabel(QLineEdit *label, double value)
std::vector< std::string > joint_name_
ros::Publisher jog_joint_pub_