36 #include <sensor_msgs/JointState.h> 38 #include <QMessageBox> 46 setObjectName(
"FlipperControl");
52 QStringList argv = context.
argv();
97 ui_.lcdNumFrontGoal->display(goal);
101 ui_.lcdNumRearGoal->display(goal);
106 ui_.lcdNumFrontPose->display(pose);
110 ui_.lcdNumRearPose->display(pose);
115 float fvalue = value /1000.0;
116 sensor_msgs::JointState msg;
117 msg.name.push_back(
"flipper_front");
118 msg.position.push_back(fvalue);
Ui::FlipperControlWidget ui_
void publish(const boost::shared_ptr< M > &message) const
void frontFlipperCallback(const std_msgs::Float64::ConstPtr &msg)
void setFlipperRearPose(const int pose)
virtual void initPlugin(qt_gui_cpp::PluginContext &context)
void addWidget(QWidget *widget)
virtual void sliderFrontChanged(int value)
void rearFlipperCallback(const std_msgs::Float64::ConstPtr &msg)
void setFlipperRearGoal(const int goal)
const QStringList & argv() const
ros::Publisher jointStatePub
virtual void sliderRearChanged(int value)
virtual void saveSettings(qt_gui_cpp::Settings &plugin_settings, qt_gui_cpp::Settings &instance_settings) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
virtual void restoreSettings(const qt_gui_cpp::Settings &plugin_settings, const qt_gui_cpp::Settings &instance_settings)
void setFlipperFrontGoal(const int goal)
virtual void shutdownPlugin()
void setFlipperFrontPose(const int pose)
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)