6 #include <QtConcurrent/QtConcurrentRun> 17 selected_path_index_(index),
18 use_ladder_graph_record_(use_ladder_graph_record)
23 gui.
setText(
"Process Planning...\n");
54 choreo_msgs::ProcessPlanningGoal goal;
55 goal.action = choreo_msgs::ProcessPlanningGoal::GENERATE_MOTION_PLAN_AND_PREVIEW;
59 ROS_INFO(
"Waiting for process planning action server to start.");
86 const choreo_msgs::ProcessPlanningResultConstPtr& result)
88 if (result->succeeded)
105 const choreo_msgs::ProcessPlanningFeedbackConstPtr& feedback)
107 Q_EMIT
feedbackReceived(QString::fromStdString((feedback->last_completed).c_str()));
void setFeedbackText(QString feedback)
void processPlanningActiveCallback()
virtual void onExit(ChoreoWidget &gui)
bool waitForServer(const ros::Duration &timeout=ros::Duration(0, 0)) const
virtual void onBack(ChoreoWidget &gui)
actionlib::SimpleActionClient< choreo_msgs::ProcessPlanningAction > process_planning_action_client_
virtual void onReset(ChoreoWidget &gui)
bool use_ladder_graph_record_
bool isServerConnected() const
void processPlanningFeedbackCallback(const choreo_msgs::ProcessPlanningFeedbackConstPtr &feedback)
virtual void onNext(ChoreoWidget &gui)
virtual void onStart(ChoreoWidget &gui)
#define ROS_WARN_STREAM(args)
ProcessPlanningState(const int index, const bool use_ladder_graph_record)
void sendGoal(const Goal &goal, SimpleDoneCallback done_cb=SimpleDoneCallback(), SimpleActiveCallback active_cb=SimpleActiveCallback(), SimpleFeedbackCallback feedback_cb=SimpleFeedbackCallback())
void processPlanningDoneCallback(const actionlib::SimpleClientGoalState &state, const choreo_msgs::ProcessPlanningResultConstPtr &result)
#define ROS_INFO_STREAM(args)
static const std::string PROCESS_PLANNING_ACTION_CLIENT_NAME
void newStateAvailable(GuiState *)
void feedbackReceived(QString feedback)