2 #include <ros/master.h>
18 ros::waitForShutdown();
27 if(!ros::master::check()) {
31 nh = unique_ptr<ros::NodeHandle>(
new ros::NodeHandle);
46 if(ros::master::getNodes(nodes))
48 QStringList nodesList;
49 for(
auto node : nodes)
50 nodesList.append(QString(node.c_str()));
57 cout <<
"ROS shutting down. Closing dashboard GUI." << endl;
63 emit
newVelocityData(fabs((msg.left_velocity + msg.right_velocity) / 2.));
void newNodesList(QStringList nodes)
ros::Subscriber encoder_subscriber
QNode(int argc, char **argv)
std::unique_ptr< ros::NodeHandle > nh
void encoderCallback(const igvc_msgs::velocity_pair &msg)
void newVelocityData(float velocity)