actionlib shutdown beacuse of getState()
the code is be like:
return this->moveBaseClient->getState();
while moveBaseClient is:
typedef actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> MoveBaseClient; std::shared_ptr<MoveBaseClient> moveBaseClient;
calling at 20hz and this happened:
robot_decision_node: /opt/ros/kinetic/include/actionlib/managed_list.h:168: const T& actionlib::ManagedList<T>::Handle::getElem() const [with T = boost::shared_ptr<actionlib::CommStateMachine<move_base_msgs::MoveBaseAction_<std::allocator<void> > > >]: Assertion `valid_' failed.
Am i using getState wrong?
i chage the frequency to 10hz, now it works fine.
but it's still a bug?
You should also post the code that sets
moveBaseClient
.hi,i have updated the question with defination of moveBaseClient