4 #include <turtle_actionlib/ShapeAction.h> 6 int main (
int argc,
char **argv)
14 ROS_INFO(
"Waiting for action server to start.");
18 ROS_INFO(
"Action server started, sending goal.");
20 turtle_actionlib::ShapeGoal goal;
28 if (finished_before_timeout)
34 ROS_INFO(
"Action did not finish before the time out.");
bool waitForServer(const ros::Duration &timeout=ros::Duration(0, 0)) const
bool waitForResult(const ros::Duration &timeout=ros::Duration(0, 0))
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
std::string toString() const
void sendGoal(const Goal &goal, SimpleDoneCallback done_cb=SimpleDoneCallback(), SimpleActiveCallback active_cb=SimpleActiveCallback(), SimpleFeedbackCallback feedback_cb=SimpleFeedbackCallback())
SimpleClientGoalState getState() const