action server not starting
Hi,
I am trying turtlebot_arm_block_manipulation with ROS Hydro. I use action server but it doesn't start. I don't understand why. Here is my code :
actionlib::SimpleActionServer<turtlebot_arm_block_manipulation::BlockDetectionAction> as_;
BlockDetectionServer(const std::string name) :
nh_("~"), as_(name, false), action_name_(name)
{
// Load parameters from the server.
// Register the goal and feeback callbacks.
as_.registerGoalCallback(boost::bind(&BlockDetectionServer::goalCB, this));
as_.registerPreemptCallback(boost::bind(&BlockDetectionServer::preemptCB, this));
std::cout<<"action server is active ? : "<<as_.isActive()<<std::endl;
std::cout<<"Start action server"<<std::endl;
as_.start();
std::cout<<"action server is active ? : "<<as_.isActive()<<std::endl;
and I got :
action server is active ? : 0
Start action server
action server is active ? : 0
Why is the action server not starting? Thanks