Skip to content

Commit

Permalink
changes to conform with dodo_detector 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Mar 22, 2019
1 parent 2e1e010 commit 082a93f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018, Douglas De Rizzo Meneghetti
Copyright (c) 2019, Douglas De Rizzo Meneghetti
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion package.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package>
<name>dodo_detector_ros</name>
<version>0.2.0</version>
<version>0.2.1</version>
<description>A package for object detection and localization using computer vision and IR sensors.</description>

<!-- One maintainer tag required, multiple allowed, one person per tag -->
Expand Down
4 changes: 2 additions & 2 deletions src/detector.py
Expand Up @@ -143,9 +143,9 @@ def run(self):
rospy.logdebug('Found ' + str(len(objects[obj_class])) + ' object(s) of type ' + obj_class)

for obj_type_index, coordinates in enumerate(objects[obj_class]):
rospy.logdebug('...' + obj_class + ' ' + str(obj_type_index) + ' at ' + str(coordinates))
rospy.logdebug('...' + obj_class + ' ' + str(obj_type_index) + ' at ' + str(coordinates['box']))

ymin, xmin, ymax, xmax = coordinates
ymin, xmin, ymax, xmax = coordinates['box']
y_center = ymax - ((ymax - ymin) / 2)
x_center = xmax - ((xmax - xmin) / 2)

Expand Down

0 comments on commit 082a93f

Please sign in to comment.