Skip to content

Commit 5989847

Browse files
committed
version is 0.3.1
1 parent 27b4083 commit 5989847

File tree

7 files changed

+7
-28
lines changed

7 files changed

+7
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Check [this URL](https://github.com/Ar-Ray-code/YOLOX-ROS/tree/main/yolox_ros_cp
124124

125125
<!-- - yolox/image_raw : Resized image (`sensor_msgs/Image`) -->
126126

127-
- yololx/bounding_boxes : Output BoundingBoxes like darknet_ros_msgs (`bboxes_ex_msgs/BoundingBoxes`)
127+
- bounding_boxes: Output BoundingBoxes like darknet_ros_msgs (`bboxes_ex_msgs/BoundingBoxes`)
128128

129129
※ If you want to use `darknet_ros_msgs` , replace `bboxes_ex_msgs` with `darknet_ros_msgs`.
130130

yolox_ros_py/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>yolox_ros_py</name>
5-
<version>0.3.0</version>
5+
<version>0.3.1</version>
66
<description>The yolox_ros_py package</description>
77
<maintainer email="[email protected]">Ar-Ray-code</maintainer>
88
<license>Apache License, Version 2.0</license>

yolox_ros_py/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
setup(
7979
name=package_name,
80-
version='0.3.0',
80+
version='0.3.1',
8181
packages=[package_name],
8282
data_files=[
8383
('share/ament_index/resource_index/packages',

yolox_ros_py/yolox_ros_py/yolox_onnx.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def __init__(self) -> None:
4444

4545
self.bridge = CvBridge()
4646

47-
self.pub = self.create_publisher(BoundingBoxes,"yolox/bounding_boxes", 10)
48-
# self.pub_image = self.create_publisher(Image,"yolox/image_raw", 10)
49-
47+
self.pub = self.create_publisher(BoundingBoxes,"bounding_boxes", 10)
5048
self.sub = self.create_subscription(Image,"image_raw",self.imageflow_callback, self.qos_image_sub)
5149

5250
def imageflow_callback(self,msg:Image) -> None:
@@ -99,7 +97,6 @@ def imageflow_callback(self,msg:Image) -> None:
9997
cv2.waitKey(1)
10098

10199
self.pub.publish(bboxes)
102-
# self.pub_image.publish(self.bridge.cv2_to_imgmsg(origin_img,"bgr8"))
103100

104101
except Exception as e:
105102
self.get_logger().info(f'Error: {e}')

yolox_ros_py/yolox_ros_py/yolox_openvino.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,10 @@ def __init__(self) -> None:
4646

4747
self.bridge = CvBridge()
4848

49-
self.pub = self.create_publisher(BoundingBoxes,"yolox/bounding_boxes", 10)
50-
# self.pub_image = self.create_publisher(Image,"yolox/image_raw", 10)
51-
49+
self.pub = self.create_publisher(BoundingBoxes,"bounding_boxes", 10)
5250
self.sub = self.create_subscription(Image,"image_raw",self.imageflow_callback, self.qos_image_sub)
5351

5452
def setting_yolox_exp(self) -> None:
55-
# set environment variables for distributed training
56-
57-
58-
5953
print('Creating Inference Engine')
6054
ie = IECore()
6155
print(f'Reading the self.network: {self.model_path}')
@@ -131,7 +125,6 @@ def imageflow_callback(self,msg:Image) -> None:
131125
cv2.waitKey(1)
132126

133127
self.pub.publish(bboxes)
134-
# self.pub_image.publish(self.bridge.cv2_to_imgmsg(nodetect_image,"bgr8"))
135128

136129
except Exception as e:
137130
self.get_logger().info(f'Error: {e}')

yolox_ros_py/yolox_ros_py/yolox_ros.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,14 @@ def __init__(self) -> None:
124124

125125
self.bridge = CvBridge()
126126

127-
self.pub = self.create_publisher(BoundingBoxes,"yolox/bounding_boxes", 10)
128-
# self.pub_image = self.create_publisher(Image,"yolox/image_raw", 10)
127+
self.pub = self.create_publisher(BoundingBoxes,"bounding_boxes", 10)
129128

130129
if (self.sensor_qos_mode):
131130
self.sub = self.create_subscription(Image,"image_raw",self.imageflow_callback, qos_profile_sensor_data)
132131
else:
133132
self.sub = self.create_subscription(Image,"image_raw",self.imageflow_callback, 10)
134133

135134
def setting_yolox_exp(self) -> None:
136-
# set environment variables for distributed training
137-
# ==============================================================
138135

139136
WEIGHTS_PATH = '../../weights/yolox_nano.pth'
140137

@@ -245,9 +242,6 @@ def imageflow_callback(self,msg:Image) -> None:
245242
bboxes_msg = self.yolox2bboxes_msgs(bboxes, scores, cls, cls_names, msg.header, img_rgb)
246243

247244
self.pub.publish(bboxes_msg)
248-
# msg = self.bridge.cv2_to_imgmsg(img_rgb,"bgr8")
249-
# msg.header.frame_id = "camera"
250-
# self.pub_image.publish(msg)
251245

252246
if (self.imshow_isshow):
253247
cv2.imshow("YOLOX",result_img_rgb)

yolox_ros_py/yolox_ros_py/yolox_tflite.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ def __init__(self):
5454
)
5555

5656
self.sub = self.create_subscription(Image,"image_raw",self.imageflow_callback, self.qos_image_sub)
57-
58-
self.pub_detection = self.create_publisher(
59-
BoundingBoxes,
60-
'bounding_boxes',
61-
10
62-
)
57+
self.pub_detection = self.create_publisher(BoundingBoxes, 'bounding_boxes', 10)
6358

6459
def imageflow_callback(self, msg):
6560
start = time.time()

0 commit comments

Comments
 (0)