actionlib feedback move_base
Dear all.
I have navigation stack implemented and I can send some goals to the move base.
I just want to cancel a goal before it reaches its position using feedback.
How can I use feedback?
I have use the following code, but it doesnt work.
ac.sendGoal(goal, &feedbackCb);
void Pose_Goal::feedbackCb(const move_baseFeedbackConstPtr& feedback){
ROS_INFO("[X]:%f [Y]:%f",feedback->base_position.pose.position.x, feedback->base_position.pose.position.y);
}
any help I would appreciate it. Thanks in advance
"It doesn't work" is pretty vague. Is it not compiling or is it compiling but not functioning as you intend it to? If it isn't compiling, you should put the error message from the compiler in the question next time. In this case, it looks like you didn't name a type for feedbackX_ and feedbackY_.