mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Linked goal_reached topic to rtabmapviz
This commit is contained in:
@@ -176,6 +176,7 @@ GuiWrapper::GuiWrapper(int & argc, char** argv) :
|
||||
goalTopic_,
|
||||
pathTopic_);
|
||||
goalPathSync_->registerCallback(boost::bind(&GuiWrapper::goalPathCallback, this, _1, _2));
|
||||
goalReachedTopic_ = nh.subscribe("goal_reached", 1, &GuiWrapper::goalReachedCallback, this);
|
||||
}
|
||||
|
||||
GuiWrapper::~GuiWrapper()
|
||||
@@ -265,6 +266,12 @@ void GuiWrapper::goalPathCallback(
|
||||
this->post(new RtabmapGlobalPathEvent(goalMsg->node_id, goalMsg->node_label, poses));
|
||||
}
|
||||
|
||||
void GuiWrapper::goalReachedCallback(
|
||||
const std_msgs::BoolConstPtr & value)
|
||||
{
|
||||
this->post(new RtabmapGoalStatusEvent(value->data?1:-1));
|
||||
}
|
||||
|
||||
void GuiWrapper::processRequestedMap(const rtabmap_ros::MapData & map)
|
||||
{
|
||||
std::map<int, Signature> signatures;
|
||||
|
||||
Reference in New Issue
Block a user