Go to the documentation of this file.
2 #include <std_msgs/Float32.h>
4 #include <actionlib_tutorials/AveragingAction.h>
88 actionlib_tutorials::AveragingResult
result_;
92 int main(
int argc,
char** argv)
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
void publishFeedback(const Feedback &feedback)
void setSucceeded(const Result &result=Result(), const std::string &text=std::string(""))
actionlib::SimpleActionServer< actionlib_tutorials::AveragingAction > as_
AveragingAction(std::string name)
void analysisCB(const std_msgs::Float32::ConstPtr &msg)
actionlib_tutorials::AveragingResult result_
void registerPreemptCallback(boost::function< void()> cb)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
void setPreempted(const Result &result=Result(), const std::string &text=std::string(""))
void registerGoalCallback(boost::function< void()> cb)
const ROSCPP_DECL std::string & getName()
void setAborted(const Result &result=Result(), const std::string &text=std::string(""))
boost::shared_ptr< const Goal > acceptNewGoal()
actionlib_tutorials::AveragingFeedback feedback_
int main(int argc, char **argv)