Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Comment 'segmented_object_topic_' which is not declared.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corsair-cxs committed Mar 14, 2021
1 parent 5639ae4 commit b2d72bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class RosTopicOutput : public BaseOutput
ros::Publisher pub_object_;
std::shared_ptr<object_msgs::ObjectsInBoxes> detected_objects_topic_;
ros::Publisher pub_person_reid_;
std::shared_ptr<people_msgs::ReidentificationStamped> person_reid_msg_ptr_;
std::shared_ptr<people_msgs::ReidentificationStamped> person_reid_topic_;
ros::Publisher pub_segmented_object_;
std::shared_ptr<people_msgs::ObjectsInMasks> segmented_objects_topic_;
ros::Publisher pub_face_reid_;
Expand Down
4 changes: 2 additions & 2 deletions dynamic_vino_lib/src/outputs/ros_service_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void Outputs::RosServiceOutput::setServiceResponse(
slog::info << "in Reidentification service::Response ...";
if (person_reid_topic_ != nullptr)
{
response->reidentification.reidentified_vector = person_reid_msg_ptr_->reidentified_vector;
response->reidentification.reidentified_vector = person_reid_topic_->reidentified_vector;
}
}

Expand Down Expand Up @@ -130,6 +130,6 @@ void Outputs::RosServiceOutput::clearData()
age_gender_topic_ = nullptr;
emotions_topic_ = nullptr;
headpose_topic_ = nullptr;
segmented_object_topic_ = nullptr;
// segmented_object_topic_ = nullptr;
person_reid_topic_ = nullptr;
}
12 changes: 6 additions & 6 deletions dynamic_vino_lib/src/outputs/ros_topic_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Outputs::RosTopicOutput::RosTopicOutput(std::string pipeline_name) : pipeline_na
age_gender_topic_ = NULL;
headpose_topic_ = NULL;
detected_objects_topic_ = NULL;
person_reid_msg_ptr_ = NULL;
person_reid_topic_ = NULL;
segmented_objects_topic_ = NULL;
face_reid_topic_ = NULL;
person_attribs_topic_ = NULL;
Expand Down Expand Up @@ -139,7 +139,7 @@ void Outputs::RosTopicOutput::accept(const std::vector<dynamic_vino_lib::FaceRei

void Outputs::RosTopicOutput::accept(const std::vector<dynamic_vino_lib::PersonReidentificationResult>& results)
{
person_reid_msg_ptr_ = std::make_shared<people_msgs::ReidentificationStamped>();
person_reid_topic_ = std::make_shared<people_msgs::ReidentificationStamped>();
people_msgs::Reidentification person;
for (auto& r : results)
{
Expand All @@ -150,7 +150,7 @@ void Outputs::RosTopicOutput::accept(const std::vector<dynamic_vino_lib::PersonR
person.roi.width = loc.width;
person.roi.height = loc.height;
person.identity = r.getPersonID();
person_reid_msg_ptr_->reidentified_vector.push_back(person);
person_reid_topic_->reidentified_vector.push_back(person);
}
}

Expand Down Expand Up @@ -332,13 +332,13 @@ void Outputs::RosTopicOutput::handleOutput()
pub_person_attribs_.publish(person_attribute_msg);
person_attribs_topic_ = nullptr;
}
if (person_reid_msg_ptr_ != nullptr)
if (person_reid_topic_ != nullptr)
{
people_msgs::ReidentificationStamped person_reid_msg;
person_reid_msg.header = header;
person_reid_msg.reidentified_vector.swap(person_reid_msg_ptr_->reidentified_vector);
person_reid_msg.reidentified_vector.swap(person_reid_topic_->reidentified_vector);
pub_person_reid_.publish(person_reid_msg);
person_reid_msg_ptr_ = nullptr;
person_reid_topic_ = nullptr;
}
if (segmented_objects_topic_ != nullptr)
{
Expand Down

0 comments on commit b2d72bd

Please sign in to comment.