2 #include <turtlesim/Pose.h> 8 #include <geometry_msgs/Twist.h> 9 #include <turtle_actionlib/ShapeAction.h> 61 void controlCB(
const turtlesim::Pose::ConstPtr& msg)
72 double error_tol = 0.00001;
135 int main(
int argc,
char** argv)
boost::shared_ptr< const Goal > acceptNewGoal()
void publish(const boost::shared_ptr< M > &message) const
void controlCB(const turtlesim::Pose::ConstPtr &msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
turtle_actionlib::ShapeResult result_
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ShapeAction(std::string name)
ROSCPP_DECL const std::string & getName()
def normalize_angle_positive(angle)
actionlib::SimpleActionServer< turtle_actionlib::ShapeAction > as_
void setSucceeded(const Result &result=Result(), const std::string &text=std::string(""))
void setPreempted(const Result &result=Result(), const std::string &text=std::string(""))
void registerPreemptCallback(boost::function< void()> cb)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
int main(int argc, char **argv)
geometry_msgs::Twist command_
void registerGoalCallback(boost::function< void()> cb)