Skip to content

Commit

Permalink
Fix bug in reset
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Martin Rico <[email protected]>
  • Loading branch information
fmrico committed Sep 9, 2019
1 parent 42cb343 commit 30109a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion darknet_ros_3d/darknet_ros_3d/launch/darknet_ros_3d.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<include file="$(find darknet_ros)/launch/darknet_ros.launch" />

<node pkg="darknet_ros_3d" type="darknet3d_node" name="darknet_3d" output="screen">
<node pkg="darknet_ros_3d" type="darknet3d_node" name="darknet_3d">
<rosparam command="load" file="$(find darknet_ros_3d)/config/darknet_3d.yaml" />
</node>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Darknet3DListener::Darknet3DListener(const std::list<std::string>& classes, cons
void
Darknet3DListener::reset()
{
classes_.clear();
objects_.clear();
}

bool
Expand Down Expand Up @@ -153,13 +153,15 @@ Darknet3DListener::objectsCallback(const darknet_ros_3d_msgs::BoundingBoxes3d::C

if (!is_already_detected(point))
objects_.push_back(point);

}
}

void
Darknet3DListener::print()
{
int counter = 0;
ROS_INFO("============> Number of ojects %zu", objects_.size());
for (const auto& test_obj : objects_)
{
ROS_INFO("============> %d [%s] (%lf %lf, %lf) [%lf, %lf, %lf]", counter++, test_obj.class_id.c_str(),
Expand Down

0 comments on commit 30109a4

Please sign in to comment.